merge the new developmentbranch into the test branch #39

Closed
j23f0712 wants to merge 431 commits from development2 into dev/test
Showing only changes of commit ab5cece1b3 - Show all commits

View File

@@ -7,39 +7,11 @@
*/ */
@Serializable @Serializable
public class StartGameMessage extends ClientMessage { public class StartGameMessage extends ClientMessage {
/**
private final boolean forceStartGame; * Constructor.
*/
public StartGameMessage(boolean forceStartGame){ public StartGameMessage() {
super(); super();
this.forceStartGame = forceStartGame;
}
/**
* Constructs a new ForceStartGame message.
*/
private StartGameMessage() {
super();
forceStartGame = false;
}
/**
* Gets whether the game should be force started.
*
* @return whether the game should be force started
*/
public boolean isForceStartGame() {
return forceStartGame;
}
/**
* Returns a string representation of this message.
*
* @return a string representation of this message
*/
@Override
public String toString() {
return "ForceStartGame{}";
} }
/** /**
@@ -52,4 +24,14 @@ public String toString() {
public void accept(ClientInterpreter interpreter, int from) { public void accept(ClientInterpreter interpreter, int from) {
interpreter.received(this, from); interpreter.received(this, from);
} }
/**
* This method will be used to return all necessary information of StartGameMessage in a more readable way.
*
* @return information as a String.
*/
@Override
public String toString() {
return "StartGameMessage{}";
}
} }