public class ImpassableTile extends BasicTile implements Serializable
Tile represents a space that no
character may pass, unless they override this behavior. An example of
this is a wall.| Constructor and Description |
|---|
ImpassableTile(int id)
Creates an instance of
ImpassableTile |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPassable(CharacterManager mgr)
Typically returns false, since this space is always impassable.
|
LevelBoard.ActionResult |
moveTo(CharacterManager characterManager)
Test to move the given character onto this tile.
|
addCharacter, addItem, canOccupy, charMoveTo, getID, getIdStack, getItem, removeCharacter, removeItempublic ImpassableTile(int id)
ImpassableTileid - the tile's identifierpublic boolean isPassable(CharacterManager mgr)
isPassable in interface TilemgrRef - the manager for a characterpublic LevelBoard.ActionResult moveTo(CharacterManager characterManager)
FAIL.Copyright © 2013. All Rights Reserved.