forked from JohnAnthony/TROG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enemy.hpp
51 lines (42 loc) · 1.54 KB
/
enemy.hpp
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
#ifndef ENEMY_H
#define ENEMY_H
#include "entity.hpp"
#include "character.hpp"
#include <string>
class Character;
class Enemy : public Entity {
public:
Enemy(void);
Enemy(unsigned int inLVL, char inSymbol, Color inCol, int inSight, int hp,
int mp, int str, int tou, int att, int def, int mag, int wil, int inMV,
unsigned int inXP, const char *inName, const char *inDescript);
std::string Description(void);
void Attack(Character *c);
void TakeDamage(int amt);
bool isAlive(void);
unsigned int Level;
unsigned int XP_value;
int mv_energy;
const char *name;
const char *descriptor;
bool isActive;
int maxHP;
int curHP;
int MP;
int STR;
int TOU;
int ATT;
int DEF;
int MAG;
int WIL;
};
static Enemy EnemyList[] = {
//lvl sym col sight hp mp str tou att def mag wil mv xp name
Enemy(1, 'o', COL_BLUE, 6, 60, 0, 20, 20, 30, 30, 0, 30, 1000, 55, "Binary Blob", "petty"),
Enemy(1, 'b', COL_GREEN, 6, 8, 0, 20, 20, 30, 30, 0, 30, 800, 65, "Bug", "Shallow"),
Enemy(2, 'd', COL_RED, 6, 30, 0, 40, 40, 40, 40, 0, 40, 900, 185, "Pigdog", "North American"),
Enemy(3, 'b', COL_YELLOW, 6, 60, 0, 50, 50, 50, 50, 0, 50, 1200, 350, "Neckbear", "juvenile"),
Enemy(4, 'G', COL_YELLOW, 6, 80, 0, 60, 60, 60, 60, 0, 60, 1100, 550, "Gnu", "wild"),
Enemy(10, 'T', COL_GREEN, 6, 200,0, 120,120,120,120,0, 120,1000, 1000, "Troll", "eax"),
};
#endif