]> ruin.nu Git - popboot.git/blobdiff - action.cpp
it compiles
[popboot.git] / action.cpp
index 695c74fb71d4b7b6d8e764e186a730ad4354317f..3e9cddf692163b41a515655c33e37ef29bffd270 100644 (file)
@@ -1,21 +1,26 @@
 #include "action.h"
 
 Action::Action(std::string executable, literals preconditions, literals effects){
-       _execututable = executable;
+       _executable = executable;
        _preconditions = preconditions;
        _effects = effects;
 }
 
+Action::Action(const Action& action){
+       _executable = action._executable;
+       _preconditions = action._preconditions;
+       _effects = action._effects;
+}
 
-const literals Action::effects(){
+literals Action::effects() const{
        return _effects;
 }
 
-const literals Action::preconditions(){
+literals Action::preconditions() const{
        return _preconditions;
 }
 
-int Action::execute(){
+int Action::execute() const{
 
        return 0;
 }