Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
FleeingMovementGenerator.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef SKYFIRE_FLEEINGMOVEMENTGENERATOR_H
7#define SKYFIRE_FLEEINGMOVEMENTGENERATOR_H
8
9#include "MovementGenerator.h"
10
11template<class T>
12class FleeingMovementGenerator : public MovementGeneratorMedium< T, FleeingMovementGenerator<T> >
13{
14public:
16
17 void DoInitialize(T*);
18 void DoFinalize(T*);
19 void DoReset(T*);
20 bool DoUpdate(T*, uint32);
21
23
24private:
25 void _setTargetLocation(T*);
26 void _getPoint(T*, float& x, float& y, float& z);
27
30};
31
46
47#endif
std::uint32_t uint32
Definition Define.h:77
std::uint64_t uint64
Definition Define.h:76
MovementGeneratorType
@ TIMED_FLEEING_MOTION_TYPE
@ FLEEING_MOTION_TYPE
void _getPoint(T *, float &x, float &y, float &z)
MovementGeneratorType GetMovementGeneratorType()
MovementGeneratorType GetMovementGeneratorType()
TimedFleeingMovementGenerator(uint64 fright, uint32 time)
Definition Unit.h:1367