Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
RandomMovementGenerator.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_RANDOMMOTIONGENERATOR_H
7#define SKYFIRE_RANDOMMOTIONGENERATOR_H
8
9#include "MovementGenerator.h"
10
11template<class T>
12class RandomMovementGenerator : public MovementGeneratorMedium< T, RandomMovementGenerator<T> >
13{
14public:
15 RandomMovementGenerator(float spawn_dist = 0.0f) : i_nextMoveTime(0), i_nextMove(0), wander_distance(spawn_dist) { }
16
18 void DoInitialize(T*);
19 void DoFinalize(T*);
20 void DoReset(T*);
21 bool DoUpdate(T*, const uint32);
22 bool GetResetPos(T*, float& x, float& y, float& z);
24private:
26
29};
30#endif
std::uint32_t uint32
Definition Define.h:77
MovementGeneratorType
@ RANDOM_MOTION_TYPE
MovementGeneratorType GetMovementGeneratorType()
RandomMovementGenerator(float spawn_dist=0.0f)
bool DoUpdate(T *, const uint32)
bool GetResetPos(T *, float &x, float &y, float &z)