mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Boat now changes color when it is bumped for a time
ClientYacht: Added ColorChangeListener from GameView3D to re paint the boat when the color attribute is changed #story[1293]
This commit is contained in:
@@ -422,7 +422,7 @@ public class GameClient {
|
||||
Sounds.playTokenPickupSound(); // TODO: 23/09/17 This should be power down sound
|
||||
} else if (yachtEventData.getEventId() == YachtEventType.BUMPER_CRASH.getCode()) {
|
||||
showDisableAlert(thisYacht);
|
||||
} else {
|
||||
} else { //Else all token pickup types
|
||||
TokenType tokenType = null;
|
||||
if (yachtEventData.getEventId() == YachtEventType.TOKEN_VELOCITY.getCode()) {
|
||||
tokenType = TokenType.BOOST;
|
||||
@@ -436,7 +436,7 @@ public class GameClient {
|
||||
tokenType = TokenType.WIND_WALKER;
|
||||
}
|
||||
|
||||
showTokenPickUp(tokenType);
|
||||
Sounds.playTokenPickupSound();
|
||||
thisYacht.setPowerUp(tokenType);
|
||||
}
|
||||
}
|
||||
@@ -468,21 +468,6 @@ public class GameClient {
|
||||
raceState.storeCollision(yacht);
|
||||
}
|
||||
|
||||
// TODO: 11/09/17 wmu16 - Add in functionality to viually indicate a pickup to a user
|
||||
private void showTokenPickUp(TokenType tokenType) {
|
||||
Sounds.playTokenPickupSound();
|
||||
switch (tokenType) {
|
||||
case BOOST:
|
||||
break;
|
||||
case HANDLING:
|
||||
break;
|
||||
case WIND_WALKER:
|
||||
break;
|
||||
case BUMPER:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void formatAndSendChatMessage(String rawChat) {
|
||||
if (rawChat.length() > 0) {
|
||||
socketThread.sendChatterMessage(
|
||||
|
||||
Reference in New Issue
Block a user