Updated abstract 'GameAutomatonState' class.

Updated the abstract 'GameAutomatonState' class by adding the 'getGameAutomaton' method to it.
This commit is contained in:
Daniel Grigencha
2024-12-03 04:49:16 +01:00
parent 336f1ec316
commit 0db1f08f3c

View File

@@ -23,4 +23,13 @@ public GameAutomatonState(GameState gameAutomaton, ServerGameLogic logic) {
super(logic);
this.gameAutomaton = gameAutomaton;
}
/**
* This method will be used to return gameAutomaton attribute of GameAutomatonState object.
*
* @return gameAutomaton as a GameState object.
*/
public GameState getGameAutomaton() {
return this.gameAutomaton;
}
}