mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Merge remote-tracking branch 'origin/Story1249_SoundsAndMusic' into Story1249_SoundsAndMusic
This commit is contained in:
@@ -685,7 +685,7 @@ public class GameState implements Runnable {
|
|||||||
case ">speed":
|
case ">speed":
|
||||||
try {
|
try {
|
||||||
setSpeedMultiplier(Double.valueOf(words[3]));
|
setSpeedMultiplier(Double.valueOf(words[3]));
|
||||||
broadcastChatter(new ChatterMessage(
|
notifyMessageListeners(new ChatterMessage(
|
||||||
chatterMessage.getMessage_type(),
|
chatterMessage.getMessage_type(),
|
||||||
"SERVER: Speed modifier set to x" + words[3]
|
"SERVER: Speed modifier set to x" + words[3]
|
||||||
));
|
));
|
||||||
@@ -695,7 +695,7 @@ public class GameState implements Runnable {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case ">finish":
|
case ">finish":
|
||||||
broadcastChatter(new ChatterMessage(
|
notifyMessageListeners(new ChatterMessage(
|
||||||
chatterMessage.getMessage_type(),
|
chatterMessage.getMessage_type(),
|
||||||
"SERVER: Game will now finish"
|
"SERVER: Game will now finish"
|
||||||
));
|
));
|
||||||
@@ -703,7 +703,7 @@ public class GameState implements Runnable {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
broadcastChatter(chatterMessage);
|
notifyMessageListeners(chatterMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -723,10 +723,6 @@ public class GameState implements Runnable {
|
|||||||
customizationFlag = false;
|
customizationFlag = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void broadcastChatter(ChatterMessage chatterMessage) {
|
|
||||||
notifyMessageListeners(chatterMessage);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void endRace () {
|
public static void endRace () {
|
||||||
yachts.forEach((id, yacht) -> yacht.setBoatStatus(BoatStatus.FINISHED));
|
yachts.forEach((id, yacht) -> yacht.setBoatStatus(BoatStatus.FINISHED));
|
||||||
currentStage = GameStages.FINISHED;
|
currentStage = GameStages.FINISHED;
|
||||||
|
|||||||
Reference in New Issue
Block a user