|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.huguesjohnson.tiamat.graphics.TileMapData
public class TileMapData
TileMapData - data for TileMap
| Field Summary | |
|---|---|
static int |
DEFAULT_TYPE
Default tile type (TYPE_NORMAL). |
static int |
TYPE_EVENT
Tile that has some event associated to it. |
static int |
TYPE_EXIT
Tile that exits the map. |
static int |
TYPE_NORMAL
Tile you walk over with no effect on anything. |
static int |
TYPE_SOLID
Solid tile. |
| Constructor Summary | |
|---|---|
TileMapData(int tile)
Creates a new instance of TileMapData. |
|
TileMapData(int tile,
int type)
Creates a new instance of TileMapData. |
|
TileMapData(int tile,
int type,
java.lang.Object object)
Creates a new instance of TileMapData. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getObject()
Retuns the object that is standing on this tile. |
int |
getTile()
Returns the index of tile in array or list of tiles. |
int |
getType()
Returns the tile type, one of types defined in public constants. |
void |
setObject(java.lang.Object object)
Sets the object that is standing on this tile. |
void |
setTile(int tile)
Sets the index of tile in array or list of tiles. |
void |
setType(int type)
Set the tile type, one of types defined in public constants. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_NORMAL
public static final int TYPE_EXIT
public static final int TYPE_EVENT
public static final int TYPE_SOLID
public static final int DEFAULT_TYPE
| Constructor Detail |
|---|
public TileMapData(int tile)
tile - The index of tile in array or list of tiles.
public TileMapData(int tile,
int type)
tile - The index of tile in array or list of tiles.type - One of types defined in public constants.
public TileMapData(int tile,
int type,
java.lang.Object object)
tile - The index of tile in array or list of tiles.type - One of types defined in public constants.object - The object that is standing on this tile.| Method Detail |
|---|
public int getTile()
public void setTile(int tile)
tile - The index of tile in array or list of tiles.public int getType()
public void setType(int type)
type - One of types defined in public constants.public java.lang.Object getObject()
public void setObject(java.lang.Object object)
object - The object that is standing on this tile.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||