forked from SharifAIChallenge/AIC17-Client-Cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBeetle.h
38 lines (30 loc) · 776 Bytes
/
Beetle.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
#ifndef BEETLE_H
#define BEETLE_H
#include "Types.h"
#include "Entity.h"
#include <utility>
class Beetle : public Entity
{
public:
Beetle(int id, Cell* pos, Direction dir, bool wing, BeetleType beetle_type, bool sick, int team_id);
virtual ~Beetle() {};
/* Use these to get information about your fellow cockroaches! */
int getRow();
int getColumn();
Direction getDirection();
BeetleType getBeetleType();
bool has_wing();
bool is_sick();
int getTeamId();
void setSick(bool sick);
void setWing(bool wing);
void doMove(Move move, Size size);
void alter(bool sick, bool wing);
protected:
Direction dir;
bool wing;
bool sick;
BeetleType beetle_type;
int team_id;
};
#endif /* BEETLE_H */