-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFireball.cpp
More file actions
48 lines (37 loc) · 800 Bytes
/
Copy pathFireball.cpp
File metadata and controls
48 lines (37 loc) · 800 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
48
/*
* File: Fireball.cpp
* Author: Niclas
*
* Created on den 16 December 2013, 16:42
*/
#include "Fireball.h"
#include <iostream>
using namespace std;
namespace AdventureWorld {
Fireball::Fireball() : Spell(50, 20, "Fireball"), cooldown(20) {
this->name = "Fireball";
this->dmg_type = "magical";
}
/*Fireball::Fireball(const Fireball& orig) {
}*/
Fireball::~Fireball() {
}
int Fireball::get_dmg() const {
return this->damage;
}
string Fireball::get_type() const {
return this->type;
}
string Fireball::get_name() const {
return this->name;
}
string Fireball::damage_type() const {
return this->dmg_type;
}
void Fireball::set_cooldown(int new_cooldown) {
this->cooldown = new_cooldown;
}
int Fireball::get_cooldown() {
return cooldown;
}
}