summaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2016-12-24 23:19:13 +0100
committerjbion <joffrey.bion@amadeus.com>2016-12-24 23:19:13 +0100
commit9b511b4945c9cb0c4bc66082a687cb00345b47e7 (patch)
tree6a58a5e9b7ce9ce036c8c4c7fce92a72ad03a2ce /src/main/java/org
parentAdd add/removeGold methods on boards (diff)
downloadseven-wonders-9b511b4945c9cb0c4bc66082a687cb00345b47e7.tar.gz
seven-wonders-9b511b4945c9cb0c4bc66082a687cb00345b47e7.tar.bz2
seven-wonders-9b511b4945c9cb0c4bc66082a687cb00345b47e7.zip
Rename discard -> giveGoldForDiscarded
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/Game.java2
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/api/Table.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/game/Game.java b/src/main/java/org/luxons/sevenwonders/game/Game.java
index 50481103..1f7a13c2 100644
--- a/src/main/java/org/luxons/sevenwonders/game/Game.java
+++ b/src/main/java/org/luxons/sevenwonders/game/Game.java
@@ -180,7 +180,7 @@ public class Game {
table.activateCurrentWonderStage(move.getPlayerIndex(), move.getBoughtResources());
break;
case DISCARD:
- table.discard(move.getPlayerIndex(), settings.getDiscardedCardGold());
+ table.giveGoldForDiscarded(move.getPlayerIndex(), settings.getDiscardedCardGold());
break;
}
}
diff --git a/src/main/java/org/luxons/sevenwonders/game/api/Table.java b/src/main/java/org/luxons/sevenwonders/game/api/Table.java
index 686b7ea5..518f20c6 100644
--- a/src/main/java/org/luxons/sevenwonders/game/api/Table.java
+++ b/src/main/java/org/luxons/sevenwonders/game/api/Table.java
@@ -68,7 +68,7 @@ public class Table {
board.getWonder().activateLastBuiltStage(this, playerIndex, boughtResources);
}
- public void discard(int playerIndex, int goldBonus) {
+ public void giveGoldForDiscarded(int playerIndex, int goldBonus) {
Board board = boards.get(playerIndex);
board.setGold(board.getGold() + goldBonus);
}
bgstack15