Class AttacksFullException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--AttacksFullException
All Implemented Interfaces:
java.io.Serializable

public class AttacksFullException
extends java.lang.Exception

If the Moster has Monster.MAXATTACKS throws this.

See Also:
Monster, Serialized Form

Constructor Summary
AttacksFullException(java.lang.String s, Attack a)
          Construct a new this.
 
Method Summary
 Attack getAttack()
          Gets the offending Attack.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttacksFullException

public AttacksFullException(java.lang.String s,
                            Attack a)
Construct a new this.

Parameters:
s - the String used in toString
a - the offending Attack
Method Detail

getAttack

public Attack getAttack()
Gets the offending Attack.

Returns:
The offending Attack