|
| void | keypress (JSONObject keypress) |
| |
| String | getKeyPress () |
| |
| | BlockingGame (int assid, String login, String apikey, int cols, int rows) |
| |
| void | start () |
| | Call this function from main to start the game.
|
| |
| | GameBase (int assid, String login, String apikey, int rows, int cols) |
| |
| | GameBase (int assid, String login, String apikey, int rows, int cols, boolean d) |
| |
|
| abstract void | initialize () |
| | This function is called once when the game starts.
|
| |
| abstract void | gameLoop () |
| | This function is called once per frame of the game.
|
| |
| void | quit () |
| | Call this function to stop the game.
|
| |
| void | setTitle (String title) |
| | Set the title of the game.
|
| |
| void | setDescription (String desc) |
| | Set a short description of the game.
|
| |
| void | setBGColor (int row, int col, NamedColor c) |
| | Change the background color of a cell.
|
| |
| NamedColor | getBGColor (int row, int col) |
| | What color is this cell?
|
| |
| NamedSymbol | getSymbol (int row, int col) |
| | What object is in this cell?
|
| |
| NamedColor | getSymbolColor (int row, int col) |
| | What color is object in this cell?
|
| |
| void | drawSymbol (int row, int col, NamedSymbol s, NamedColor c) |
| | Draw a symbol on the game.
|
| |
| int | getBoardWidth () |
| | How wide is the Game Board?
|
| |
| int | getBoardHeight () |
| | How tall is the Game Board?
|
| |
| void | terminateNetwork () |
| | terminal all network connections Note that it takes a minute for all threads to gracefully exit
|
| |
| void | registerKeypress (KeypressListener kl) |
| | register a new KeypressListener
|
| |
| void | render () |
| | Renders the game.
|
| |
◆ BlockingGame()
| bridges.games.BlockingGame.BlockingGame |
( |
int |
assid, |
|
|
String |
login, |
|
|
String |
apikey, |
|
|
int |
cols, |
|
|
int |
rows |
|
) |
| |
◆ getKeyPress()
| String bridges.games.BlockingGame.getKeyPress |
( |
| ) |
|
◆ keypress()
| void bridges.games.BlockingGame.keypress |
( |
JSONObject |
keypress | ) |
|
◆ start()
| void bridges.games.BlockingGame.start |
( |
| ) |
|
◆ keyqueue
| Queue<String> bridges.games.BlockingGame.keyqueue |
|
protected |
The documentation for this class was generated from the following file: