risiko.common.exceptions
Class NichtGenugEinheitenException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by risiko.common.exceptions.NichtGenugEinheitenException
All Implemented Interfaces:
java.io.Serializable

public class NichtGenugEinheitenException
extends java.lang.Exception

Spieler hat nicht genügend Einheiten

Version:
2009-05-12
Author:
dgrosche
See Also:
Serialized Form

Constructor Summary
NichtGenugEinheitenException(Land a)
          Konstruktor aus der Welt heraus
NichtGenugEinheitenException(Land a, boolean k, java.util.Vector<java.lang.Integer> wA)
          Konstruktor aus einem Kampf heraus
 
Method Summary
 boolean behandle()
          Gibt zuück ob Besitzer des Landes aktiver Spieler ist und löscht bei Bedarf Würfelzahlen des Angreifers
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NichtGenugEinheitenException

public NichtGenugEinheitenException(Land a,
                                    boolean k,
                                    java.util.Vector<java.lang.Integer> wA)
                             throws java.rmi.RemoteException
Konstruktor aus einem Kampf heraus

Parameters:
a - Land, welches nicht genügend Einheuten hat
k - Tritt der Fehler in einem Kampf auf?
wA - Würfelzahlen des Angreifers
Throws:
java.rmi.RemoteException

NichtGenugEinheitenException

public NichtGenugEinheitenException(Land a)
                             throws java.rmi.RemoteException
Konstruktor aus der Welt heraus

Parameters:
a - Land, welches nicht genügend Einheiten hat
Throws:
java.rmi.RemoteException
Method Detail

behandle

public boolean behandle()
                 throws java.rmi.RemoteException
Gibt zuück ob Besitzer des Landes aktiver Spieler ist und löscht bei Bedarf Würfelzahlen des Angreifers

Returns:
true, wenn Spieler dran
Throws:
java.rmi.RemoteException