#include <GameGrid.h>
|
| void | setBGColor (int row, int col, NamedColor color) |
| |
| NamedColor | getBGColor (int row, int col) const |
| |
| NamedColor | getFGColor (int row, int col) const |
| |
| NamedSymbol | getSymbol (int row, int col) const |
| |
| void | setFGColor (int row, int col, NamedColor color) |
| |
| void | setSymbol (int row, int col, NamedSymbol symbol) |
| |
| void | drawSymbol (int row, int col, NamedSymbol symbol, NamedColor color) |
| |
| virtual const string | getDStype () const override |
| |
| | GameGrid (int nbrow=10, int nbcol=10) |
| |
| virtual const string | getDataStructureRepresentation () const override |
| |
| | Grid (int rows, int cols) |
| |
| | Grid () |
| |
| | Grid (int *size) |
| |
| | Grid (const Grid &g) |
| |
| virtual | ~Grid () |
| |
| Grid & | operator= (const Grid &g) |
| |
| void | setDimensions (int rows, int cols) |
| |
| int const * | getDimensions () |
| |
| GameCell const & | get (int row, int col) const |
| |
| void | set (int row, int col, GameCell val) |
| |
| BracketHelperConst | operator[] (int row) const |
| | provides the necessary abstraction to do something = grid[x][y]; More...
|
| |
| BracketHelper | operator[] (int row) |
| | provides the necessary abstraction to do grid[x][y] = something; More...
|
| |
| virtual | ~DataStructure ()=default |
| |
◆ GameGrid()
| bridges::game::GameGrid::GameGrid |
( |
int |
nbrow = 10, |
|
|
int |
nbcol = 10 |
|
) |
| |
|
inline |
◆ drawSymbol()
Draw a symbol at the specified location
- Parameters
-
| row,col | - integer indices specifying the position to modify |
| symbol | Symbol to draw |
| color | Color to draw the symbol in |
◆ getBGColor()
| NamedColor bridges::game::GameGrid::getBGColor |
( |
int |
row, |
|
|
int |
col |
|
) |
| const |
|
inline |
◆ getDataStructureRepresentation()
| virtual const string bridges::game::GameGrid::getDataStructureRepresentation |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getDStype()
| virtual const string bridges::game::GameGrid::getDStype |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getFGColor()
| NamedColor bridges::game::GameGrid::getFGColor |
( |
int |
row, |
|
|
int |
col |
|
) |
| const |
|
inline |
◆ getSymbol()
| NamedSymbol bridges::game::GameGrid::getSymbol |
( |
int |
row, |
|
|
int |
col |
|
) |
| const |
|
inline |
◆ setBGColor()
| void bridges::game::GameGrid::setBGColor |
( |
int |
row, |
|
|
int |
col, |
|
|
NamedColor |
color |
|
) |
| |
|
inline |
Set background color of a cell using an enum argument
- Parameters
-
| row,col | - integer indices specifying the position to modify |
| color | - Named Color enum argument to set the background at the chosen position |
◆ setFGColor()
| void bridges::game::GameGrid::setFGColor |
( |
int |
row, |
|
|
int |
col, |
|
|
NamedColor |
color |
|
) |
| |
|
inline |
Set foreground color of a cell using an enum argument
- Parameters
-
| row,col | - integer indices specifying the position to modify |
| color | - Named Color enum argument to set the foreground at the chosen position |
◆ setSymbol()
| void bridges::game::GameGrid::setSymbol |
( |
int |
row, |
|
|
int |
col, |
|
|
NamedSymbol |
symbol |
|
) |
| |
|
inline |
Set the symbol of a cell using an enum argument
- Parameters
-
| row,col | - integer indices specifying the position to modify |
| symbol | - the symbol to set |
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-cxx/src/GameGrid.h