![]() |
Bridges-Java-3.0.1
3.0.1
Bridges(JavaAPI)
|
This class is used to represent cells in GameGrids in BRIDGES. Each cell has a foreground color, background color, and symbol.
Public Member Functions | |
GameCell () | |
GameCell (NamedColor bg, NamedColor fg, NamedSymbol symbol) | |
void | setBGColor (NamedColor bg) |
void | setFGColor (NamedColor fg) |
void | setBGColor (String bg) |
void | setFGColor (String fg) |
void | setSymbol (int s) |
void | setSymbol (NamedSymbol s) |
NamedColor | getBGColor () |
NamedColor | getFGColor () |
NamedSymbol | getSymbol () |
byte | getBGByte () |
byte | getFGByte () |
byte | getSymbolByte () |
Static Protected Attributes | |
static NamedSymbol [] | symbolArray = NamedSymbol.values() |
bridges.base.GameCell.GameCell | ( | ) |
bridges.base.GameCell.GameCell | ( | NamedColor | bg, |
NamedColor | fg, | ||
NamedSymbol | symbol | ||
) |
Constructor with all arguments specified
bg,fg | - Named Colors from the NamedColor enum |
symbol | - symbol index from range 0-255 |
byte bridges.base.GameCell.getBGByte | ( | ) |
NamedColor bridges.base.GameCell.getBGColor | ( | ) |
byte bridges.base.GameCell.getFGByte | ( | ) |
NamedColor bridges.base.GameCell.getFGColor | ( | ) |
NamedSymbol bridges.base.GameCell.getSymbol | ( | ) |
byte bridges.base.GameCell.getSymbolByte | ( | ) |
void bridges.base.GameCell.setBGColor | ( | NamedColor | bg | ) |
Set background color using NamedColor Enum argument
bg | - Named Color from the NamedColor enum |
void bridges.base.GameCell.setBGColor | ( | String | bg | ) |
Set background color using String argument
bg | - String background color |
void bridges.base.GameCell.setFGColor | ( | NamedColor | fg | ) |
Set foreground color using NamedColor Enum argument
fg | - Named Color from the NamedColor enum |
void bridges.base.GameCell.setFGColor | ( | String | fg | ) |
Set foreground color using String argument
fg | - String foreground color |
void bridges.base.GameCell.setSymbol | ( | int | s | ) |
Set symbol using int argument
s | - Integer symbol index |
void bridges.base.GameCell.setSymbol | ( | NamedSymbol | s | ) |
Set symbol using int argument
s | - Named symbol |
|
staticprotected |