-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStats.h
More file actions
34 lines (27 loc) · 673 Bytes
/
Stats.h
File metadata and controls
34 lines (27 loc) · 673 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
#ifndef STATS_H
#define STATS_H
class Stats {
public:
Stats(int health, int damage, int defense, int speed);
// Getter functions
int getHealth() const;
int getDamage() const;
int getDefense() const;
int getSpeed() const;
// Setter functions
void setHealth(int health);
void setDamage(int damage);
void setDefense(int defense);
void setSpeed(int speed);
// Utility functions for adjustments
void increaseHealth(int amount);
void increaseDamage(int amount);
void increaseDefense(int amount);
void takeDamage(int damage);
private:
int health;
int damage;
int defense;
int speed;
};
#endif