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:
Daniel Grigencha
2024-11-17 15:27:09 +01:00
parent a9fd13caab
commit aae7ed9a87
82 changed files with 719 additions and 72 deletions

View File

@@ -79,4 +79,13 @@ public BonusCard removeHandCard(BonusCard card) {
}
return cardToRemove;
}
/**
* Returns the id of the connection to the client represented by this player.
*
* @return the id
*/
public int getId() {
return id;
}
}