27 lines
741 B
Java
27 lines
741 B
Java
package pp.mdga.server;
|
|
|
|
/**
|
|
* The GameStateMachine class represents the state machine for the game state.
|
|
*/
|
|
public class GameStateMachine extends ServerStateMachine {
|
|
/**
|
|
* Constructs a new GameStateMachine with the specified parent state and game logic.
|
|
*
|
|
* @param parent the parent state
|
|
* @param logic the server game logic
|
|
*/
|
|
public GameStateMachine(ServerState parent, ServerGameLogic logic) {
|
|
super(parent, logic);
|
|
}
|
|
|
|
/**
|
|
* Returns the initial state of the state machine, which is DetermineStartPlayer.
|
|
*
|
|
* @return the initial state
|
|
*/
|
|
@Override
|
|
public DetermineStartPlayer initialState() {
|
|
return new DetermineStartPlayer(this, logic);
|
|
}
|
|
}
|