Class WuerfelSpiel

java.lang.Object
  extended by WuerfelSpiel
All Implemented Interfaces:
Spiel

public class WuerfelSpiel
extends java.lang.Object
implements Spiel


Constructor Summary
WuerfelSpiel()
           
 
Method Summary
 void einsatzZahlen(int betrag)
          Die Methode bewirkt, dass der Kontostand entsprechend dem Einsatz veringert wird.
 int getErmittelteZahl()
           
 int getKontostand()
           
 void gewinnAuszahlen()
          Bewirkt eine Veränderung des Kontostandes.
 void zahlErmitteln()
          Das Spiel geht los, die Trefferzahl wird ermittelt.
 void zahlSetzen(int zahl)
          Setzt die getippte Zahl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WuerfelSpiel

public WuerfelSpiel()
Method Detail

getKontostand

public int getKontostand()
Specified by:
getKontostand in interface Spiel
Returns:
liefert den Kontostand zurück.

einsatzZahlen

public void einsatzZahlen(int betrag)
Description copied from interface: Spiel
Die Methode bewirkt, dass der Kontostand entsprechend dem Einsatz veringert wird.

Specified by:
einsatzZahlen in interface Spiel

zahlSetzen

public void zahlSetzen(int zahl)
Description copied from interface: Spiel
Setzt die getippte Zahl.

Specified by:
zahlSetzen in interface Spiel
Parameters:
zahl - Die zu tippende Zahl.

zahlErmitteln

public void zahlErmitteln()
Description copied from interface: Spiel
Das Spiel geht los, die Trefferzahl wird ermittelt.

Specified by:
zahlErmitteln in interface Spiel

gewinnAuszahlen

public void gewinnAuszahlen()
Description copied from interface: Spiel
Bewirkt eine Veränderung des Kontostandes. Dabei muss der Einsatz, die getippte Zahl und die geworfene Zahl berücksichtigt werden.

Specified by:
gewinnAuszahlen in interface Spiel

getErmittelteZahl

public int getErmittelteZahl()
Specified by:
getErmittelteZahl in interface Spiel
Returns:
liefert die ermittelte Zahl zurück.