public interface BoardListener
| Modifier and Type | Method and Description |
|---|---|
void |
changeBoard(Board board)
Notifies the listener that the board has changed.
|
void |
hearMessage(String message)
Notifies the listener of a message.
|
void |
setSpriteMap(int spriteSize,
Map<Integer,Image> spriteMap)
Notifies the listener of the sprite map that should be used.
|
void |
updateSpaces(BoardSpace[] spaces)
Notifies the listener that some set of spaces on the board have changed.
|
void setSpriteMap(int spriteSize,
Map<Integer,Image> spriteMap)
spriteSize - the size, in pixels, of the spritesspriteMap - a map from sprite identifier to sprite imagevoid changeBoard(Board board)
board - the new board where the player is playingvoid updateSpaces(BoardSpace[] spaces)
spaces - the changed space detailvoid hearMessage(String message)
message - the message that the player should "hear"Copyright © 2013. All Rights Reserved.