Bridges-Python-3.0.0  3.0.0b
Bridges(PythonAPI)
Public Member Functions | Public Attributes | List of all members
bridges.game_grid.GameGrid Class Reference
Inheritance diagram for bridges.game_grid.GameGrid:
bridges.grid.Grid

Public Member Functions

def set_encoding (self, encoding)
 
def get_data_structure_type (self)
 
def __init__ (self, rows=None, cols=None)
 
def initialize_game_Grid (self)
 
def get_bg_color (self, row, col)
 
def set_bg_color (self, row, col, color)
 
def get_fg_color (self, row, col)
 
def set_fg_color (self, row, col, color)
 
def get_symbol (self, row, col)
 
def get_symbol_color (self, row, col)
 
def draw_object (self, row, col, symbol, color)
 
def get_data_structure_representation (self)
 
def run_length (self, arr)
 
- Public Member Functions inherited from bridges.grid.Grid
def get_data_structure_type (self)
 Get the data structure type. More...
 
def __init__ (self, kwargs)
 Grid constructor. More...
 
def dimensions (self)
 Getter for the dimensions of the grid. More...
 
def get
 Get the row,col element in the grid. More...
 
def set
 set the (row, col) element in the grid More...
 

Public Attributes

 encoding
 
 bf_bg
 
 bf_fg
 
 bf_symbols
 
 grid_size
 
- Public Attributes inherited from bridges.grid.Grid
 grid
 

Additional Inherited Members

- Static Public Attributes inherited from bridges.grid.Grid
list grid_size = [10, 10]
 
list maxGridSize = [1080, 1920]
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.game_grid.GameGrid.__init__ (   self,
  rows = None,
  cols = None 
)

Member Function Documentation

◆ draw_object()

def bridges.game_grid.GameGrid.draw_object (   self,
  row,
  col,
  symbol,
  color 
)

◆ get_bg_color()

def bridges.game_grid.GameGrid.get_bg_color (   self,
  row,
  col 
)

◆ get_data_structure_representation()

def bridges.game_grid.GameGrid.get_data_structure_representation (   self)

◆ get_data_structure_type()

def bridges.game_grid.GameGrid.get_data_structure_type (   self)

◆ get_fg_color()

def bridges.game_grid.GameGrid.get_fg_color (   self,
  row,
  col 
)

◆ get_symbol()

def bridges.game_grid.GameGrid.get_symbol (   self,
  row,
  col 
)

◆ get_symbol_color()

def bridges.game_grid.GameGrid.get_symbol_color (   self,
  row,
  col 
)

◆ initialize_game_Grid()

def bridges.game_grid.GameGrid.initialize_game_Grid (   self)

◆ run_length()

def bridges.game_grid.GameGrid.run_length (   self,
  arr 
)

◆ set_bg_color()

def bridges.game_grid.GameGrid.set_bg_color (   self,
  row,
  col,
  color 
)

◆ set_encoding()

def bridges.game_grid.GameGrid.set_encoding (   self,
  encoding 
)

◆ set_fg_color()

def bridges.game_grid.GameGrid.set_fg_color (   self,
  row,
  col,
  color 
)

Member Data Documentation

◆ bf_bg

bridges.game_grid.GameGrid.bf_bg

◆ bf_fg

bridges.game_grid.GameGrid.bf_fg

◆ bf_symbols

bridges.game_grid.GameGrid.bf_symbols

◆ encoding

bridges.game_grid.GameGrid.encoding

◆ grid_size

bridges.game_grid.GameGrid.grid_size

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