forked from 2211945/WIZARD_PR2_DOP
80 lines
1.8 KiB
Java
80 lines
1.8 KiB
Java
/*
|
|
============================================================
|
|
This is the "Kartenstapel" file from Author: Philipp Kotte
|
|
written on: 05 / 10 / 2023 at: 23:42
|
|
============================================================
|
|
*/
|
|
package Domain;
|
|
|
|
import Domain.Karten.*;
|
|
|
|
public class Kartenstapel {
|
|
|
|
/*------------------------------------------*/
|
|
// statische Konstanten
|
|
/*------------------------------------------*/
|
|
|
|
/*------------------------------------------*/
|
|
// statische Attribute(zB. zähler)
|
|
/*------------------------------------------*/
|
|
|
|
/*------------------------------------------*/
|
|
// Attribute jedes Objektes
|
|
/*------------------------------------------*/
|
|
|
|
private Karte[] kartenStapel = new Karte[60];
|
|
|
|
/*------------------------------------------*/
|
|
// Konstruktoren (default und spezifische)
|
|
/*------------------------------------------*/
|
|
|
|
public Kartenstapel() {
|
|
|
|
}
|
|
|
|
/*------------------------------------------*/
|
|
// statische Methoden
|
|
/*------------------------------------------*/
|
|
|
|
/*------------------------------------------*/
|
|
// Getter und Setter
|
|
/*------------------------------------------*/
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
/*------------------------------------------*/
|
|
// @Overrides
|
|
/*------------------------------------------*/
|
|
|
|
/*------------------------------------------*/
|
|
// öffentliche Methoden
|
|
/*------------------------------------------*/
|
|
|
|
public void mischen() {
|
|
|
|
}
|
|
|
|
/*------------------------------------------*/
|
|
// Hilfsmethoden (privat)
|
|
/*------------------------------------------*/
|
|
|
|
//
|
|
|
|
}
|