forked from 2211945/WIZARD_PR2_DOP
Template von DOP hinzugefügt
parent
026e01577d
commit
7ec9a4e436
|
@ -14,6 +14,18 @@ import Domain.Enums.Geschlecht;
|
|||
|
||||
public class Spiel implements Serializable {
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
// statische Konstanten
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
// statische Attribute(zB. zähler)
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
// Attribute jedes Objektes
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
private boolean istGestartet;
|
||||
private boolean istBeendet;
|
||||
private Spieler spielerAmZug;
|
||||
|
@ -21,12 +33,52 @@ public class Spiel implements Serializable {
|
|||
private HashMap<Integer, Spieler> spieler = new HashMap<>();
|
||||
private boolean[] id_check = { false, false, false, false, false, false };
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
// Konstruktoren (default und spezifische)
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
public Spiel() {
|
||||
this.istGestartet = false;
|
||||
this.istBeendet = false;
|
||||
this.spielerAmZug = null;
|
||||
this.runde = 0;
|
||||
};
|
||||
/*--------------------------------------------------------*/
|
||||
// statische Methoden
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
// Getter und Setter
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
public void setSpielGestartet(boolean gestarted) {
|
||||
this.istGestartet = gestarted;
|
||||
}
|
||||
|
||||
public void setSpielBeendet(boolean beendet) {
|
||||
this.istBeendet = beendet;
|
||||
}
|
||||
|
||||
public void setRunde(int runde) {
|
||||
this.runde = runde;
|
||||
}
|
||||
|
||||
public void setSpielerAmZug(Spieler spieler) {
|
||||
this.spielerAmZug = spieler;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
// @Overrides
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "";
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
// öffentliche Methodes
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
public void addSpieler(String name, Geschlecht geschlecht) {
|
||||
int id = 1;
|
||||
|
@ -78,7 +130,7 @@ public class Spiel implements Serializable {
|
|||
return this.runde;
|
||||
}
|
||||
|
||||
public void mischer() {
|
||||
public void mischen() {
|
||||
|
||||
}
|
||||
|
||||
|
@ -94,4 +146,8 @@ public class Spiel implements Serializable {
|
|||
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------*/
|
||||
// Hilfsmethoden (privat)
|
||||
/*--------------------------------------------------------*/
|
||||
|
||||
}
|
Loading…
Reference in New Issue