diff options
Diffstat (limited to 'backend/src/main')
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/game/resources/TradingRules.java | 4 | ||||
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java | 4 |
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; } |