Commit ef65901e authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🖥

get missing getters from events ( see #6 )

parent 46c60229
Pipeline #2073 passed with stages
in 2 minutes and 26 seconds
......@@ -29,6 +29,22 @@ public class CardDrawn extends GameEvent {
deck.remove(card);
}
public int getPlayerId(){
return playerId;
}
public int getSlotId(){
return slotId;
}
public int getCardValue(){
return cardValue;
}
public CardColour getCardColour(){
return colour;
}
@Override
public boolean isVisibleTo(int playerID) {
return playerID != this.playerId;
......
......@@ -52,6 +52,14 @@ public class CheatEvent extends GameEvent {
}
}
public int getPlayerID(){
return playerID;
}
public Hand getHand(){
return hand;
}
@Override
public boolean isVisibleTo(int playerID) {
return playerID == this.playerID;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment