![]() |
Bridges-C++
3.2.0
Bridges(C++API)
|
#include <GameGrid.h>
This class represents a single cell of the Game Grid.
This class is part of the Bridges Game API Each cell of the game grid contains background and foreground colors, and a symbol. Refer to the NamedColor and NamedSymbol definitions for a list of colors and symbols that can be used.
Public Member Functions | |
| GameCell () | |
| constructor More... | |
| GameCell (NamedColor bg, NamedColor fg, NamedSymbol symbol) | |
| void | setBGColor (NamedColor bg) |
| Set background color using NamedColor Enum argument. More... | |
| void | setFGColor (NamedColor fg) |
| Set foreground color using NamedColor Enum argument. More... | |
| void | setSymbol (NamedSymbol s) |
| Set symbol using int argument. More... | |
| NamedColor | getBGColor () const |
| Get background color of cell. More... | |
| NamedColor | getFGColor () const |
| Get foreground color of cell. More... | |
| NamedSymbol | getSymbol () const |
| Get cell symbol. More... | |
|
inline |
constructor
|
inline |
constructor
| bg | background color |
| fg | foreground color |
| symbol | symbol a this cell |
|
inline |
Get background color of cell.
|
inline |
Get foreground color of cell.
|
inline |
Get cell symbol.
|
inline |
Set background color using NamedColor Enum argument.
| bg | - Named Color from the NamedColor enum |
|
inline |
Set foreground color using NamedColor Enum argument.
| fg | - Named Color from the NamedColor enum |
|
inline |
Set symbol using int argument.
| s | - Named symbol |
1.8.13