57 lines
989 B
Java
57 lines
989 B
Java
/*
|
|
============================================================
|
|
This is the "Narrenkarte" file from Author: Philipp Kotte
|
|
written on: 05 / 10 / 2023 at: 23:41
|
|
============================================================
|
|
*/
|
|
package Domain.Karten;
|
|
|
|
import Domain.Enums.Kartenfarbe;
|
|
|
|
public class Narrenkarte extends Karte {
|
|
|
|
// Statische Konstanten
|
|
private final static String NAME = "Narr";
|
|
// Statische Attribute
|
|
|
|
// Attribute des Objekts
|
|
|
|
private String name;
|
|
// Konstruktoren
|
|
|
|
public Narrenkarte(int id) {
|
|
super(id);
|
|
setName();
|
|
|
|
}
|
|
// Statische Methoden
|
|
|
|
// Getter und Setter
|
|
|
|
public int getId() {
|
|
return super.getId();
|
|
}
|
|
|
|
private void setName() {
|
|
this.name = NAME;
|
|
}
|
|
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public void setNarrenkarteanzahl(int narrenkarteanzahl) {
|
|
narrenkarteanzahl++;
|
|
}
|
|
|
|
// @Overrides
|
|
@Override
|
|
public String toString() {
|
|
return "ID " + this.getId() + ": " + this.getName();
|
|
}
|
|
// Public Methoden
|
|
|
|
// Private Methoden
|
|
|
|
}
|