-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAIPlayer.cpp
More file actions
44 lines (36 loc) · 964 Bytes
/
AIPlayer.cpp
File metadata and controls
44 lines (36 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "AIPlayer.h"
AIPlayer::AIPlayer(PlayerOrderType orderType, AiDifficulty difficulty, IGameStateMachine* stateMachine, Board* board) : IPlayer(orderType, stateMachine, board), _difficulty(difficulty)
{
StateMachine = stateMachine;
GameBoard = board;
OrderType = orderType;
_difficulty = difficulty;
Debug::LogInfo("AI player was created");
}
void AIPlayer::OnTurnEnter()
{
}
void AIPlayer::OnEndTurnEnter()
{
// ÷åðåç äâóìåðíûé ìàññèâ êëåòêàìè
//Cell* Board::GetCellById(short id)
//PossibleTurns* _possibleTurns = 0;
//*_possibleTurns = GameBoard->GetAllPossibleTurns(OrderType);
Cell* cell[6];
cell[0] = GameBoard->GetCellById(7);
cell[1] = GameBoard->GetCellById(8);
cell[2] = GameBoard->GetCellById(9);
cell[3] = GameBoard->GetCellById(10);
cell[4] = GameBoard->GetCellById(11);
cell[5] = GameBoard->GetCellById(12);
cell[0]._checks
}
void AIPlayer::OnUpdate()
{
}
void AIPlayer::OnEndUpdate()
{
}
void AIPlayer::OnTurnExit()
{
}