X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=action.h;h=60206a391c76119853c3beaf9fbde219f2f284c8;hp=4550771568b6b7a73d7286db32751d147126042d;hb=eb5481635b31a8517a2f443ca7b414e4ff515028;hpb=84d555cb9ab1ce1bce673393a83d67e99d555d33 diff --git a/action.h b/action.h index 4550771..60206a3 100644 --- a/action.h +++ b/action.h @@ -1,13 +1,19 @@ #ifndef __ACTION_H__ #define __ACTION_H__ +typedef literals std::vector; + class Action { + public: + Action(std::string executable, literals preconditions, literals effects); + const literals effects() const; + const literals preconditions() const; + int execute() const; protected: - std::string executable; - std::vector preconditions; - std::vector effects; - + std::string _executable; + literals _preconditions; + literals _effects; }; #endif