Merge remote-tracking branch 'origin/main' into main
# Conflicts: # .idea/misc.xml
This commit is contained in:
@@ -1,22 +1,8 @@
|
||||
package ch.zhaw.catan;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class Settlement {
|
||||
private HashMap<Config.Resource,Integer> buildCost;
|
||||
private Config.Faction faction;
|
||||
|
||||
public Settlement(Config.Faction faction) {
|
||||
this.faction = faction;
|
||||
buildCost = new HashMap<>();
|
||||
buildCost.put(Config.Resource.LUMBER,1);
|
||||
buildCost.put(Config.Resource.BRICK,1);
|
||||
buildCost.put(Config.Resource.GRAIN,1);
|
||||
buildCost.put(Config.Resource.WOOL,1);
|
||||
super(faction);
|
||||
}
|
||||
|
||||
public HashMap<Config.Resource,Integer> getBuildCost() {
|
||||
return buildCost;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user