diff options
Diffstat (limited to 'engines/zvision/control.h')
-rw-r--r-- | engines/zvision/control.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/engines/zvision/control.h b/engines/zvision/control.h index 770c540a12..ab55763a20 100644 --- a/engines/zvision/control.h +++ b/engines/zvision/control.h @@ -42,7 +42,9 @@ public: Control(ZVision *engine, uint32 key) : _engine(engine), _key(key), _enabled(false) {} virtual ~Control() {} - uint32 getKey() { return _key; } + uint32 getKey() { + return _key; + } virtual void enable(); virtual void disable(); @@ -69,7 +71,9 @@ public: * @param backgroundImageSpacePos The position of the mouse in background image space * @return Was the cursor changed? */ - virtual bool onMouseMove(const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos) { return false; } + virtual bool onMouseMove(const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos) { + return false; + } /** * Called when a key is pressed. Default is NOP. * @@ -88,14 +92,16 @@ public: * @param deltaTimeInMillis The number of milliseconds that have passed since last frame * @return If true, the node can be deleted after process() finishes */ - virtual bool process(uint32 deltaTimeInMillis) { return false; } + virtual bool process(uint32 deltaTimeInMillis) { + return false; + } /** * Serialize a Control for save game use. This should only be used if a Control needs * to save values that would be different from initialization. AKA a TimerNode needs to * store the amount of time left on the timer. Any Controls overriding this *MUST* write * their key as the first data outputted. The default implementation is NOP. * - * NOTE: If this method is overridden, you MUST also override deserialize() + * NOTE: If this method is overridden, you MUST also override deserialize() * and needsSerialization() * * @param stream Stream to write any needed data to @@ -118,10 +124,12 @@ public: * * @return Does the Control need save game serialization? */ - virtual inline bool needsSerialization() { return false; } + virtual inline bool needsSerialization() { + return false; + } protected: - ZVision * _engine; + ZVision *_engine; uint32 _key; bool _enabled; |