X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=action.cpp;h=626eb37475bb5487756381dafcd823fd2188380f;hb=7b9821d42d980e5788bbc65563973eddd6e4c40d;hp=3e9cddf692163b41a515655c33e37ef29bffd270;hpb=dc49c0c521090f0eb4b9692b25a129537c07e19e;p=popboot.git diff --git a/action.cpp b/action.cpp index 3e9cddf..626eb37 100644 --- a/action.cpp +++ b/action.cpp @@ -1,4 +1,6 @@ #include "action.h" +#include +using namespace std; Action::Action(std::string executable, literals preconditions, literals effects){ _executable = executable; @@ -12,15 +14,19 @@ Action::Action(const Action& action){ _effects = action._effects; } -literals Action::effects() const{ +const literals& Action::effects() const{ return _effects; } -literals Action::preconditions() const{ +const literals& Action::preconditions() const{ return _preconditions; } int Action::execute() const{ - + cout << "Executing: " << _executable << endl; return 0; } + +const string& Action::executable() const{ + return _executable; +}