1 #ifndef TOGGLE_LIGHTS_EVENT_H
2 #define TOGGLE_LIGHTS_EVENT_H
30 static std::shared_ptr<ToggleLightsEvent>
create(
const bool on) {
return std::make_shared<ToggleLightsEvent>(on); }
36 bool turnOn() const noexcept {
return on; }
Class for event.
Definition: event.h:10
bool turnOn() const noexcept
Turn the lights on?
Definition: toggle_lights_event.h:36
ToggleLightsEvent(const bool on)
ToggleLightsEvent constructor.
Definition: toggle_lights_event.h:22
static std::shared_ptr< ToggleLightsEvent > create(const bool on)
Factory function.
Definition: toggle_lights_event.h:30
EventType
Event type enum that is used when passing events.
Definition: event_type.h:12
Definition: event_type.h:41
Definition: toggle_lights_event.h:11
Event(const EventType &type)
Event constructor.
Definition: event.h:21