grid.h
00001
00002
00003
00004
#ifndef __GRID_H
00005
#define __GRID_H
00006
#include "board.h"
00007
#include <string>
00008
using namespace std;
00009
00011
00014 class Grid{
00015
00016
protected:
00017
00019 int gfx_x;
00021 int gfx_y;
00023 int field_width;
00025 string
msg;
00026
public:
00028 int map[boardSize];
00029
00031
Grid();
00032
00034
00039
void set(
int x,
int y,
char pl);
00040
00042
00047
char get(
int x,
int y);
00049
void draw();
00050
00052
00056
bool can_player_move(
int pl_no);
00058
00064
bool isLegalMove(
int px,
int py,
int plNo);
00065
00067
00071
void printf(
const char* fmt, ...);
00072 };
00073
00074
00075
#endif
Generated on Fri May 14 02:44:24 2004 for Reversi by
1.3.7