TrinityCore
Loading...
Searching...
No Matches
IdleMovementGenerator.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef TRINITY_IDLEMOVEMENTGENERATOR_H
19#define TRINITY_IDLEMOVEMENTGENERATOR_H
20
21#include "MovementGenerator.h"
22#include "Timer.h"
23
25
27{
28 public:
29 explicit IdleMovementGenerator();
30
31 bool Initialize(Unit*) override;
32 bool Reset(Unit*) override;
33 bool Update(Unit*, uint32) override { return true; }
34 void Deactivate(Unit*) override;
35 void Finalize(Unit*, bool, bool) override;
37};
38
40{
41 public:
42 explicit RotateMovementGenerator(uint32 id, uint32 time, RotateDirection direction);
43
44 bool Initialize(Unit*) override;
45 bool Reset(Unit*) override;
46 bool Update(Unit*, uint32) override;
47 void Deactivate(Unit*) override;
48 void Finalize(Unit*, bool, bool) override;
50
51 private:
54};
55
57{
58 public:
59 explicit DistractMovementGenerator(uint32 timer, float orientation);
60
61 bool Initialize(Unit*) override;
62 bool Reset(Unit*) override;
63 bool Update(Unit*, uint32) override;
64 void Deactivate(Unit*) override;
65 void Finalize(Unit*, bool, bool) override;
67
68 private:
72};
73
75{
76 public:
77 explicit AssistanceDistractMovementGenerator(uint32 timer, float orientation);
78
79 void Finalize(Unit*, bool, bool) override;
81};
82
83#endif
uint8_t uint8
Definition Define.h:135
uint32_t uint32
Definition Define.h:133
RotateDirection
MovementGeneratorType
MovementGeneratorType GetMovementGeneratorType() const override
void Finalize(Unit *, bool, bool) override
void Finalize(Unit *, bool, bool) override
MovementGeneratorType GetMovementGeneratorType() const override
bool Update(Unit *, uint32) override
bool Reset(Unit *) override
void Deactivate(Unit *) override
bool Update(Unit *, uint32) override
MovementGeneratorType GetMovementGeneratorType() const override
void Finalize(Unit *, bool, bool) override
bool Initialize(Unit *) override
bool Update(Unit *, uint32) override
MovementGeneratorType GetMovementGeneratorType() const override
void Finalize(Unit *, bool, bool) override
void Deactivate(Unit *) override
bool Initialize(Unit *) override
Definition Unit.h:769