Public Member Functions | Public Attributes

CChessBoard Class Reference

Inherits IChessBoard.

List of all members.

Public Member Functions

 CChessBoard (string& tileWhite, string& tileBlack, array< uint > npcSkins, int16 tileOffsetX=0, int16 tileOffsetY=0)
 ~CChessBoard ()
uint16 get_BaseHexX ()
uint16 get_BaseHexY ()
string get_TileWhite ()
string get_TileBlack ()
int16 get_TileOffsetX ()
int16 get_TileOffsetY ()
void Create ()
bool AddTile (uint8 x, uint y, ChessColor color)
bool AddFigure (uint8 x, uint8 y, ChessFigure figure, ChessColor color)
bool AddFigure (IChessTile& tile, ChessFigure figure, ChessColor color)
void Spawn (Map& map, uint16 hx, uint16 hy)
bool Move (uint8 fromX, uint8 fromY, uint8 toX, uint8 toY)
IChessTile@ GetTile (uint8 x, uint8 y)
IChessNpc@ GetNpc (uint8 x, uint8 y)
uint GetNpcSkin (ChessFigure figure, ChessColor color)
Location@ GetLocation ()
Map@ GetMap ()
Item@ GetItem (uint8 x, uint8 y)
Critter@ GetCritter (uint8 x, uint8 y)

Public Attributes

uint mapId
array< uint16 > hex
array< string > tilePicture
array< int16 > tileOffset
array< IChessTile@> tiles
array< uint > npcSkins

Constructor & Destructor Documentation

CChessBoard ( string&  tileWhite,
string&  tileBlack,
array< uint >  npcSkins,
int16  tileOffsetX = 0,
int16  tileOffsetY = 0 
)
~CChessBoard (  ) 

Member Function Documentation

uint16 get_BaseHexX (  ) 
uint16 get_BaseHexY (  ) 
string get_TileWhite (  ) 
string get_TileBlack (  ) 
int16 get_TileOffsetX (  ) 
int16 get_TileOffsetY (  ) 
void Create (  ) 
bool AddTile ( uint8  x,
uint  y,
ChessColor  color 
)

Implements IChessBoard.

bool AddFigure ( uint8  x,
uint8  y,
ChessFigure  figure,
ChessColor  color 
)

Implements IChessBoard.

bool AddFigure ( IChessTile&  tile,
ChessFigure  figure,
ChessColor  color 
)

Implements IChessBoard.

void Spawn ( Map&  map,
uint16  hx,
uint16  hy 
)

Implements IChessBoard.

bool Move ( uint8  fromX,
uint8  fromY,
uint8  toX,
uint8  toY 
)

Implements IChessBoard.

IChessTile@ GetTile ( uint8  x,
uint8  y 
)

Implements IChessBoard.

IChessNpc@ GetNpc ( uint8  x,
uint8  y 
)

Implements IChessBoard.

uint GetNpcSkin ( ChessFigure  figure,
ChessColor  color 
)

Implements IChessBoard.

Location@ GetLocation (  ) 

Implements IChessBoard.

Map@ GetMap (  ) 

Implements IChessBoard.

Item@ GetItem ( uint8  x,
uint8  y 
)

Implements IChessBoard.

Critter@ GetCritter ( uint8  x,
uint8  y 
)

Implements IChessBoard.


Member Data Documentation

uint mapId
array<uint16> hex
array<int16> tileOffset
array<IChessTile@> tiles
array<uint> npcSkins