31 lines
340 B
C++
31 lines
340 B
C++
#ifndef _SETTINGS_H_
|
|
#define _SETTINGS_H_
|
|
|
|
struct point
|
|
{
|
|
int x, y;
|
|
};
|
|
|
|
enum type
|
|
{
|
|
BLACK = 0, WHITE, BOARD ,
|
|
NUMVALS
|
|
};
|
|
|
|
class Settings
|
|
{
|
|
|
|
public:
|
|
Settings( void );
|
|
|
|
|
|
private:
|
|
//upper left, upper right etc...
|
|
point ul, ur, bl, br;
|
|
//threshold for white and black
|
|
int colorThreshold[2];
|
|
|
|
};
|
|
|
|
#endif /* ifndef _SETTINGS_H_ */
|