-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnemy.h
More file actions
42 lines (33 loc) · 932 Bytes
/
Enemy.h
File metadata and controls
42 lines (33 loc) · 932 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
#pragma once
#include "Raptor.h"
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class Enemy{
private:
// enemy name, health, currenthealth, maxhealth, damage, luck, and an array of their loot
string ename;
int espeed;
int ecurrhealth;
int emaxhealth;
int edamage;
int eluck;
string eloot[10];
public:
Enemy();
void setStats(string, int, int, int, int);
bool knownItems(string, string);
// Starts a fight with the Raptor using a turn based fight.
void fightSequence(Raptor &raptor);
//Checks if current health is zero, and ends the fight if either are.
bool EnemyisDead();
void dealDamage(int);
bool RaptorisDead(Raptor &raptor);
//A method that adds items to the Raptors inventory, or gives a choice to switch if the inventory is already full.
void addloot(string);
int getluck();
void loadLoot(string);
void giveloot(Raptor &raptor);
void looteffect(Raptor &raptor);
};