summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/boards/Board.java8
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/effects/GoldIncrease.java2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/game/boards/Board.java b/src/main/java/org/luxons/sevenwonders/game/boards/Board.java
index d0fc22b8..0295b09a 100644
--- a/src/main/java/org/luxons/sevenwonders/game/boards/Board.java
+++ b/src/main/java/org/luxons/sevenwonders/game/boards/Board.java
@@ -83,6 +83,14 @@ public class Board {
this.gold = amount;
}
+ public void addGold(int amount) {
+ this.gold += amount;
+ }
+
+ public void removeGold(int amount) {
+ this.gold -= amount;
+ }
+
public int getNbWarSymbols() {
return nbWarSymbols;
}
diff --git a/src/main/java/org/luxons/sevenwonders/game/effects/GoldIncrease.java b/src/main/java/org/luxons/sevenwonders/game/effects/GoldIncrease.java
index 5d4e5817..79e7bd1a 100644
--- a/src/main/java/org/luxons/sevenwonders/game/effects/GoldIncrease.java
+++ b/src/main/java/org/luxons/sevenwonders/game/effects/GoldIncrease.java
@@ -18,7 +18,7 @@ public class GoldIncrease extends InstantOwnBoardEffect {
@Override
public void apply(Board board) {
- board.setGold(board.getGold() + amount);
+ board.addGold(amount);
}
@Override
bgstack15