Dragonfly 4.19
A text-based game engine
SplashDragonfly.h
1///
2/// Dragonfly for splash screen
3///
4
5#ifndef __SPLASH_DRAGONFLY_H__
6#define __SPLASH_DRAGONFLY_H__
7
8#include "EventStep.h"
9#include "Object.h"
10
11namespace df {
12
13class SplashDragonfly : public Object {
14
15 private:
16 Vector m_end_position; /// Ending position of Object.
17 int m_countdown; /// Countdown to event actions.
18 Sprite *m_p_local_sprite; /// Temporary Sprite for Object.
19
20 public:
23 int eventHandler(const Event *p_e) override;
24};
25
26} // end of namespace df
27#endif // __SPLASH_DRAGONFLY_H__
Definition: Event.h:15
Definition: Object.h:59
Definition: SplashDragonfly.h:13
int eventHandler(const Event *p_e) override
Handle event (default only handles pathfinding).
Sprite * m_p_local_sprite
Countdown to event actions.
Definition: SplashDragonfly.h:18
SplashDragonfly(Vector p)
Temporary Sprite for Object.
int m_countdown
Ending position of Object.
Definition: SplashDragonfly.h:17
Definition: Sprite.h:17
Definition: Vector.h:12
An animation for a sprite.
Definition: Animation.h:15