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.
This commit is contained in:
Felipe Zimmerle 2015-07-03 13:52:06 -03:00
parent 616a2ae6de
commit 71eb27bbe9

View File

@ -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) { }
/**
*