Class MonsterChangeException

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

public class MonsterChangeException
extends java.lang.Exception

Defines an Exception if the Opponent in Battle/BattleAI wishes to change Monsters.

See Also:
Battle, BattleAI, Monster, Serialized Form

Constructor Summary
MonsterChangeException(int originalMonster, int newMonster)
          Simple constructor for MonsterChangeException
 
Method Summary
 int getNewMonster()
          Gets the position of the New Monster
 int getOriginalMonster()
          Gets the position of the Original Monster
 
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

MonsterChangeException

public MonsterChangeException(int originalMonster,
                              int newMonster)
Simple constructor for MonsterChangeException

Parameters:
originalMonster - the position of the Monster to take out of active status
newMonster - the position of the Monster to put in active status
Method Detail

getOriginalMonster

public int getOriginalMonster()
Gets the position of the Original Monster

Returns:
the position of the originial Monster.

getNewMonster

public int getNewMonster()
Gets the position of the New Monster

Returns:
the position of the new Monster.