-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhero.h
86 lines (61 loc) · 1.86 KB
/
hero.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
78
79
80
81
82
83
84
85
86
// Class automatically generated by Dev-C++ New Class wizard
#ifndef HERO_H
#define HERO_H
#include "character.h" // inheriting class's header file
#include "maze.h"
#include "monster.h"
// Child class of type Character
class Hero : public Character
{ private:
int hero_row;
int hero_column;
int item_count;
public:
Maze* themaze;
Monster* themonster1;
Monster* themonster2;
Monster* themonster3;
Monster* themonster4;
Monster* themonster5;
Monster* themonster6;
Monster* theboss;
//VALUES FROM OTHER CLASSES
int get_hero_row();
int get_hero_column();
void set_hero_row(int);
void set_hero_column(int);
int get_item_count();
void set_item_count(int);
void move();
void char_position_w();
void char_position_a();
void char_position_s();
void char_position_d();
void check_wall_w();
void check_wall_a();
void check_wall_s();
void check_wall_d();
void check_door_a();
void check_door_s();
void check_key_s();
void check_finish_s();
void check_monsters_w();
void check_monsters_a();
void check_monsters_s();
void check_monsters_d();
void fight();
void exchange_health(Monster*);
void check_health_a();
void check_health_d();
void check_weapon_s();
//AUTO SOLVER FUNCTIONS
void char_position2_w();
void char_position2_a();
void char_position2_s();
void char_position2_d();
// class constructor
Hero();
// class destructor
~Hero();
};
#endif // HERO_H