forked from 2211945/WIZARD_PR2_DOP
36 lines
822 B
Java
36 lines
822 B
Java
/*
|
|
============================================================
|
|
This is the "Blockzeile" file from Author: Philipp Kotte
|
|
written on: 05 / 10 / 2023 at: 23:44
|
|
============================================================
|
|
*/
|
|
package Domain.Block;
|
|
|
|
public class Blockzeile {
|
|
private int rundenNummer;
|
|
private Blockeintrag[] eintraege;
|
|
|
|
public Blockzeile(){
|
|
|
|
}
|
|
|
|
public Blockzeile(int rundenNummer, int spielerAnzahl) {
|
|
this.rundenNummer = rundenNummer;
|
|
this.eintraege = new Blockeintrag[spielerAnzahl];
|
|
}
|
|
|
|
public void addEintrag(Blockeintrag be) {
|
|
|
|
for (int i = 0; i < eintraege.length; i++) {
|
|
if (eintraege[i] == null) {
|
|
eintraege[i] = be;
|
|
}
|
|
}
|
|
}
|
|
|
|
public Blockeintrag[] getDaten() {
|
|
return eintraege;
|
|
}
|
|
|
|
}
|