31 lines
403 B
C++
31 lines
403 B
C++
#ifndef _STATE_H_
|
|
#define _STATE_H_
|
|
|
|
#include "settings.h"
|
|
#include <SDL/SDL.h>
|
|
|
|
/**
|
|
* Describes the current state of a go board.
|
|
*/
|
|
class State
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
* Standard constructor
|
|
*/
|
|
State( void );
|
|
|
|
void setSize(int size) { State::size = size; }
|
|
|
|
static State generateState( SDL_Surface *board, Settings settings);
|
|
|
|
|
|
private:
|
|
static int size;
|
|
|
|
};
|
|
|
|
#endif /* ifndef _STATE_H_ */
|