heuristicas começando a implementar ...
[xYpjg3TdSw.git] / Enemy.h
blob08a7b4fbb1793ef8c91bf9ea7b2cf0614c3b9724
1 #ifndef __ENEMY_H__
2 #define __ENEMY_H__
4 class Board;
6 class Enemy
8 public:
9 Enemy(bool player, int minimaxDepth): _player(player), _minimax_depth(minimaxDepth) {}
10 virtual ~Enemy() {}
11 virtual void move(Board *board, int& fromX, int& fromY, int& toX, int& toY) = 0;
12 void set_minimax_depth(int minimaxDepth) { _minimax_depth = minimaxDepth; }
13 virtual void undo(Board *board) {}
15 protected:
16 bool _player;
17 int _minimax_depth;
18 Board *_board;
22 #endif