-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameCharacter.h
46 lines (33 loc) · 1.04 KB
/
GameCharacter.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
//
// Created by Fernanda Girelli on 10/2/23.
//
#ifndef M2OEP_FDEOLIVE_GAMECHARACTER_H
#define M2OEP_FDEOLIVE_GAMECHARACTER_H
#include <string>
#include <memory>
#include <ostream>
using namespace std;
class GameCharacter
{
protected:
int numOfLives;
bool isDead;
public:
GameCharacter();
virtual ~GameCharacter()= default;
//getter for numOfLives variable
int getNumOfLive();
//setter for numofLives variable
void setNumOfLives(int num);
//Takes in num and adds it to the numOfLives
void addNumOfLives(int hearts);
//Getter for isDead Variable
bool getDead();
//Setter for isDead variable
void setDead();
//Functions to be overriden
virtual void getAttributes(ostream &outs) = 0;
virtual int purpose(int num,ostream &outs) = 0;
static const int MINLIVES = 0;
};
#endif //M2OEP_FDEOLIVE_GAMECHARACTER_H