]> ruin.nu Git - popboot.git/blobdiff - action.cpp
references instead of copies
[popboot.git] / action.cpp
index 427440b268c182270bd358d248870de02c78a8be..626eb37475bb5487756381dafcd823fd2188380f 100644 (file)
@@ -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;
+}