From 71eb27bbe901e829a94a7ad76bf647a683f7c042 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 3 Jul 2015 13:52:06 -0300 Subject: [PATCH] Adds a new constructor to Action it now receives kind as parameter The property kind is mandatory to be specified by actions who extends the class Action. The new constructor make simpler the implementation of new actions. --- src/actions/action.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/actions/action.h b/src/actions/action.h index 0f7edc58..5b9caf61 100644 --- a/src/actions/action.h +++ b/src/actions/action.h @@ -34,6 +34,9 @@ class Action { explicit Action(std::string _action) : action_kind(2), action(_action) { } + explicit Action(std::string _action, int kind) + : action_kind(kind), + action(_action) { } /** *