101IQ
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
plugins {
|
||||
id 'buildlogic.java-library-conventions'
|
||||
}
|
||||
|
||||
description = 'MDGA common model'
|
||||
|
||||
dependencies {
|
||||
api project(":common")
|
||||
api libs.jme3.networking
|
||||
implementation libs.gson
|
||||
testImplementation libs.mockito.core
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Animation extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class AudioSettings extends ClientState {
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Ceremony extends ClientState {
|
||||
private final CeremonyStateMachine ceremonyStateMachine = new CeremonyStateMachine();
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class CeremonyStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class ChoosePiece extends ClientState {
|
||||
private final ChoosePieceStateMachine choosePieceStateMachine = new ChoosePieceStateMachine();
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class ChoosePieceStateMachine extends ClientStateMachine{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class ChoosePowerCard extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class ClientAutomaton extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class ClientGameLogic {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public abstract class ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public abstract class ClientStateMachine extends ClientState {
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class DetermineStartPlayer extends ClientState {
|
||||
private final DetermineStartPlayerStateMachine determineStartPlayerStateMachine = new DetermineStartPlayerStateMachine();
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class DetermineStartPlayerStateMachine extends ClientStateMachine{
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Dialogs extends ClientState {
|
||||
private final DialogsStateMachine dialogsStateMachine = new DialogsStateMachine();
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class DialogsStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class GameState extends ClientState {
|
||||
private final GameStateMachine gameStateMachine = new GameStateMachine();
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class GameStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Interrupt extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Lobby extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class MainSettings extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class MovePiece extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class NetworkDialog extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class NoPiece extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class PlayPowerCard extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Podium extends ClientState {
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class PowerCard extends ClientState {
|
||||
private final PowerCardStateMachine powerCardStateMachine = new PowerCardStateMachine();
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class PowerCardStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class RollDice extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class RollRankingDice extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class SelectPiece extends ClientState {
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Settings extends ClientState {
|
||||
private final SettingsStateMachine settingsStateMachine = new SettingsStateMachine();
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class SettingsStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Shield extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Spectator extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class StartDialog extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class StartPiece extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Statistics extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Swap extends ClientState {
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Turn extends ClientState {
|
||||
private final TurnStateMachine turnStateMachine = new TurnStateMachine();
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class TurnStateMachine extends ClientStateMachine {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class VideoSettings extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class WaitRanking extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class Waiting extends ClientState {
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
public class WaitingPiece extends ClientState {
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
package pp.mdga.game;
|
||||
|
||||
public enum Color {
|
||||
ARMY,
|
||||
NAVY,
|
||||
CYBER,
|
||||
AIRFORCE
|
||||
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class AnimationEnd extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public interface ClientInterpreter {
|
||||
void received(AnimationEnd animationEnd, int from);
|
||||
|
||||
void received(DeselectTSK deselectTSK , int from);
|
||||
|
||||
void received(ForceStartGame forceStartGame, int from);
|
||||
|
||||
void received(JoinServer joinServer , int from);
|
||||
|
||||
void received(LeaveGame leaveGame , int from);
|
||||
|
||||
void received(LobbyNotReady lobbyNotReady , int from);
|
||||
|
||||
void received(LobbyReady lobbyReady , int from);
|
||||
|
||||
void received(RequestBriefing requestBriefing , int from);
|
||||
|
||||
void received(RequestDice requestDice , int from);
|
||||
|
||||
void received(RequestMove requestMove , int from);
|
||||
|
||||
void received(RequestPlayCard requestPlayCard , int from);
|
||||
|
||||
void received(SelectCard selectCard , int from);
|
||||
|
||||
void received(SelectTSK selectTSK , int from);
|
||||
|
||||
void received(ForceContinueGame forceContinueGame, int from);
|
||||
|
||||
void received(ClientStartGame clientStartGame, int from);
|
||||
|
||||
void received(NoPowerCard noPowerCard, int from);
|
||||
|
||||
void received(SelectedPieces selectedPieces, int from);
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
import com.jme3.network.AbstractMessage;
|
||||
|
||||
public abstract class ClientMessage extends AbstractMessage {
|
||||
protected ClientMessage() {
|
||||
super(true);
|
||||
}
|
||||
|
||||
public abstract void accept(ClientInterpreter interpreter, int from);
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class ClientStartGame extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class DeselectTSK extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class ForceContinueGame extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class ForceStartGame extends ClientMessage {
|
||||
public ForceStartGame() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class JoinServer extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class LeaveGame extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class LobbyNotReady extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class LobbyReady extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class NoPowerCard extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class RequestBriefing extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
public class RequestDice extends ClientMessage {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
public class RequestMove extends ClientMessage {
|
||||
|
||||
private final String pieceIdentifier;
|
||||
|
||||
/** Constructor for RequestMove
|
||||
* @param pieceIdentifier the piece identifier
|
||||
*/
|
||||
public RequestMove(String pieceIdentifier) {
|
||||
this.pieceIdentifier = pieceIdentifier;
|
||||
}
|
||||
|
||||
/** Getter for the piece identifier
|
||||
* @return the piece identifier
|
||||
*/
|
||||
public String getPieceIdentifier() {
|
||||
return pieceIdentifier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return pieceIdentifier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
import pp.mdga.game.BonusCard;
|
||||
|
||||
public class RequestPlayCard extends ClientMessage {
|
||||
|
||||
private final BonusCard card;
|
||||
private final String pieceIdentifier;
|
||||
|
||||
public RequestPlayCard(BonusCard card, String pieceIdentifier) {
|
||||
this.pieceIdentifier = pieceIdentifier;
|
||||
this.card = card;
|
||||
}
|
||||
|
||||
public BonusCard getCard() {
|
||||
return card;
|
||||
}
|
||||
|
||||
public String getPieceIdentifier() {
|
||||
return pieceIdentifier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return card.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
import pp.mdga.game.BonusCard;
|
||||
|
||||
public class SelectCard extends ClientMessage {
|
||||
|
||||
private final BonusCard card;
|
||||
|
||||
public SelectCard(BonusCard card) {
|
||||
this.card = card;
|
||||
}
|
||||
|
||||
public BonusCard getCard() {
|
||||
return card;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
public class SelectTSK extends ClientMessage {
|
||||
|
||||
private final Color color;
|
||||
|
||||
public SelectTSK(Color color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public Color getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
package pp.mdga.message.client;
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
public class SelectedPieces extends ClientMessage {
|
||||
|
||||
private String pieceIdentifier;
|
||||
|
||||
/** Constructor for SelectedPieces
|
||||
* @param pieceIdentifier the piece identifier
|
||||
*/
|
||||
public SelectedPieces(String pieceIdentifier) {
|
||||
this.pieceIdentifier = pieceIdentifier;
|
||||
}
|
||||
|
||||
/** Getter for the piece identifier
|
||||
* @return the piece identifier
|
||||
*/
|
||||
public String getPieceIdentifier() {
|
||||
return pieceIdentifier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ClientInterpreter interpreter, int from) {
|
||||
interpreter.received(this, from);
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
public class ActivePlayer extends ServerMessage {
|
||||
|
||||
private Color color;
|
||||
|
||||
/** Constructor for ActivePlayer
|
||||
* @param color the color of the active player
|
||||
*/
|
||||
public ActivePlayer(Color color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
/** Getter for the color of the active player
|
||||
* @return the color of the active player
|
||||
*/
|
||||
public Color getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class AnyPiece extends ServerMessage {
|
||||
|
||||
private ArrayList<String> piece;
|
||||
|
||||
/** Constructor for AnyPiece
|
||||
*/
|
||||
public AnyPiece() {
|
||||
piece = new ArrayList<>();
|
||||
}
|
||||
|
||||
/** Add a piece to the list of pieces
|
||||
* @param piece the piece to add
|
||||
*/
|
||||
public void addPiece(String piece) {
|
||||
this.piece.add(piece);
|
||||
}
|
||||
|
||||
/** Getter for the list of pieces
|
||||
* @return the list of pieces
|
||||
*/
|
||||
public ArrayList<String> getPiece() {
|
||||
return piece;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class Briefing extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class Ceremony extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Dice extends ServerMessage {
|
||||
|
||||
private final int diceEye;
|
||||
private final ArrayList<String> moveablePieces;
|
||||
|
||||
/** Constructor for Dice
|
||||
* @param diceEye the eye of the dice
|
||||
* @param moveablePieces the pieces that can be moved
|
||||
*/
|
||||
public Dice(int diceEye, ArrayList<String> moveablePieces) {
|
||||
this.diceEye = diceEye;
|
||||
this.moveablePieces = moveablePieces;
|
||||
}
|
||||
|
||||
/** Constructor for inactivePlayer
|
||||
* @param diceEye the eye of the dice
|
||||
* @return a new Dice object
|
||||
*/
|
||||
public static Dice inactivePlayer(int diceEye) {
|
||||
return new Dice(diceEye, null);
|
||||
}
|
||||
|
||||
/** Constructor for activePlayer
|
||||
* @param diceEye the eye of the dice
|
||||
* @param moveablePieces the pieces that can be moved
|
||||
* @return a new Dice object
|
||||
*/
|
||||
public static Dice activePlayer(int diceEye, ArrayList<String> moveablePieces) {
|
||||
return new Dice(diceEye, moveablePieces);
|
||||
}
|
||||
|
||||
/** Getter for the eye of the dice
|
||||
* @return the eye of the dice
|
||||
*/
|
||||
public int getDiceEye() {
|
||||
return diceEye;
|
||||
}
|
||||
|
||||
/** Getter for the pieces that can be moved
|
||||
* @return the pieces that can be moved
|
||||
*/
|
||||
public ArrayList<String> getMoveablePieces() {
|
||||
return moveablePieces;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class DiceAgain extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class DiceNow extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class EndOfTurn extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class LobbyAccept extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class LobbyDeny extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class LobbyPlayerJoin extends ServerMessage {
|
||||
|
||||
private final String name;
|
||||
|
||||
public LobbyPlayerJoin(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
public class LobbyPlayerLeave extends ServerMessage {
|
||||
|
||||
private final String name;
|
||||
private final Color color;
|
||||
|
||||
public LobbyPlayerLeave(String name, Color color) {
|
||||
this.name = name;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public Color getColor() {
|
||||
return color;
|
||||
}
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class MoveMessage extends ServerMessage {
|
||||
|
||||
private final String pieceIdentifier;
|
||||
|
||||
/**
|
||||
* @param identifier the identifier of the piece that should be moved
|
||||
*/
|
||||
public MoveMessage(String identifier) {
|
||||
this.pieceIdentifier = identifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the identifier of the piece that should be moved
|
||||
*/
|
||||
public String getIdentifier() {
|
||||
return pieceIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the identifier of the piece that should be moved
|
||||
*/
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class NoTurn extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class PauseGame extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import pp.mdga.game.BonusCard;
|
||||
|
||||
public class PlayCard extends ServerMessage {
|
||||
|
||||
private final BonusCard card;
|
||||
private final String pieceIdentifier;
|
||||
|
||||
/**
|
||||
* @param card the card that should be played
|
||||
* @param pieceIdentifier the identifier of the piece that should be moved
|
||||
*/
|
||||
public PlayCard(BonusCard card, String pieceIdentifier) {
|
||||
this.card = card;
|
||||
this.pieceIdentifier = pieceIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the card that should be played
|
||||
*/
|
||||
public BonusCard getCard() {
|
||||
return card;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the identifier of the piece that should be moved
|
||||
*/
|
||||
public String getPieceIdentifier() {
|
||||
return pieceIdentifier;
|
||||
}
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import pp.mdga.game.BonusCard;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class PossibleCard extends ServerMessage {
|
||||
|
||||
private ArrayList<BonusCard> possibleCards;
|
||||
|
||||
/** Constructor for PossibleCard
|
||||
*/
|
||||
public PossibleCard() {
|
||||
possibleCards = new ArrayList<>();
|
||||
}
|
||||
|
||||
/** Add a possible card to the list of possible cards
|
||||
* @param card the possible card to add
|
||||
*/
|
||||
public void addPossibleCard(BonusCard card) {
|
||||
this.possibleCards.add(card);
|
||||
}
|
||||
|
||||
/** Getter for the list of possible cards
|
||||
* @return the list of possible cards
|
||||
*/
|
||||
public ArrayList<BonusCard> getPossibleCards() {
|
||||
return possibleCards;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class PossiblePiece extends ServerMessage {
|
||||
|
||||
private final ArrayList<String> possibleOwnPieces;
|
||||
private final ArrayList<String> possibleEnemyPieces;
|
||||
|
||||
/** Constructor for PossiblePiece
|
||||
*/
|
||||
public PossiblePiece() {
|
||||
possibleOwnPieces = new ArrayList<>();
|
||||
possibleEnemyPieces = new ArrayList<>();
|
||||
}
|
||||
|
||||
/** Add a piece to the list of possible pieces
|
||||
* @param piece the piece to add
|
||||
*/
|
||||
public void addOwnPossiblePiece(String piece) {
|
||||
this.possibleOwnPieces.add(piece);
|
||||
}
|
||||
|
||||
/** Add a piece to the list of possible enemy pieces
|
||||
* @param piece the piece to add
|
||||
*/
|
||||
public void addEnemyPossiblePiece(String piece) {
|
||||
this.possibleEnemyPieces.add(piece);
|
||||
}
|
||||
|
||||
/** Getter for the list of possible pieces
|
||||
* @return the list of possible pieces
|
||||
*/
|
||||
public ArrayList<String> getPossiblePieces() {
|
||||
return possibleOwnPieces;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class RankingResponce extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class RankingRollAgain extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import pp.mdga.game.Game;
|
||||
|
||||
public class ReconnectBriefing extends ServerMessage {
|
||||
|
||||
private final Game game;
|
||||
|
||||
public ReconnectBriefing(Game game) {
|
||||
this.game = game;
|
||||
}
|
||||
|
||||
public Game getGame() {
|
||||
return game;
|
||||
}
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class ResumeGame extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public interface ServerInterpreter {
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import com.jme3.network.AbstractMessage;
|
||||
|
||||
public abstract class ServerMessage extends AbstractMessage {
|
||||
protected ServerMessage() {
|
||||
super(true);
|
||||
}
|
||||
|
||||
public abstract void accept(ServerInterpreter interpreter);
|
||||
|
||||
public abstract String getInfoTextKey();
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class ServerStartGame extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class StartPiece extends ServerMessage {
|
||||
|
||||
private final String pieceIdentifier;
|
||||
|
||||
public StartPiece(String pieceIdentifier) {
|
||||
this.pieceIdentifier = pieceIdentifier;
|
||||
}
|
||||
|
||||
public String getPieceIdentifier() {
|
||||
return pieceIdentifier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
public class UpdateReady extends ServerMessage {
|
||||
|
||||
private final Color color;
|
||||
private final boolean ready;
|
||||
|
||||
public UpdateReady(Color color, boolean ready) {
|
||||
this.color = color;
|
||||
this.ready = ready;
|
||||
}
|
||||
|
||||
public Color getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
public boolean isReady() {
|
||||
return ready;
|
||||
}
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
public class UpdateTSK extends ServerMessage {
|
||||
|
||||
private final String name;
|
||||
private final Color color;
|
||||
|
||||
public UpdateTSK(String name, Color color) {
|
||||
this.name = name;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public Color getColor() {
|
||||
return color;
|
||||
}
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package pp.mdga.message.server;
|
||||
|
||||
public class WaitPiece extends ServerMessage {
|
||||
@Override
|
||||
public void accept(ServerInterpreter interpreter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInfoTextKey() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -1,156 +0,0 @@
|
||||
package pp.mdga.notification;
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Class CeremonyNotification
|
||||
* Represents a notification for a ceremony in the game.
|
||||
*
|
||||
* Index mapping:
|
||||
* index = 0 ==> winner
|
||||
* index = 1 ==> 2nd
|
||||
* index = 2 ==> third place
|
||||
* index = 3 ==> loser
|
||||
* index = 4 ==> total
|
||||
*/
|
||||
public class CeremonyNotification extends Notification {
|
||||
private ArrayList<Color> colors;
|
||||
private ArrayList<String> names;
|
||||
private ArrayList<Integer> piecesThrown;
|
||||
private ArrayList<Integer> piecesLost;
|
||||
private ArrayList<Integer> bonusCardsPlayed;
|
||||
private ArrayList<Integer> sixes;
|
||||
private ArrayList<Integer> nodesMoved;
|
||||
private ArrayList<Integer> bonusNodes;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Initializes all lists.
|
||||
*/
|
||||
public CeremonyNotification() {
|
||||
this.colors = new ArrayList<>();
|
||||
this.names = new ArrayList<>();
|
||||
this.piecesThrown = new ArrayList<>();
|
||||
this.piecesLost = new ArrayList<>();
|
||||
this.bonusCardsPlayed = new ArrayList<>();
|
||||
this.sixes = new ArrayList<>();
|
||||
this.nodesMoved = new ArrayList<>();
|
||||
this.bonusNodes = new ArrayList<>();
|
||||
}
|
||||
|
||||
// Getters and Setters
|
||||
|
||||
/**
|
||||
* @return the list of colors
|
||||
*/
|
||||
public ArrayList<Color> getColors() {
|
||||
return colors;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param colors the list of colors to set
|
||||
*/
|
||||
public void setColors(ArrayList<Color> colors) {
|
||||
this.colors = colors;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the list of player names
|
||||
*/
|
||||
public ArrayList<String> getNames() {
|
||||
return names;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names the list of player names to set
|
||||
*/
|
||||
public void setNames(ArrayList<String> names) {
|
||||
this.names = names;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the list of pieces thrown
|
||||
*/
|
||||
public ArrayList<Integer> getPiecesThrown() {
|
||||
return piecesThrown;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param piecesThrown the list of pieces thrown to set
|
||||
*/
|
||||
public void setPiecesThrown(ArrayList<Integer> piecesThrown) {
|
||||
this.piecesThrown = piecesThrown;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the list of pieces lost
|
||||
*/
|
||||
public ArrayList<Integer> getPiecesLost() {
|
||||
return piecesLost;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param piecesLost the list of pieces lost to set
|
||||
*/
|
||||
public void setPiecesLost(ArrayList<Integer> piecesLost) {
|
||||
this.piecesLost = piecesLost;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the list of bonus cards played
|
||||
*/
|
||||
public ArrayList<Integer> getBonusCardsPlayed() {
|
||||
return bonusCardsPlayed;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bonusCardsPlayed the list of bonus cards played to set
|
||||
*/
|
||||
public void setBonusCardsPlayed(ArrayList<Integer> bonusCardsPlayed) {
|
||||
this.bonusCardsPlayed = bonusCardsPlayed;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the list of sixes rolled
|
||||
*/
|
||||
public ArrayList<Integer> getSixes() {
|
||||
return sixes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sixes the list of sixes rolled to set
|
||||
*/
|
||||
public void setSixes(ArrayList<Integer> sixes) {
|
||||
this.sixes = sixes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the list of nodes moved
|
||||
*/
|
||||
public ArrayList<Integer> getNodesMoved() {
|
||||
return nodesMoved;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param nodesMoved the list of nodes moved to set
|
||||
*/
|
||||
public void setNodesMoved(ArrayList<Integer> nodesMoved) {
|
||||
this.nodesMoved = nodesMoved;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the list of bonus nodes
|
||||
*/
|
||||
public ArrayList<Integer> getBonusNodes() {
|
||||
return bonusNodes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bonusNodes the list of bonus nodes to set
|
||||
*/
|
||||
public void setBonusNodes(ArrayList<Integer> bonusNodes) {
|
||||
this.bonusNodes = bonusNodes;
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package pp.mdga.server;
|
||||
|
||||
import pp.mdga.message.client.AnimationEnd;
|
||||
import pp.mdga.message.server.DiceNow;
|
||||
|
||||
public class Animation extends ServerState {
|
||||
public Animation(ServerState parent, ServerGameLogic logic) {
|
||||
super(parent, logic);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void receivedAnimationEnd(AnimationEnd msg, int from) {
|
||||
logic.send(logic.getGame().getStartPlayer(), new DiceNow());
|
||||
parent.gotoState(new Turn(parent, logic));
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package pp.mdga.server;
|
||||
|
||||
public class Ceremony extends ServerState {
|
||||
public Ceremony(ServerState parent, ServerGameLogic logic) {
|
||||
super(parent, logic);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
package pp.mdga.server;
|
||||
|
||||
public class ChoosePiece extends ServerState {
|
||||
private final ChoosePieceStateMachine choosePieceStateMachine = new ChoosePieceStateMachine(this, logic);
|
||||
|
||||
public ChoosePiece(ServerState parent, ServerGameLogic logic) {
|
||||
super(parent, logic);
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package pp.mdga.server;
|
||||
|
||||
public class ChoosePieceStateMachine extends ServerStateMachine{
|
||||
public ChoosePieceStateMachine(ServerState parent, ServerGameLogic logic) {
|
||||
super(parent, logic);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NoPiece initialState() {
|
||||
return new NoPiece(this, logic);
|
||||
}
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
package pp.mdga.server;
|
||||
|
||||
import pp.mdga.game.Player;
|
||||
import pp.mdga.message.client.RequestDice;
|
||||
import pp.mdga.message.server.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class DetermineStartPlayer extends ServerState {
|
||||
private final List<Player> player = new ArrayList<>();
|
||||
|
||||
public DetermineStartPlayer(ServerState parent, ServerGameLogic logic) {
|
||||
super(parent, logic);
|
||||
logic.getGame().addObserver(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void receivedRequestDice(RequestDice msg, int from) {
|
||||
// logic.send();
|
||||
|
||||
// broadcastUpdate(new Dice());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update() {
|
||||
if (Boolean.TRUE.equals(logic.getGame().allRanked())) {
|
||||
broadcastUpdate(new RankingResponce());
|
||||
if (logic.getGame().getOrder().isEmpty()) {
|
||||
// todo: save the players with the same value?
|
||||
broadcastUpdate(new RankingRollAgain());
|
||||
broadcastUpdate(new EndOfTurn());
|
||||
} else {
|
||||
// todo: set start player
|
||||
Player startPlayer = new Player(1);
|
||||
logic.getGame().setStartPlayer(startPlayer);
|
||||
logic.send(startPlayer, new DiceNow());
|
||||
broadcastUpdate(new EndOfTurn());
|
||||
parent.gotoState(new Animation(parent, logic));
|
||||
logic.getGame().removeObserver(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user