Browse Source

Added addPoints() to BlackJack

This method adds points to the player or the bot
remotes/origin/quiz
Friederike von Gruben 2 years ago
parent
commit
5239962efe
  1. 5
      src/main/java/org/bitbiome/classes/BlackJack.java

5
src/main/java/org/bitbiome/classes/BlackJack.java

@ -61,4 +61,9 @@ public class BlackJack {
public Entity getEntity(int ID) { public Entity getEntity(int ID) {
return Entity.getEventStatusById(ID); return Entity.getEventStatusById(ID);
} }
public void addPoints(Entity entity, int points) {
if (entity == Entity.BOT) botPoints += points;
if (entity == Entity.PLAYER) playerPoints += points;
}
} }
Loading…
Cancel
Save