Bridges-Java
3.4.3
Bridges(Java API)
|
Public Member Functions | |
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. More... | |
Public Member Functions inherited from bridges.games.GameBase | |
GameBase (int assid, String login, String apikey, int rows, int cols) | |
GameBase (int assid, String login, String apikey, int rows, int cols, boolean d) | |
Protected Attributes | |
Queue< String > | keyqueue |
Protected Attributes inherited from bridges.games.GameBase | |
boolean | debug = false |
boolean | gameStarted = true |
Additional Inherited Members | |
Protected Member Functions inherited from bridges.games.GameBase | |
abstract void | initialize () |
This function is called once when the game starts. More... | |
abstract void | gameLoop () |
This function is called once per frame of the game. More... | |
void | quit () |
Call this function to stop the game. More... | |
void | setTitle (String title) |
Set the title of the game. More... | |
void | setDescription (String desc) |
Set a short description of the game. More... | |
void | setBGColor (int row, int col, NamedColor c) |
Change the background color of a cell. More... | |
NamedColor | getBGColor (int row, int col) |
What color is this cell? More... | |
NamedSymbol | getSymbol (int row, int col) |
What object is in this cell? More... | |
NamedColor | getSymbolColor (int row, int col) |
What color is object in this cell? More... | |
void | drawSymbol (int row, int col, NamedSymbol s, NamedColor c) |
Draw a symbol on the game. More... | |
int | getBoardWidth () |
How wide is the Game Board? More... | |
int | getBoardHeight () |
How tall is the Game Board? More... | |
void | terminateNetwork () |
terminal all network connections Note that it takes a minute for all threads to gracefully exit More... | |
Package Functions inherited from bridges.games.GameBase | |
void | registerKeypress (KeypressListener kl) |
register a new KeypressListener More... | |
void | render () |
Renders the game. More... | |
bridges.games.BlockingGame.BlockingGame | ( | int | assid, |
String | login, | ||
String | apikey, | ||
int | cols, | ||
int | rows | ||
) |
String bridges.games.BlockingGame.getKeyPress | ( | ) |
void bridges.games.BlockingGame.keypress | ( | JSONObject | keypress | ) |
Implements bridges.connect.KeypressListener.
void bridges.games.BlockingGame.start | ( | ) |
Call this function from main to start the game.
Reimplemented from bridges.games.GameBase.
|
protected |