summaryrefslogtreecommitdiff
path: root/backend/src/main/java/org/luxons
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2017-05-25 10:00:00 +0200
committerjbion <joffrey.bion@amadeus.com>2017-05-25 10:00:00 +0200
commitbfa1375b861fb78a9bbdb79e9a75ff3f5687b0c8 (patch)
tree423cf6f51d7f2958187fcf07c2dd0e59615b198c /backend/src/main/java/org/luxons
parentImprove log messages (diff)
downloadseven-wonders-bfa1375b861fb78a9bbdb79e9a75ff3f5687b0c8.tar.gz
seven-wonders-bfa1375b861fb78a9bbdb79e9a75ff3f5687b0c8.tar.bz2
seven-wonders-bfa1375b861fb78a9bbdb79e9a75ff3f5687b0c8.zip
Add missing serialized fields
Diffstat (limited to 'backend/src/main/java/org/luxons')
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/game/resources/TradingRules.java4
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java4
2 files changed, 8 insertions, 0 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/game/resources/TradingRules.java b/backend/src/main/java/org/luxons/sevenwonders/game/resources/TradingRules.java
index f785e665..8cd1d9bc 100644
--- a/backend/src/main/java/org/luxons/sevenwonders/game/resources/TradingRules.java
+++ b/backend/src/main/java/org/luxons/sevenwonders/game/resources/TradingRules.java
@@ -14,6 +14,10 @@ public class TradingRules {
this.defaultCost = defaultCost;
}
+ public Map<ResourceType, Map<Provider, Integer>> getCosts() {
+ return costs;
+ }
+
int getCost(ResourceType type, Provider provider) {
return costs.computeIfAbsent(type, t -> new EnumMap<>(Provider.class)).getOrDefault(provider, defaultCost);
}
diff --git a/backend/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java b/backend/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java
index 565b60d3..5f6765ee 100644
--- a/backend/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java
+++ b/backend/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java
@@ -33,6 +33,10 @@ public class WonderStage {
this.effects = effects;
}
+ public CardBack getCardBack() {
+ return cardBack;
+ }
+
public boolean isBuilt() {
return cardBack != null;
}
bgstack15