-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAction.cpp
More file actions
40 lines (34 loc) · 1.2 KB
/
Copy pathAction.cpp
File metadata and controls
40 lines (34 loc) · 1.2 KB
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
#include "Action.h"
Action::Action(int v, int c) : v(v), c(c) {
//std::cout << "Action Constructor" << std::endl;
}
Action::Action() : v(0), c(0) {
//std::cout << "Action Constructor" << std::endl;
}
void Action::setMessage(std::string msg) {
msg = msg;
//std::cout << "Action::setMessage" << std::endl;
//std::cout << msg << std::endl;
}
void Action::setIntValue(int v) {
v = v;
//std::cout << "Action::setIntValue" << std::endl;
//std::cout << "Int Value: "<< std::to_string(v) << std::endl;
}
void Action::setCharValue(char c) {
c = c;
//std::cout << "Action::setCharValue" << std::endl;
//std::cout << "Char Value: " << c << std::endl;
}
CreatureAction::CreatureAction(std::shared_ptr<Creature> owner) {
//std::cout << "CreatureAction Constructor" << std::endl;
}
ItemAction::ItemAction(std::shared_ptr<Creature> owner) {
//std::cout << "ItemAction Constructor" << std::endl;
}
BlessCurseOwner::BlessCurseOwner(std::shared_ptr<Creature> Owner) : ItemAction(Owner) {
//std::cout << "BlessCurseOwner Constructor" << std::endl;
}
Hallucinate::Hallucinate(std::shared_ptr<Creature> Owner) :ItemAction(Owner) {
//std::cout << "Hallucinate Constructor" << std::endl;
}