Browse Source

add Game changeLastPlayedCard

main
fdai7906 11 months ago
parent
commit
b10fdde675
  1. 3
      src/main/java/de/hsfulda/onses/models/Game.java

3
src/main/java/de/hsfulda/onses/models/Game.java

@ -18,6 +18,9 @@ public class Game {
return lastPlayedCard; return lastPlayedCard;
} }
public void changeLastPlayedCardColor(Card.Color color) {
lastPlayedCard.setColor(color);
}
public Game setLastPlayedCard(Card lastPlayedCard) { public Game setLastPlayedCard(Card lastPlayedCard) {
this.lastPlayedCard = lastPlayedCard; this.lastPlayedCard = lastPlayedCard;
return this; return this;

Loading…
Cancel
Save