-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.h
77 lines (59 loc) · 1.6 KB
/
Player.h
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*********************************************************************
** Program Filename: Player.h
** Author: Aeijan Bajracharya
** Date: 5/30/18
** Description: Player .h file
** Input: N/A
** Output: N/A
*********************************************************************/
#ifndef PLAYER_H
#define PLAYER_H
#include <iostream>
#include <string>
#include <vector>
#include "Ant_P.h"
#include "Bee_P.h"
#include "Ant_Bodyguard.h"
using namespace std;
struct game{
Ant * ants;
Bodyguard * bodyguard;
vector<Bee> bees;
int num_bees;
};
class Player{
protected:
int food_bank;
game * board;
public:
Player();
Player(const Player &);
Player & operator=(const Player &);
~Player();
void set_food_bank(int);
int get_food_bank();
void set_board(game *);
game * get_board();
game * init_gameboard();
void print_mainpart_gameboard();
void print_gameboard();
void generate_bees( Bee);
void move_bees();
int to_int(string);
void print_ant();
bool valid_ant(string);
int get_ant();
bool not_occupied_ant_space(string);
int get_position();
bool valid_position(string);
void place_ant(int, int);
void each_move();
void harvester_attack();
bool ants_win();
bool bees_win();
void bee_attack();
void remove_dead_ants();\
void run_game(Bee);
void run_attack();
};
#endif