Bridges-C++  3.1.1
Bridges(C++API)
Public Member Functions | List of all members
bridges::game::GameCell Class Reference

#include <GameGrid.h>

Public Member Functions

 GameCell ()
 
 GameCell (NamedColor bg, NamedColor fg, NamedSymbol symbol)
 
void setBGColor (NamedColor bg)
 
void setFGColor (NamedColor fg)
 
void setSymbol (NamedSymbol s)
 
NamedColor getBGColor () const
 
NamedColor getFGColor () const
 
NamedSymbol getSymbol () const
 

Constructor & Destructor Documentation

◆ GameCell() [1/2]

bridges::game::GameCell::GameCell ( )
inline

◆ GameCell() [2/2]

bridges::game::GameCell::GameCell ( NamedColor  bg,
NamedColor  fg,
NamedSymbol  symbol 
)
inline

Member Function Documentation

◆ getBGColor()

NamedColor bridges::game::GameCell::getBGColor ( ) const
inline

◆ getFGColor()

NamedColor bridges::game::GameCell::getFGColor ( ) const
inline

◆ getSymbol()

NamedSymbol bridges::game::GameCell::getSymbol ( ) const
inline

◆ 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
s- Named symbol

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