Class StoryNode

java.lang.Object
com.adventure.models.nodes.StoryNode
Direct Known Subclasses:
GameLoaderNode, Room, VictoryNode

public abstract class StoryNode extends Object
Class that represents a node in the game graph. It's a fundamental object to represent game state.
  • Constructor Details

    • StoryNode

      public StoryNode(String targetView)
      Constructor.
      Parameters:
      targetView - Node target view.
  • Method Details

    • getTargetView

      public String getTargetView()
      Get the current view
      Returns:
      String current view
    • getID

      public String getID()
      Get the String ID of the object
      Returns:
      String ID of the object
    • getNumericID

      public int getNumericID()
      Get the numeric ID of the object
      Returns:
      int numeric ID of the object
    • setTargetView

      public void setTargetView(String targetView)
    • setID

      protected void setID(int ID)
      Sets the numeric ID and the String ID for the class
      Parameters:
      ID - int id of the current object
    • setID

      protected void setID()
      Sets the numeric ID and the String ID for the class