Added new class player.
This commit is contained in:
parent
8b61927eae
commit
5e8db04f0d
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" 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" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -0,0 +1,20 @@
|
||||||
|
package ch.zhaw.catan;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* New Class PLayer
|
||||||
|
* This class is here to add players to the game.
|
||||||
|
* @author: Stefan Amador
|
||||||
|
*/
|
||||||
|
public class Player {
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
private Config.Faction faction;
|
||||||
|
private Config.Resource resource;
|
||||||
|
|
||||||
|
public Player (String name, Config.Faction faction){
|
||||||
|
this.name = new name(" ");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -98,7 +98,7 @@ import java.util.Map;
|
||||||
public class HexBoardTextView<F, C, E, A> {
|
public class HexBoardTextView<F, C, E, A> {
|
||||||
|
|
||||||
private static final String ONE_SPACE = " ";
|
private static final String ONE_SPACE = " ";
|
||||||
private static final String TWO_SPACES = " ";
|
private static final String TWO_SPACES = " ";
|
||||||
private static final String FOUR_SPACES = " ";
|
private static final String FOUR_SPACES = " ";
|
||||||
private static final String FIVE_SPACES = " ";
|
private static final String FIVE_SPACES = " ";
|
||||||
private static final String SIX_SPACES = " ";
|
private static final String SIX_SPACES = " ";
|
||||||
|
|
Loading…
Reference in New Issue