FollowPathEvent.h 615 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef ANKI_EVENT_FOLLOW_PATH_EVENT_H
  2. #define ANKI_EVENT_FOLLOW_PATH_EVENT_H
  3. #include "anki/event/Event.h"
  4. #include "anki/scene/SceneNode.h"
  5. namespace anki {
  6. class FollowPathEvent: public Event
  7. {
  8. public:
  9. /// @name Constructors/Destructor
  10. /// @{
  11. /// Constructor
  12. FollowPathEvent(
  13. EventManager* manager, F32 startTime, F32 duration, U8 flags, // Event
  14. SceneNode* movableSceneNode, Path* path, F32 distPerTime);
  15. /// @}
  16. /// Implements Event::update
  17. void update(F32 prevUpdateTime, F32 crntTime);
  18. private:
  19. F32 distPerTime;
  20. SceneNode* movableSceneNode;
  21. Path* path;
  22. };
  23. } // end namespace anki
  24. #endif