forked from 2211945/WIZARD_PR2_DOP
Merge pull request 'kleine Änderungen im Kartenstapel - odin' (#15) from Kartenstapel_odin into main
Reviewed-on: 2211945/WIZARD_PR2_DOP#15 Reviewed-by: Philipp Kotte <2211945@stud.hs-mannheim.de>
commit
b4ea187d3f
|
@ -5,7 +5,32 @@ written on: 05 / 10 / 2023 at: 23:42
|
|||
============================================================
|
||||
*/
|
||||
package Domain;
|
||||
|
||||
import Domain.Karten.*;
|
||||
public class Kartenstapel {
|
||||
|
||||
private Karte[] kartenStapel = new Karte[60];
|
||||
//
|
||||
public Kartenstapel() {
|
||||
|
||||
}
|
||||
|
||||
public void mischen() {
|
||||
|
||||
}
|
||||
/**
|
||||
* Ausgabe des ersten Elements des Stapels.
|
||||
* @return erstes Element
|
||||
*/
|
||||
public Karte getObersteKarte() {
|
||||
return kartenStapel[0];
|
||||
}
|
||||
|
||||
/**
|
||||
* Ausgabe der Stapelgroesse.
|
||||
* @return laenge des Kartenstapels-Arrays
|
||||
*/
|
||||
public int getAnzahlKarten() {
|
||||
return kartenStapel.length;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue