2023-10-05 23:32:29 +02:00
|
|
|
/*
|
|
|
|
============================================================
|
|
|
|
This is the "Spiel" file from Author: Philipp Kotte
|
|
|
|
written on: 05 / 10 / 2023 at: 23:25
|
|
|
|
============================================================
|
|
|
|
*/
|
|
|
|
package Facade;
|
|
|
|
|
2023-10-10 12:38:27 +02:00
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
import Domain.Spieler;
|
|
|
|
import Domain.Enums.Geschlecht;
|
|
|
|
|
2023-10-05 23:32:29 +02:00
|
|
|
public class Spiel {
|
|
|
|
|
2023-10-10 12:38:27 +02:00
|
|
|
private boolean istGestartet;
|
|
|
|
private boolean istBeendet;
|
|
|
|
private Spieler spielerAmZug;
|
|
|
|
private int runde;
|
|
|
|
private HashMap<String, Spieler> spieler = new HashMap<>();
|
|
|
|
|
|
|
|
public Spiel() {
|
|
|
|
this.istGestartet = false;
|
|
|
|
this.istBeendet = false;
|
|
|
|
this.spielerAmZug = null;
|
|
|
|
this.runde = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
public void addSpieler(String name, Geschlecht geschlecht) {
|
|
|
|
int temp_id = spieler.size();
|
|
|
|
this.spieler.put(name, new Spieler(temp_id++, name, geschlecht));
|
|
|
|
}
|
|
|
|
|
2023-10-05 23:32:29 +02:00
|
|
|
}
|