public class PassableTile extends BasicTile implements Serializable
Tile represents a space that any
single character may occupy.| Constructor and Description |
|---|
PassableTile(int id)
Creates an instance of
PassableTile |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPassable(CharacterManager mgr)
Always returns true, since this space is always passable.
|
LevelBoard.ActionResult |
moveTo(CharacterManager mgr)
Test to move the given character onto this tile.
|
addCharacter, addItem, canOccupy, charMoveTo, getID, getIdStack, getItem, removeCharacter, removeItempublic PassableTile(int id)
PassableTileid - the tile's identifierpublic boolean isPassable(CharacterManager mgr)
isPassable in interface Tilemgr - the manager for a characterpublic LevelBoard.ActionResult moveTo(CharacterManager mgr)
Copyright © 2013. All Rights Reserved.