added more logic for the server state diagram
This commit is contained in:
@@ -1,10 +1,24 @@
|
||||
package pp.mdga.server;
|
||||
|
||||
public class GameStateMachine extends ServerStateMachine{
|
||||
/**
|
||||
* 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);
|
||||
|
||||
Reference in New Issue
Block a user