]> ruin.nu Git - popboot.git/blob - action.cpp
3e9cddf692163b41a515655c33e37ef29bffd270
[popboot.git] / action.cpp
1 #include "action.h"
2
3 Action::Action(std::string executable, literals preconditions, literals effects){
4         _executable = executable;
5         _preconditions = preconditions;
6         _effects = effects;
7 }
8
9 Action::Action(const Action& action){
10         _executable = action._executable;
11         _preconditions = action._preconditions;
12         _effects = action._effects;
13 }
14
15 literals Action::effects() const{
16         return _effects;
17 }
18
19 literals Action::preconditions() const{
20         return _preconditions;
21 }
22
23 int Action::execute() const{
24
25         return 0;
26 }