mud.common.room
Class GameTile

java.lang.Object
  extended by mud.common.room.GameTile

public class GameTile
extends java.lang.Object

Implements a single tile.

Author:
Pieter van Ede

Constructor Summary
GameTile(ImageRect image)
           
 
Method Summary
 void addOccupant(GameObject object)
           
 java.util.List<TileAction> getActions()
           
 ImageRect getImage()
           
 java.util.List<GameObject> getObjects()
           
 boolean isFree()
           
 boolean isSolid()
           
 void removeOccupant(GameObject object)
           
 void removeOccupant(int index)
           
 void setSolid(boolean s)
           
 XmlElement toXml()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameTile

public GameTile(ImageRect image)
Method Detail

addOccupant

public void addOccupant(GameObject object)

removeOccupant

public void removeOccupant(GameObject object)

removeOccupant

public void removeOccupant(int index)

getImage

public ImageRect getImage()

getActions

public java.util.List<TileAction> getActions()

getObjects

public java.util.List<GameObject> getObjects()

isSolid

public boolean isSolid()

isFree

public boolean isFree()

setSolid

public void setSolid(boolean s)

toXml

public XmlElement toXml()