X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=node.h;h=7bcf3a8c371338375df7d42604ce5d0ddf98ce74;hp=0d9cae6fa0229ce432dfb21497452adfa2075e16;hb=e26fd7b3195576b25ffe51253a391b53f412a650;hpb=3a5c7967d474fe42d471f417fa1f4bb1aec8e4fa 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;