-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathValidator.h
More file actions
61 lines (46 loc) · 1009 Bytes
/
Validator.h
File metadata and controls
61 lines (46 loc) · 1009 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef _VALIDATOR_H_
#define _VALIDATOR_H_
#pragma once
#include "Manager.h"
using namespace std;
class Manager;
//singleton
class Validator
{
public:
static Validator* instance();
static void ResetInstance();
void initPointers();
void flushMsg();
~Validator(void);
bool checkDice ();
bool diceOutOfRange();
bool checkMove ();
bool moveOutOfRange();
bool piecesAreOnMdl();
bool canRemove(int );
void getPlayerData();
bool dubelCannotMove();
bool dubelPlayerCannotComeBackFromMiddle();
bool dubelNoRegularMove();
bool regCannotMove();
bool regPlayerCannotComeBackFromMiddle();
bool regNoRegularMove();
bool canRemove2(int ,int* , int);
bool doneCumputingMoves;
bool getDataUnecessary;
string msg1;
string msg2;
string msg3;
string msg4;
Manager* man;
int* aBoard;
int mdlPieces;
bool canRemovePieces;
int *currentDice;
my_pair move;
private:
Validator(void);
static Validator* v_instance;
};
#endif