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-26 09:03:09 +02:00
|
|
|
import Domain.Spieler;
|
|
|
|
|
2023-10-05 23:32:29 +02:00
|
|
|
public class Spiel {
|
|
|
|
|
2023-10-26 09:03:09 +02:00
|
|
|
// Statische Konstanten
|
|
|
|
|
|
|
|
// Statische Attribute
|
|
|
|
private static int runde = 0;
|
|
|
|
|
|
|
|
// Attribute der Objekte
|
|
|
|
private Spieler spielerAmZug;
|
|
|
|
private boolean istGestartet = false;
|
|
|
|
private boolean istBeendet = true;
|
|
|
|
// Konstruktoren
|
|
|
|
public Spiel() {
|
|
|
|
setRunde();
|
|
|
|
setIstGestartet(true);
|
|
|
|
setIstBeendet(false);
|
|
|
|
}
|
|
|
|
// Statische Methoden
|
2023-10-24 11:38:55 +02:00
|
|
|
public static int getRunde() {
|
2023-10-26 09:03:09 +02:00
|
|
|
return runde;
|
|
|
|
}
|
|
|
|
// Getter und Setter
|
|
|
|
public void setIstGestartet(boolean wert) {
|
|
|
|
this.istGestartet = wert;
|
|
|
|
}
|
|
|
|
public boolean getIstGestartet() {
|
|
|
|
return this.istGestartet;
|
|
|
|
}
|
|
|
|
public void setIstBeendet(boolean wert) {
|
|
|
|
this.istBeendet = wert;
|
|
|
|
}
|
|
|
|
public boolean getIstBeendet() {
|
|
|
|
return istBeendet;
|
|
|
|
}
|
|
|
|
public Spieler getSpielerAmZug() {
|
|
|
|
return spielerAmZug;
|
|
|
|
}
|
|
|
|
// Overrides
|
|
|
|
|
|
|
|
// Public Methoden
|
|
|
|
|
|
|
|
// Private Methoden
|
|
|
|
private void setRunde() {
|
|
|
|
runde++;
|
2023-10-24 11:38:55 +02:00
|
|
|
}
|
2023-10-26 09:03:09 +02:00
|
|
|
|
2023-10-24 11:38:55 +02:00
|
|
|
|
2023-10-05 23:32:29 +02:00
|
|
|
}
|