corrected refactoring mistake, ich which RankingResponce was renamed to RankingResponse
This commit is contained in:
@@ -26,7 +26,7 @@ public void receivedRequestDice(RequestDice msg, int from) {
|
|||||||
@Override
|
@Override
|
||||||
public void update() {
|
public void update() {
|
||||||
if (Boolean.TRUE.equals(logic.getGame().allRanked())) {
|
if (Boolean.TRUE.equals(logic.getGame().allRanked())) {
|
||||||
broadcastUpdate(new RankingResponce());
|
broadcastUpdate(new RankingResponse());
|
||||||
if (logic.getGame().getOrder().isEmpty()) {
|
if (logic.getGame().getOrder().isEmpty()) {
|
||||||
// todo: save the players with the same value?
|
// todo: save the players with the same value?
|
||||||
broadcastUpdate(new RankingRollAgain());
|
broadcastUpdate(new RankingRollAgain());
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import pp.mdga.message.client.*;
|
import pp.mdga.message.client.*;
|
||||||
import pp.mdga.message.server.PauseGame;
|
import pp.mdga.message.server.PauseGame;
|
||||||
import pp.mdga.message.server.PossibleCard;
|
import pp.mdga.message.server.PossibleCard;
|
||||||
import pp.mdga.message.server.RankingResponce;
|
import pp.mdga.message.server.RankingResponse;
|
||||||
|
|
||||||
public class GameState extends ServerState {
|
public class GameState extends ServerState {
|
||||||
private final GameStateMachine gameStateMachine = new GameStateMachine(this, logic);
|
private final GameStateMachine gameStateMachine = new GameStateMachine(this, logic);
|
||||||
@@ -54,7 +54,7 @@ public void sentPossibleCard(PossibleCard msg, int from) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sentRankingResponse(RankingResponce msg, int from) {
|
public void sentRankingResponse(RankingResponse msg, int from) {
|
||||||
gameStateMachine.sentRankingResponse(msg, from);
|
gameStateMachine.sentRankingResponse(msg, from);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import pp.mdga.message.client.*;
|
import pp.mdga.message.client.*;
|
||||||
import pp.mdga.message.server.EndOfTurn;
|
import pp.mdga.message.server.EndOfTurn;
|
||||||
import pp.mdga.message.server.PossibleCard;
|
import pp.mdga.message.server.PossibleCard;
|
||||||
import pp.mdga.message.server.RankingResponce;
|
import pp.mdga.message.server.RankingResponse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract class representing a state machine for the server.
|
* Abstract class representing a state machine for the server.
|
||||||
@@ -209,7 +209,7 @@ public void sentPossibleCard(PossibleCard msg, int from) {
|
|||||||
* @param msg the RankingResponse message
|
* @param msg the RankingResponse message
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void sentRankingResponse(RankingResponce msg, int from) {
|
public void sentRankingResponse(RankingResponse msg, int from) {
|
||||||
state.sentRankingResponse(msg, from);
|
state.sentRankingResponse(msg, from);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user