com.tootsville.game
Class MagicBox.Box

java.lang.Object
  extended by com.tootsville.game.MagicBox.Box
Enclosing class:
MagicBox

private final class MagicBox.Box
extends Object

Utility class for tracking unique boxes and handling setting and clearing room variables

Author:
ewinkelman

Field Summary
private  ActionHandler handler
          The handler for catching the event action when a user triggers the server event
private  int id
          Unique ID of the box
private  int item
          Item ID of the box
private  Room room
          Room the box is in
 
Constructor Summary
MagicBox.Box(int num, Room myRoom, int itemID)
          Creates a box
 
Method Summary
 void clear()
          WRITEME ewinkelman Oct 16, 2010
 int getID()
           
 int getItem()
           
 Room getRoom()
           
 void place(org.starhope.appius.geometry.Coord2D point)
          Places the box at a point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handler

private transient ActionHandler handler
The handler for catching the event action when a user triggers the server event


id

private final int id
Unique ID of the box


item

private final int item
Item ID of the box


room

private final Room room
Room the box is in

Constructor Detail

MagicBox.Box

public MagicBox.Box(int num,
                    Room myRoom,
                    int itemID)
Creates a box

Parameters:
num - WRITEME
myRoom - WRITEME
itemID - WRITEME
Method Detail

clear

public void clear()
WRITEME ewinkelman Oct 16, 2010


getID

public int getID()
Returns:
the id

getItem

public int getItem()
Returns:
the item

getRoom

public Room getRoom()
Returns:
the room

place

public void place(org.starhope.appius.geometry.Coord2D point)
Places the box at a point

Parameters:
point - WRITEME