Bridges-Python
3.4.4
Bridges(Python API)
|
This is the base class for all games in BRIDGES.
Public Member Functions | |
def | __init__ (self, assid, login, apikey) |
PROTECTED constructor prevents the object from being directly created. More... | |
def | game_base_init (self, id, log, key) |
Initializes the gamebase object. More... | |
def | close (self) |
close the socket connection (and game) More... | |
def | register_keypress (self, kl) |
def | start (self) |
def | initialize (self) |
def | game_loop (self) |
def | quit (self) |
calling this function causes the game to end. More... | |
def | set_title (self, title) |
sets title of game More... | |
def | set_description (self, desc) |
sets description of the game More... | |
def | render (self) |
renders the scene More... | |
Public Attributes | |
firsttime | |
bridges | |
sock | |
scene | |
game_started | |
Static Public Attributes | |
bool | debug = True |
def bridges.gamebase3D.GameBase3D.__init__ | ( | self, | |
assid, | |||
login, | |||
apikey | |||
) |
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 in bridges.non_blocking_game3D.NonBlockingGame3D.
def bridges.gamebase3D.GameBase3D.close | ( | self | ) |
close the socket connection (and game)
def bridges.gamebase3D.GameBase3D.game_base_init | ( | self, | |
id, | |||
log, | |||
key | |||
) |
Initializes the gamebase object.
id | assignment number |
log | user name |
key | authentication id |
rows | height of game grid |
cols | width of game grid |
def bridges.gamebase3D.GameBase3D.game_loop | ( | self | ) |
def bridges.gamebase3D.GameBase3D.initialize | ( | self | ) |
def bridges.gamebase3D.GameBase3D.quit | ( | self | ) |
calling this function causes the game to end.
def bridges.gamebase3D.GameBase3D.register_keypress | ( | self, | |
kl | |||
) |
def bridges.gamebase3D.GameBase3D.render | ( | self | ) |
renders the scene
def bridges.gamebase3D.GameBase3D.set_description | ( | self, | |
desc | |||
) |
sets description of the game
def bridges.gamebase3D.GameBase3D.set_title | ( | self, | |
title | |||
) |
sets title of game
def bridges.gamebase3D.GameBase3D.start | ( | self | ) |
Reimplemented in bridges.non_blocking_game3D.NonBlockingGame3D.
bridges.gamebase3D.GameBase3D.bridges |
|
static |
bridges.gamebase3D.GameBase3D.firsttime |
bridges.gamebase3D.GameBase3D.game_started |
bridges.gamebase3D.GameBase3D.scene |
bridges.gamebase3D.GameBase3D.sock |