1
0
Fork 0
WIZARD_PR2_DOP22/Domain/Kartenstapel.java

80 lines
1.8 KiB
Java
Raw Normal View History

/*
============================================================
This is the "Kartenstapel" file from Author: Philipp Kotte
written on: 05 / 10 / 2023 at: 23:42
============================================================
*/
package Domain;
2023-10-11 17:29:08 +02:00
import Domain.Karten.*;
2023-10-11 17:29:08 +02:00
public class Kartenstapel {
/*------------------------------------------*/
// statische Konstanten
/*------------------------------------------*/
/*------------------------------------------*/
// statische Attribute(zB. zähler)
/*------------------------------------------*/
/*------------------------------------------*/
// Attribute jedes Objektes
/*------------------------------------------*/
private Karte[] kartenStapel = new Karte[60];
2023-10-11 17:29:08 +02:00
/*------------------------------------------*/
// Konstruktoren (default und spezifische)
/*------------------------------------------*/
public Kartenstapel() {
2023-10-11 17:29:08 +02:00
}
2023-10-11 17:29:08 +02:00
/*------------------------------------------*/
// statische Methoden
/*------------------------------------------*/
/*------------------------------------------*/
// Getter und Setter
/*------------------------------------------*/
/**
* Ausgabe des ersten Elements des Stapels.
2023-10-11 17:29:08 +02:00
*
* @return erstes Element
*/
public Karte getObersteKarte() {
return kartenStapel[0];
}
2023-10-11 17:29:08 +02:00
/**
* Ausgabe der Stapelgroesse.
2023-10-11 17:29:08 +02:00
*
* @return laenge des Kartenstapels-Arrays
*/
public int getAnzahlKarten() {
return kartenStapel.length;
}
2023-10-11 17:29:08 +02:00
/*------------------------------------------*/
// @Overrides
/*------------------------------------------*/
/*------------------------------------------*/
// öffentliche Methoden
/*------------------------------------------*/
public void mischen() {
}
/*------------------------------------------*/
// Hilfsmethoden (privat)
/*------------------------------------------*/
//
}