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,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Animation extends ClientState {
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class AudioSettings extends Settings {
|
||||
public class AudioSettings extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Ceremony extends ClientState {
|
||||
private final CeremonyStateMachine ceremonyStateMachine = new CeremonyStateMachine();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class CeremonyStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class ChoosePiece extends Turn {
|
||||
public class ChoosePiece extends ClientState {
|
||||
private final ChoosePieceStateMachine choosePieceStateMachine = new ChoosePieceStateMachine();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class ChoosePieceStateMachine extends ClientStateMachine{
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class ChoosePowerCard extends PowerCard {
|
||||
public class ChoosePowerCard extends ClientState {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class ClientAutomaton extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class ClientState {
|
||||
public abstract class ClientState {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public abstract class ClientStateMachine extends ClientState {
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class DetermineStartPlayer extends Game {
|
||||
public class DetermineStartPlayer extends ClientState {
|
||||
private final DetermineStartPlayerStateMachine determineStartPlayerStateMachine = new DetermineStartPlayerStateMachine();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class DetermineStartPlayerStateMachine extends ClientStateMachine{
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Dialogs extends ClientState {
|
||||
private final DialogsStateMachine dialogsStateMachine = new DialogsStateMachine();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class DialogsStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Game extends ClientState {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class GameState extends ClientState {
|
||||
private final GameStateMachine gameStateMachine = new GameStateMachine();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class GameStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Lobby extends Dialogs {
|
||||
public class Lobby extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class MainSettings extends Settings {
|
||||
public class MainSettings extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class MovePiece extends Turn {
|
||||
public class MovePiece extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class NetworkDialog extends Dialogs {
|
||||
public class NetworkDialog extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class NoPiece extends ChoosePiece {
|
||||
public class NoPiece extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class PlayPowerCard extends PowerCard {
|
||||
public class PlayPowerCard extends ClientState {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Podium extends ClientState {
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class PowerCard extends Turn {
|
||||
public class PowerCard extends ClientState {
|
||||
private final PowerCardStateMachine powerCardStateMachine = new PowerCardStateMachine();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class PowerCardStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class RollDice extends Turn {
|
||||
public class RollDice extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class RollRankingDice extends DetermineStartPlayer {
|
||||
public class RollRankingDice extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class SelectPiece extends ChoosePiece {
|
||||
public class SelectPiece extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Settings {
|
||||
public class Settings extends ClientState {
|
||||
private final SettingsStateMachine settingsStateMachine = new SettingsStateMachine();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class SettingsStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Shield extends PowerCard {
|
||||
public class Shield extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Spectator extends Game {
|
||||
public class Spectator extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class StartPiece extends ChoosePiece {
|
||||
public class StartPiece extends ClientState {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Statistics extends ClientState {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Swap extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class SwitchEnemy extends PowerCard {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class SwitchOwn extends PowerCard {
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Turn extends Game {
|
||||
public class Turn extends ClientState {
|
||||
private final TurnStateMachine turnStateMachine = new TurnStateMachine();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class TurnStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class VideoSettings extends Settings {
|
||||
public class VideoSettings extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class WaitRanking extends DetermineStartPlayer {
|
||||
public class WaitRanking extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Waiting extends Game {
|
||||
public class Waiting extends ClientState {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class WaitingPiece extends ChoosePiece {
|
||||
public class WaitingPiece extends ClientState {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user