-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbandit.h
More file actions
44 lines (32 loc) · 749 Bytes
/
bandit.h
File metadata and controls
44 lines (32 loc) · 749 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
#ifndef BANDIT_H
#define BANDIT_H
#include "living_things.h"
#include <string>
#include "time.h"
#include "test.h"
#include "global.h"
#include "targetable.h"
class Bandit: public Living_things
{
private:
// The target of the bandit
Targetable* m_target;
public:
Bandit(std::string filename, Targetable *target);
enum Direction {
UP,
DOWN,
LEFT,
RIGHT
};
//Changing the sides he looks at
void change_image(Bandit::Direction direction);
// The move function
void move();
// Check if its target was caught
bool check_if_caught();
// Returns vulnerability status of target
bool return_target_invul();
Targetable* return_target();
};
#endif // BANDIT_H