This class represents a single cell of the Game Grid.
More...
#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.
- See also
- See the detailed BRIDGES game tutorial for examples at https://bridgesuncc.github.io/tutorials/NonBlockingGame.html
- Author
- Erik Saule,
- Date
- 2018, 2019, 12/28/20
◆ GameCell() [1/2]
bridges::game::GameCell::GameCell |
( |
| ) |
|
|
inline |
◆ GameCell() [2/2]
constructor
- Parameters
-
bg | background color |
fg | foreground color |
symbol | symbol a this cell |
◆ getBGColor()
NamedColor bridges::game::GameCell::getBGColor |
( |
| ) |
const |
|
inline |
Get background color of cell.
- Returns
- background color of cell
◆ getFGColor()
NamedColor bridges::game::GameCell::getFGColor |
( |
| ) |
const |
|
inline |
Get foreground color of cell.
- Returns
- foreground color of cell
◆ getSymbol()
NamedSymbol bridges::game::GameCell::getSymbol |
( |
| ) |
const |
|
inline |
Get cell symbol.
- Returns
- symbol at this cell
◆ setBGColor()
void bridges::game::GameCell::setBGColor |
( |
NamedColor |
bg | ) |
|
|
inline |
Set background color using NamedColor Enum argument.
- Parameters
-
bg | - Named Color from the NamedColor enum |
◆ setFGColor()
void bridges::game::GameCell::setFGColor |
( |
NamedColor |
fg | ) |
|
|
inline |
Set foreground color using NamedColor Enum argument.
- Parameters
-
fg | - Named Color from the NamedColor enum |
◆ setSymbol()
void bridges::game::GameCell::setSymbol |
( |
NamedSymbol |
s | ) |
|
|
inline |
Set symbol using int argument.
- Parameters
-
The documentation for this class was generated from the following file: