X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=action.cpp;h=626eb37475bb5487756381dafcd823fd2188380f;hp=427440b268c182270bd358d248870de02c78a8be;hb=e26fd7b3195576b25ffe51253a391b53f412a650;hpb=3a5c7967d474fe42d471f417fa1f4bb1aec8e4fa diff --git a/action.cpp b/action.cpp index 427440b..626eb37 100644 --- a/action.cpp +++ b/action.cpp @@ -14,11 +14,11 @@ 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; } @@ -26,3 +26,7 @@ int Action::execute() const{ cout << "Executing: " << _executable << endl; return 0; } + +const string& Action::executable() const{ + return _executable; +}