relatório limpo. falta começar apresentação.
[xYpjg3TdSw.git] / Enemy.h
blob64bcc0b383b12acaad929d4cd8e9a574482e6630
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) {}
14 inline void set_player(bool player) { _player = player; }
16 protected:
17 bool _player;
18 int _minimax_depth;
19 Board *_board;
23 #endif