overworked Settlement

This commit is contained in:
Andrin Fassbind 2021-11-29 15:55:36 +01:00
parent 8fb406bea0
commit ef51b7c980
3 changed files with 2 additions and 26 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_X" default="true" project-jdk-name="openjdk-17" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" project-jdk-name="openjdk-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
</set>
</option>
</component>
</project>

View File

@ -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;
}
}