-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMob.cpp
More file actions
47 lines (40 loc) · 866 Bytes
/
Copy pathMob.cpp
File metadata and controls
47 lines (40 loc) · 866 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
43
44
45
46
47
// CSCI1300 Fall 2022 Project 3
// Author: Trish Le and Benson Zou
// Recitation: 303 – Xuefei Sun
// Project 3 - Mob.cpp
#include <iostream>
#include "Mob.h"
using namespace std;
Mob::Mob() {
mob_name_ = "";
}
Mob::Mob(string mob_name, int hp, int damage, Resources mob_drop) {
mob_name_ = mob_name;
hp_ = hp;
damage_ = damage;
mob_drop_ = mob_drop;
}
//NAME
void Mob::setMobName(string mob_name){
mob_name_ = mob_name;
}
string Mob::getMobName() const{
return mob_name_;
}
//HEALTH
void Mob::setMobHealth(int hp){
hp_ = hp;
}
int Mob::getMobHealth() const{
return hp_;
}
//STUFF WE DONT NEED SET FUNCTIONS FOR
int Mob::getMobDamage() const{
return damage_;
}
int Mob::getMobXp() const{
return xp_drop_;
}
Resources Mob::getMobDrop() const{
return mob_drop_;
}