public interface LevelBoard extends Board
Board that is used to manage levels.| Modifier and Type | Interface and Description |
|---|---|
static class |
LevelBoard.ActionResult
The possible results of taking an action on this board.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCharacterAt(int x,
int y,
CharacterManager mgr)
Tries to add a character at the given location.
|
boolean |
addItemAt(int x,
int y,
Item item)
Tries to add an item at the given location.
|
LevelBoard.ActionResult |
getItem(int x,
int y,
CharacterManager mgr)
Gets the items available at the given location.
|
LevelBoard.ActionResult |
moveTo(int x,
int y,
CharacterManager mgr)
Moves the given character to the given location.
|
boolean |
removeCharacterAt(int x,
int y,
CharacterManager mgr)
Tries to remove a character from the given location.
|
boolean |
removeItemAt(int x,
int y,
Item item)
Tries to remove an item from the given location.
|
boolean |
testMove(int x,
int y,
CharacterManager mgr)
Tests to see if a move would be possible to the given location for
the given character.
|
boolean addCharacterAt(int x,
int y,
CharacterManager mgr)
x - the x-coordinatey - the y-coordinatemgr - the character's managerboolean removeCharacterAt(int x,
int y,
CharacterManager mgr)
x - the x-coordinatey - the y-coordinatemgr - the character's managerboolean addItemAt(int x,
int y,
Item item)
x - the x-coordinatey - the y-coordinateitem - the item's managerboolean removeItemAt(int x,
int y,
Item item)
x - the x-coordinatey - the y-coordinateitem - the item's managerboolean testMove(int x,
int y,
CharacterManager mgr)
x - the x-coordinatey - the y-coordinatemgr - the character's managerLevelBoard.ActionResult moveTo(int x, int y, CharacterManager mgr)
addCharacterAt.x - the x-coordinatey - the y-coordinatemgr - the character's managerLevelBoard.ActionResult getItem(int x, int y, CharacterManager mgr)
x - the x-coordinatey - the y-coordinatemgr - the character's managerCopyright © 2013. All Rights Reserved.