#ifndef _FIELD_H #define _FIELD_H #include #include #include "types.h" #include "Cell.h" const PlayerColor emptyColors[] = { 0x000000, 0x404040, 0xAAAAAA}; const uint gridSize = 10; class Field { public: Field(uint width = 0, uint height = 0); virtual ~Field(void); public: /** * Inits the fields at a givens size and empties it. **/ void init(uint width, uint height); /** * Draw all players for several cycles. Initial, final AND intermediate positions will be drawn. **/ bool drawAllPlayers(uint numCycles); /** * Returns a specific cell given its coordinates. **/ Cell& getCell(Coordinates c); /** * Returns the size of the field **/ Coordinates getMaxCoordinates(); /** * Redefines the value of a cell. **/ void setCell(Coordinates coord, Cell cell); private: int m_width; int m_height; std::vector m_fieldCells; }; #endif