![]() |
TrinityCore
|
#include <PointMovementGenerator.h>
Inheritance diagram for AssistanceMovementGenerator:Public Member Functions | |
| AssistanceMovementGenerator (uint32 id, float x, float y, float z) | |
| void | Finalize (Unit *, bool, bool) override |
| MovementGeneratorType | GetMovementGeneratorType () const override |
Public Member Functions inherited from PointMovementGenerator< Creature > | |
| PointMovementGenerator (uint32 id, float x, float y, float z, bool generatePath, float speed=0.0f, Optional< float > finalOrient={}) | |
| MovementGeneratorType | GetMovementGeneratorType () const override |
| bool | DoInitialize (Creature *) |
| bool | DoReset (Creature *) |
| bool | DoUpdate (Creature *, uint32) |
| void | DoDeactivate (Creature *) |
| void | DoFinalize (Creature *, bool, bool) |
| void | UnitSpeedChanged () override |
| uint32 | GetId () const |
Public Member Functions inherited from MovementGeneratorMedium< T, D > | |
| bool | Initialize (Unit *owner) override |
| bool | Reset (Unit *owner) override |
| bool | Update (Unit *owner, uint32 diff) override |
| void | Deactivate (Unit *owner) override |
| void | Finalize (Unit *owner, bool active, bool movementInform) override |
Public Member Functions inherited from MovementGenerator | |
| MovementGenerator () | |
| virtual | ~MovementGenerator () |
| virtual void | Pause (uint32) |
| virtual void | Resume (uint32) |
| virtual bool | GetResetPosition (Unit *, float &, float &, float &) |
| void | AddFlag (uint16 const flag) |
| bool | HasFlag (uint16 const flag) const |
| void | RemoveFlag (uint16 const flag) |
| virtual std::string | GetDebugInfo () const |
Additional Inherited Members | |
Public Attributes inherited from MovementGenerator | |
| uint8 | Priority |
| uint16 | Flags |
| uint32 | BaseUnitState |
Definition at line 55 of file PointMovementGenerator.h.
|
inlineexplicit |
Definition at line 58 of file PointMovementGenerator.h.
|
overridevirtual |
Implements MovementGenerator.
Definition at line 183 of file PointMovementGenerator.cpp.
References MovementGenerator::AddFlag(), Creature::CallAssistance(), Unit::ClearUnitState(), CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY, Unit::GetMotionMaster(), MovementGenerator::HasFlag(), Unit::IsAlive(), MOVEMENTGENERATOR_FLAG_FINALIZED, MOVEMENTGENERATOR_FLAG_INFORM_ENABLED, MotionMaster::MoveSeekAssistanceDistract(), Creature::SetNoCallAssistance(), sWorld, Object::ToCreature(), and UNIT_STATE_ROAMING_MOVE.
|
overridevirtual |
Implements MovementGenerator.
Definition at line 199 of file PointMovementGenerator.cpp.
References ASSISTANCE_MOTION_TYPE.