corrected refactoring mistake, ich which RankingResponce was renamed to RankingResponse

This commit is contained in:
Fleischer Hanno
2024-11-24 22:18:48 +01:00
committed by Felix
parent 7e1d2e833e
commit 7cfb863e5c
3 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ public void receivedRequestDice(RequestDice msg, int from) {
@Override
public void update() {
if (Boolean.TRUE.equals(logic.getGame().allRanked())) {
broadcastUpdate(new RankingResponce());
broadcastUpdate(new RankingResponse());
if (logic.getGame().getOrder().isEmpty()) {
// todo: save the players with the same value?
broadcastUpdate(new RankingRollAgain());

View File

@@ -3,7 +3,7 @@
import pp.mdga.message.client.*;
import pp.mdga.message.server.PauseGame;
import pp.mdga.message.server.PossibleCard;
import pp.mdga.message.server.RankingResponce;
import pp.mdga.message.server.RankingResponse;
public class GameState extends ServerState {
private final GameStateMachine gameStateMachine = new GameStateMachine(this, logic);
@@ -54,7 +54,7 @@ public void sentPossibleCard(PossibleCard msg, int from) {
}
@Override
public void sentRankingResponse(RankingResponce msg, int from) {
public void sentRankingResponse(RankingResponse msg, int from) {
gameStateMachine.sentRankingResponse(msg, from);
}

View File

@@ -3,7 +3,7 @@
import pp.mdga.message.client.*;
import pp.mdga.message.server.EndOfTurn;
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.
@@ -209,7 +209,7 @@ public void sentPossibleCard(PossibleCard msg, int from) {
* @param msg the RankingResponse message
*/
@Override
public void sentRankingResponse(RankingResponce msg, int from) {
public void sentRankingResponse(RankingResponse msg, int from) {
state.sentRankingResponse(msg, from);
}