-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRandomPlayer.h
More file actions
42 lines (39 loc) · 1.22 KB
/
RandomPlayer.h
File metadata and controls
42 lines (39 loc) · 1.22 KB
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
//
// Created by fok poon kai on 2018-04-06.
//
#ifndef COMP345P1_RANDOMPLAYER_H
#define COMP345P1_RANDOMPLAYER_H
#include "PlayerType.h"
class RandomPlayer:public PlayerType{
public:
RandomPlayer();
~RandomPlayer();
Veiwer veiwer;
bool fromregion;
bool toregion;
// Player py;
//inherate in PlayerType Class
void pickupRaceNSp(ListofPlayer *x);
void conquers(ListofPlayer *x,Player py,vector <NodeRegion > *nr_vPtr,vector<ListofPlayer> *lp_vtr);
void scores(ListofPlayer *x,Player py,vector <NodeRegion > *nr_vPtr,vector<ListofPlayer> *lp_vtr);
void firstEdge(ListofPlayer *x,Player py,vector <NodeRegion > *nr_vPtr,vector<ListofPlayer> *lp_vtr);
void redeployment(ListofPlayer *x,Player py,vector <NodeRegion > *nr_vPtr,vector<ListofPlayer> *lp_vtr);
int totalNumberOfRegion;
int playerID;
int playerPopulation;
bool conquer_check;
bool Edgeoccupied;
int toWhichRegion;
int fromWhichRegion;
int randomnumberV2;
bool redeployment_check;
int redeploymentPopulation;
int regionPopulation;
int input;
int firstLock;
int putRedeploymentPopulation;
int getRedeploymentPopulation;
int lock;
int input2;
};
#endif //COMP345P1_RANDOMPLAYER_H