-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.cpp
More file actions
51 lines (39 loc) · 713 Bytes
/
Copy pathaction.cpp
File metadata and controls
51 lines (39 loc) · 713 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
49
50
51
#include "action.h"
Action::Action(ActionName _name, int _count){
name = _name;
count = _count;
finished = false;
lock = false;
priority = 0;
}
Action::~Action(){}
void Action::setName(ActionName _name){
name = _name;
}
ActionName Action::getName(){
return name;
}
void Action::setCount(int _count){
count = _count;
}
int Action::getCount(){
return count;
}
void Action::setFinished(bool _finished){
finished = _finished;
}
bool Action::isFinished(){
return finished;
}
void Action::setLock(bool _lock){
lock = _lock;
}
bool Action::isLocked(){
return lock;
}
void Action::setPriority(int _priority){
priority = _priority;
}
int Action::getPriority(){
return priority;
}