Added new class player.

This commit is contained in:
Speedy Gonzalez 2021-11-26 10:58:19 +01:00
parent 8b61927eae
commit 5e8db04f0d
3 changed files with 22 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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" />
</component>
</project>

View File

@ -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(" ");
}
}