shoddybattle
Class BattleTurn

java.lang.Object
  extended by shoddybattle.BattleTurn
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class BattleTurn
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

This class represents one half of a turn of a battle - the move made by a single party.

See Also:
Serialized Form

Field Summary
protected  int m_id
           
protected  boolean m_useMove
           
 
Method Summary
 java.lang.Object clone()
          Allows for the cloning of this move.
 int getId()
           
 PokemonMove getMove(Pokemon poke)
          Get the PokemonMove that this object refers to.
static BattleTurn getMoveTurn(int i)
          Get a BattleTurn object that represents using the identified move.
static BattleTurn getSwitchTurn(int i)
          Get a BattleTurn objects that represents switching in the identified pokemon.
 boolean isMoveTurn()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_useMove

protected boolean m_useMove

m_id

protected int m_id
Method Detail

clone

public java.lang.Object clone()
Allows for the cloning of this move.

Overrides:
clone in class java.lang.Object

getId

public int getId()

isMoveTurn

public boolean isMoveTurn()

getMove

public PokemonMove getMove(Pokemon poke)
Get the PokemonMove that this object refers to.


getSwitchTurn

public static BattleTurn getSwitchTurn(int i)
Get a BattleTurn objects that represents switching in the identified pokemon.


getMoveTurn

public static BattleTurn getMoveTurn(int i)
Get a BattleTurn object that represents using the identified move.