added classes for client and server state machine
- a client state machine consits out of a 'ClientState' (every state of the machine) and a 'ClientStateMachine' (every state, which consists out of states), the machine starts with the ClientAutomaton - analog for server - started to implement logic for the server, transition from 'Lobby' to 'GameState'
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package pp.mdga.server;
|
||||
|
||||
public class ServerAutomaton extends ServerStateMachine {
|
||||
public ServerAutomaton(ServerGameLogic logic) {
|
||||
super(null, logic);
|
||||
entry();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Lobby initialState() {
|
||||
return new Lobby(this, logic);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user