![]() |
Bridges-Python 3.5.1
Bridges(Python API)
|
Public Member Functions | |
| __init__ (self, assid, login, apikey, cols, rows) | |
| PROTECTED constructor prevents the object from being directly created. | |
| blocking_init (self) | |
| key_press (self, keypress) | |
| get_keypress (self) | |
| start (self) | |
Public Member Functions inherited from bridges.gamebase.GameBase | |
| game_base_init (self, id, log, key, rows, cols, debug=False) | |
| Initializes the gamebase object. | |
| close (self) | |
| close the socket connection (and game) | |
| register_keypress (self, kl) | |
| initialize (self) | |
| game_loop (self) | |
| quit (self) | |
| calling this function causes the game to end. | |
| set_title (self, title) | |
| sets title of game | |
| set_description (self, desc) | |
| sets description of the game | |
| get_bg_color (self, row, col) | |
| gets background color of a cell | |
| set_bg_color (self, row, col, color) | |
| sets background color of a cell | |
| get_symbol (self, row, col) | |
| gets symbol of the cell at row, col | |
| get_symbol_color (self, row, col) | |
| gets symbol color of the cell at row, col | |
| draw_symbol (self, row, col, s, c) | |
| draw symbol s with color col at cell (row, col) | |
| render (self) | |
| renders the board | |
Public Attributes | |
| q | |
Public Attributes inherited from bridges.gamebase.GameBase | |
| grid_state | |
| debug | |
| firsttime | |
| bridges | |
| grid | |
| sock | |
| game_started | |
Additional Inherited Members | |
Static Public Attributes inherited from bridges.gamebase.GameBase | |
| bool | debug = True |
Properties inherited from bridges.gamebase.GameBase | |
| board_width = property | |
| setter/getter property for board width | |
| board_height = property | |
| setter/getter property for board height | |
| bridges.blocking_game.BlockingGame.__init__ | ( | self, | |
| assid, | |||
| login, | |||
| apikey, | |||
| rows, | |||
| cols | |||
| ) |
PROTECTED constructor prevents the object from being directly created.
Since GameBase is meant to be a purely internal class, that seems appropriate.
| assid | assignment number |
| login | user name |
| apikey | authentication id |
| rows | height of game grid |
| cols | width of game grid |
Reimplemented from bridges.gamebase.GameBase.
| bridges.blocking_game.BlockingGame.blocking_init | ( | self | ) |
| bridges.blocking_game.BlockingGame.get_keypress | ( | self | ) |
| bridges.blocking_game.BlockingGame.key_press | ( | self, | |
| keypress | |||
| ) |
Reimplemented from bridges.keypress_listener.KeyPressListener.
| bridges.blocking_game.BlockingGame.start | ( | self | ) |
Reimplemented from bridges.gamebase.GameBase.
| bridges.blocking_game.BlockingGame.q |