Added sound to rocket firing
This commit is contained in:
parent
487305dccc
commit
9e591e37c3
@@ -22,6 +22,7 @@ public class AnimatonState extends ClientState {
|
||||
public AnimatonState(ClientGameLogic logic, boolean myTurn, IntPoint position) {
|
||||
super(logic);
|
||||
logic.playMusic(Music.BATTLE_THEME);
|
||||
logic.playSound(Sound.ROCKET_FIRED);
|
||||
this.myTurn = myTurn;
|
||||
if(myTurn) {
|
||||
logic.getOpponentMap().add(new Shell(position));
|
||||
|
||||
@@ -22,5 +22,9 @@ public enum Sound {
|
||||
/**
|
||||
* Sound of a ship being destroyed.
|
||||
*/
|
||||
DESTROYED_SHIP
|
||||
DESTROYED_SHIP,
|
||||
/**
|
||||
* Sound of a rocket
|
||||
*/
|
||||
ROCKET_FIRED
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user