X-Git-Url: https://ruin.nu/git/index.pl?a=blobdiff_plain;f=node.h;h=7bcf3a8c371338375df7d42604ce5d0ddf98ce74;hb=13441470b3b895e08b4165e2154665863f1c3b33;hp=0d9cae6fa0229ce432dfb21497452adfa2075e16;hpb=09f6dfa65b66103c27dc831271d961de9ab0109e;p=popboot.git diff --git a/node.h b/node.h index 0d9cae6..7bcf3a8 100644 --- a/node.h +++ b/node.h @@ -9,8 +9,8 @@ class Node { public: Node(Action action); void addChild(Node* node); - Action action(); - void execute(literals effects); + const Action& action() const; + void execute(const literals& effects); protected: Action _action;