java.lang.Object
com.adventure.models.nodes.StoryNode
- Direct Known Subclasses:
GameLoaderNode
,Room
,VictoryNode
Class that represents a node in the game graph.
It's a fundamental object to represent game state.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetID()
Get the String ID of the objectint
Get the numeric ID of the objectGet the current viewprotected void
setID()
Sets the numeric ID and the String ID for the classprotected void
setID
(int ID) Sets the numeric ID and the String ID for the classvoid
setTargetView
(String targetView)
-
Constructor Details
-
StoryNode
Constructor.- Parameters:
targetView
- Node target view.
-
-
Method Details
-
getTargetView
Get the current view- Returns:
- String current view
-
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
-
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
-