Updated abstract 'TurnAutomatonState' class.

Updated the abstract 'TurnAutomatonState' class by adding the 'getTurnAutomaton' method to it.
This commit is contained in:
Daniel Grigencha
2024-12-03 04:09:35 +01:00
parent 2248d044c1
commit a1e687912a

View File

@@ -20,4 +20,13 @@ public TurnAutomatonState(TurnState turnAutomaton, ServerGameLogic logic) {
super(logic);
this.turnAutomaton = turnAutomaton;
}
/**
* This method will be used to return turnAutomaton attribute of TurnAutomatonState object.
*
* @return turnAutomaton as a TurnState object
*/
public TurnState getTurnAutomaton() {
return this.turnAutomaton;
}
}