Bridges-Python  3.4.4
Bridges(Python API)
Public Member Functions | Public Attributes | List of all members
bridges.blocking_game.BlockingGame Class Reference
Inheritance diagram for bridges.blocking_game.BlockingGame:
bridges.keypress_listener.KeyPressListener bridges.gamebase.GameBase

Public Member Functions

def __init__ (self, assid, login, apikey, cols, rows)
 
def blocking_init (self)
 
def key_press (self, keypress)
 
def get_keypress (self)
 
def start (self)
 
- Public Member Functions inherited from bridges.gamebase.GameBase
def __init__ (self, assid, login, apikey, rows, cols, debug=False)
 PROTECTED constructor prevents the object from being directly created. More...
 
def game_base_init (self, id, log, key, rows, cols, debug=False)
 Initializes the gamebase object. More...
 
def close (self)
 close the socket connection (and game) More...
 
def register_keypress (self, kl)
 
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 get_bg_color (self, row, col)
 gets background color of a cell More...
 
def set_bg_color (self, row, col, color)
 sets background color of a cell More...
 
def get_symbol (self, row, col)
 gets symbol of the cell at row, col More...
 
def get_symbol_color (self, row, col)
 gets symbol color of the cell at row, col More...
 
def draw_symbol (self, row, col, s, c)
 draw symbol s with color col at cell (row, col) More...
 
def render (self)
 renders the board More...
 
def board_width (self)
 setter/getter property for board width More...
 
def board_height (self)
 setter/getter property for board height More...
 

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
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.blocking_game.BlockingGame.__init__ (   self,
  assid,
  login,
  apikey,
  cols,
  rows 
)

Member Function Documentation

◆ blocking_init()

def bridges.blocking_game.BlockingGame.blocking_init (   self)

◆ get_keypress()

def bridges.blocking_game.BlockingGame.get_keypress (   self)

◆ key_press()

def bridges.blocking_game.BlockingGame.key_press (   self,
  keypress 
)

◆ start()

def bridges.blocking_game.BlockingGame.start (   self)
"starts the game. Called once at the beginning"

Reimplemented from bridges.gamebase.GameBase.

Member Data Documentation

◆ q

bridges.blocking_game.BlockingGame.q

The documentation for this class was generated from the following file: