Class Action

java.lang.Object
com.adventure.models.nodes.Action

public class Action extends Object
Represents an action used to move in the game graph.
  • Constructor Details

    • Action

      public Action(String actionName)
      Default constructor
      Parameters:
      actionName - Name of the action
  • Method Details

    • getActionName

      public String getActionName()
      Name getter
      Returns:
      String name of the action
    • equals

      public boolean equals(Object action)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object