added rest solution for exercise 13

added the representation for the shell element in the map which will be displayed when you shoot,
This commit is contained in:
Hanno Fleischer
2024-10-11 00:45:49 +02:00
parent f99b91324c
commit c56767d994
4 changed files with 58 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ public AnimatonState(ClientGameLogic logic, boolean myTurn, IntPoint position) {
logic.playMusic(Music.BATTLE_THEME);
this.myTurn = myTurn;
if(myTurn) {
logic.send(new AnimationEndMessage(position));
logic.getOpponentMap().add(new Shell(position));
}else {
logic.getOwnMap().add(new Shell(position));
}