diff options
Diffstat (limited to 'src/engine/Action.hpp')
-rw-r--r-- | src/engine/Action.hpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/engine/Action.hpp b/src/engine/Action.hpp index 76834d9..f954a39 100644 --- a/src/engine/Action.hpp +++ b/src/engine/Action.hpp @@ -34,15 +34,20 @@ namespace Machina { /** An Action, executed on entering or exiting of a state. */ -struct Action : public Raul::Manageable, public Stateful { +struct Action + : public Raul::Manageable + , public Stateful { virtual void execute(MIDISink* sink, Raul::TimeStamp time) = 0; virtual void write_state(Sord::Model& model); }; -class PrintAction : public Action { +class PrintAction + : public Action +{ public: - PrintAction(const std::string& msg) : _msg(msg) {} + PrintAction(const std::string& msg) + : _msg(msg) {} void execute(MIDISink* sink, Raul::TimeStamp time) { std::cout << "t=" << time << ": " << _msg << std::endl; } |