![]() |
TrinityCore
|
#include <PointMovementGenerator.h>
Inheritance diagram for PointMovementGenerator:Private Member Functions | |
| void | MovementInform (Unit *) |
Private Attributes | |
| uint32 | _movementId |
| Position | _destination |
| Optional< float > | _speed |
| bool | _generatePath |
| Optional< float > | _finalOrient |
| if set then unit will turn to specified _orient in provided _pos | |
| Unit const * | i_faceTarget |
| std::unique_ptr< Movement::SpellEffectExtraData > | i_spellEffectExtra |
| MovementWalkRunSpeedSelectionMode | _speedSelectionMode |
| Optional< float > | _closeEnoughDistance |
| Optional< MovementFadeObject > | _fadeObject |
Additional Inherited Members | |
Public Attributes inherited from MovementGenerator | |
| uint8 | Priority |
| uint16 | Flags |
| uint32 | BaseUnitState |
| Scripting::v2::ActionResultSetter< MovementStopReason > | ScriptResult |
Protected Member Functions inherited from MovementGenerator | |
| void | SetScriptResult (MovementStopReason reason) |
Definition at line 30 of file PointMovementGenerator.h.
|
explicit |
Definition at line 31 of file PointMovementGenerator.cpp.
References MovementGenerator::BaseUnitState, MovementGenerator::Flags, i_spellEffectExtra, MOTION_PRIORITY_NORMAL, MOVEMENTGENERATOR_FLAG_INITIALIZATION_PENDING, MovementGenerator::Priority, MovementGenerator::ScriptResult, and UNIT_STATE_ROAMING.
|
delete |
|
delete |
|
default |
|
overridevirtual |
Implements MovementGenerator.
Definition at line 186 of file PointMovementGenerator.cpp.
References MovementGenerator::AddFlag(), Unit::ClearUnitState(), MOVEMENTGENERATOR_FLAG_DEACTIVATED, and UNIT_STATE_ROAMING_MOVE.
|
overridevirtual |
Implements MovementGenerator.
Definition at line 192 of file PointMovementGenerator.cpp.
References MovementGenerator::AddFlag(), Unit::ClearUnitState(), MovementGenerator::HasFlag(), MOVEMENTGENERATOR_FLAG_FINALIZED, MOVEMENTGENERATOR_FLAG_INFORM_ENABLED, MovementInform(), and UNIT_STATE_ROAMING_MOVE.
|
inline |
Definition at line 54 of file PointMovementGenerator.h.
References _movementId.
|
overridevirtual |
Implements MovementGenerator.
Definition at line 50 of file PointMovementGenerator.cpp.
References POINT_MOTION_TYPE.
|
overridevirtual |
Implements MovementGenerator.
Definition at line 55 of file PointMovementGenerator.cpp.
References _closeEnoughDistance, _destination, _fadeObject, _finalOrient, _generatePath, _movementId, _speed, _speedSelectionMode, MovementGenerator::AddFlag(), Unit::AddUnitState(), PathGenerator::CalculatePath(), Default, EVENT_CHARGE_PREPATH, ForceRun, ForceWalk, Position::GetExactDist(), PathGenerator::GetPath(), PathGenerator::GetPathType(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Position::GetRelativeAngle(), Unit::HasUnitState(), i_faceTarget, i_spellEffectExtra, Unit::IsMovementPreventedByCasting(), Movement::MoveSplineInit::Launch(), M_PI, Movement::MoveSplineInit::MovebyPath(), MOVEMENTGENERATOR_FLAG_DEACTIVATED, MOVEMENTGENERATOR_FLAG_INITIALIZATION_PENDING, MOVEMENTGENERATOR_FLAG_INITIALIZED, MOVEMENTGENERATOR_FLAG_INTERRUPTED, MOVEMENTGENERATOR_FLAG_TRANSITORY, WorldObject::MovePosition(), Movement::MoveSplineInit::MoveTo(), PATHFIND_NOPATH, MovementGenerator::RemoveFlag(), Movement::MoveSplineInit::SetFacing(), Movement::MoveSplineInit::SetFadeObject(), Movement::MoveSplineInit::SetSpellEffectExtraData(), Movement::MoveSplineInit::SetVelocity(), Movement::MoveSplineInit::SetWalk(), PathGenerator::ShortenPathUntilDist(), Unit::StopMoving(), Object::ToCreature(), UNIT_STATE_NOT_MOVE, and UNIT_STATE_ROAMING_MOVE.
Referenced by Reset().
|
private |
Definition at line 202 of file PointMovementGenerator.cpp.
References _movementId, EVENT_CHARGE, EVENT_CHARGE_PREPATH, Finished, POINT_MOTION_TYPE, MovementGenerator::SetScriptResult(), and Object::ToCreature().
Referenced by Finalize().
|
delete |
|
delete |
|
overridevirtual |
Implements MovementGenerator.
Definition at line 131 of file PointMovementGenerator.cpp.
References Initialize(), MOVEMENTGENERATOR_FLAG_DEACTIVATED, MOVEMENTGENERATOR_FLAG_TRANSITORY, and MovementGenerator::RemoveFlag().
|
inlineoverridevirtual |
Reimplemented from MovementGenerator.
Definition at line 52 of file PointMovementGenerator.h.
References MovementGenerator::AddFlag(), and MOVEMENTGENERATOR_FLAG_SPEED_UPDATE_PENDING.
Implements MovementGenerator.
Definition at line 138 of file PointMovementGenerator.cpp.
References _destination, _generatePath, _movementId, _speed, MovementGenerator::AddFlag(), Unit::AddUnitState(), EVENT_CHARGE_PREPATH, Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), MovementGenerator::HasFlag(), Unit::HasUnitState(), Unit::IsMovementPreventedByCasting(), Movement::MoveSplineInit::Launch(), MOVEMENTGENERATOR_FLAG_INFORM_ENABLED, MOVEMENTGENERATOR_FLAG_INTERRUPTED, MOVEMENTGENERATOR_FLAG_SPEED_UPDATE_PENDING, MOVEMENTGENERATOR_FLAG_TRANSITORY, Unit::movespline, Movement::MoveSplineInit::MoveTo(), MovementGenerator::RemoveFlag(), Movement::MoveSplineInit::SetVelocity(), Unit::StopMoving(), Object::ToCreature(), UNIT_STATE_NOT_MOVE, and UNIT_STATE_ROAMING_MOVE.
|
private |
Definition at line 68 of file PointMovementGenerator.h.
Referenced by Initialize().
|
private |
Definition at line 60 of file PointMovementGenerator.h.
Referenced by Initialize(), and Update().
|
private |
Definition at line 69 of file PointMovementGenerator.h.
Referenced by Initialize().
|
private |
if set then unit will turn to specified _orient in provided _pos
Definition at line 64 of file PointMovementGenerator.h.
Referenced by Initialize().
|
private |
Definition at line 62 of file PointMovementGenerator.h.
Referenced by Initialize(), and Update().
|
private |
Definition at line 59 of file PointMovementGenerator.h.
Referenced by GetId(), Initialize(), MovementInform(), and Update().
|
private |
Definition at line 61 of file PointMovementGenerator.h.
Referenced by Initialize(), and Update().
|
private |
Definition at line 67 of file PointMovementGenerator.h.
Referenced by Initialize().
|
private |
Definition at line 65 of file PointMovementGenerator.h.
Referenced by Initialize().
|
private |
Definition at line 66 of file PointMovementGenerator.h.
Referenced by Initialize(), and PointMovementGenerator().