X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=action.cpp;h=3e9cddf692163b41a515655c33e37ef29bffd270;hp=2508b5c9fcdbd7cd56a1f6c3414a41977eb59ed4;hb=dc49c0c521090f0eb4b9692b25a129537c07e19e;hpb=84d555cb9ab1ce1bce673393a83d67e99d555d33 diff --git a/action.cpp b/action.cpp index 2508b5c..3e9cddf 100644 --- a/action.cpp +++ b/action.cpp @@ -1,3 +1,26 @@ #include "action.h" +Action::Action(std::string executable, literals preconditions, literals effects){ + _executable = executable; + _preconditions = preconditions; + _effects = effects; +} +Action::Action(const Action& action){ + _executable = action._executable; + _preconditions = action._preconditions; + _effects = action._effects; +} + +literals Action::effects() const{ + return _effects; +} + +literals Action::preconditions() const{ + return _preconditions; +} + +int Action::execute() const{ + + return 0; +}