From bfa1375b861fb78a9bbdb79e9a75ff3f5687b0c8 Mon Sep 17 00:00:00 2001 From: jbion Date: Thu, 25 May 2017 10:00:00 +0200 Subject: Add missing serialized fields --- .../java/org/luxons/sevenwonders/game/resources/TradingRules.java | 4 ++++ .../main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'backend/src/main/java/org/luxons') 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> 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; } -- cgit