Class ItemChangeException

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

public class ItemChangeException
extends java.lang.Exception

Defines an Exception if the Opponent in Battle/BattleAI wishes to use an Item.

See Also:
Battle, BattleAI, Item, Serialized Form

Constructor Summary
ItemChangeException(Item item)
          Simple constructor for ItemChangeException
 
Method Summary
 Item getItem()
          Returns the Item to use
 
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

ItemChangeException

public ItemChangeException(Item item)
Simple constructor for ItemChangeException

Parameters:
item - the Item to use
Method Detail

getItem

public Item getItem()
Returns the Item to use

Returns:
the Item to use