Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Attributes

Board2D Class Reference

Inheritance diagram for Board2D:
Board< 2 > ChessBoard DameBoard

List of all members.

Classes

struct  Coords

Public Types

typedef struct Board2D::Coords Coords

Public Member Functions

 Board2D (unsigned int columnNumber, unsigned int lineNumber)
void init (const std::vector< std::pair< Coords, Piece > > &startPieces)
const Pieceget (const int indexes[2]) const
const Pieceget (const Coords &coords) const
const std::vector< std::pair
< Coords, Piece > > 
getPieces () const
virtual void move (const Move< Coords > &move)=0

Static Public Attributes

static const Coords InvalidCoords = Coords()

Protected Attributes

std::vector< std::vector< Piece > > m_board

Member Function Documentation

virtual void Board2D::move ( const Move< Coords > &  move  )  [pure virtual]

Moves pieces on board as described by move

Parameters:
move 

Implemented in ChessBoard.


The documentation for this class was generated from the following files:
 All Classes Functions Variables