88 lines
1.1 KiB
Java
88 lines
1.1 KiB
Java
package de.jaujau.daten;
|
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
* Class Spielerverwaltung
|
|
*/
|
|
public class Spielerverwaltung {
|
|
|
|
//
|
|
// Fields
|
|
//
|
|
|
|
private int level;
|
|
/**
|
|
* arraylist von Spieler
|
|
*/
|
|
private Spieler spieler;
|
|
|
|
//
|
|
// Constructors
|
|
//
|
|
public Spielerverwaltung () { };
|
|
|
|
//
|
|
// Methods
|
|
//
|
|
|
|
|
|
//
|
|
// Accessor methods
|
|
//
|
|
|
|
/**
|
|
* Set the value of level
|
|
* @param newVar the new value of level
|
|
*/
|
|
public void setLevel (int newVar) {
|
|
level = newVar;
|
|
}
|
|
|
|
/**
|
|
* Get the value of level
|
|
* @return the value of level
|
|
*/
|
|
public int getLevel () {
|
|
return level;
|
|
}
|
|
|
|
/**
|
|
* Set the value of spieler
|
|
* arraylist von Spieler
|
|
* @param newVar the new value of spieler
|
|
*/
|
|
public void setSpieler (Spieler newVar) {
|
|
spieler = newVar;
|
|
}
|
|
|
|
/**
|
|
* Get the value of spieler
|
|
* arraylist von Spieler
|
|
* @return the value of spieler
|
|
*/
|
|
public Spieler getSpieler () {
|
|
return spieler;
|
|
}
|
|
|
|
//
|
|
// Other methods
|
|
//
|
|
|
|
/**
|
|
*/
|
|
public void leseDaten()
|
|
{
|
|
}
|
|
|
|
|
|
/**
|
|
*/
|
|
public void speichernDaten()
|
|
{
|
|
}
|
|
|
|
|
|
}
|