AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "MoveSplineInit.h"
Public Member Functions | |
MoveSplineInit (Unit *m) | |
int32 | Launch () |
void | Stop () |
void | SetParabolic (float amplitude, float start_time) |
void | SetAnimation (AnimType anim) |
void | SetFacing (float angle) |
void | SetFacing (Vector3 const &point) |
void | SetFacing (Unit const *target) |
void | MovebyPath (const PointsArray &path, int32 pointId=0) |
void | MoveTo (const Vector3 &destination, bool generatePath=false, bool forceDestination=false) |
void | MoveTo (float x, float y, float z, bool generatePath=false, bool forceDestination=false) |
void | SetFirstPointId (int32 pointId) |
void | SetSmooth () |
void | SetFly () |
void | SetWalk (bool enable) |
void | SetCyclic () |
void | SetFall () |
void | SetTransportEnter () |
void | SetTransportExit () |
void | SetOrientationInversed () |
void | SetOrientationFixed (bool enable) |
void | SetVelocity (float velocity) |
PointsArray & | Path () |
void | DisableTransportPathTransformations () |
Protected Attributes | |
MoveSplineInitArgs | args |
Unit * | unit |
|
explicit |
References args, Movement::MoveSplineInitArgs::flags, Movement::MoveSplineFlag::flying, Unit::GetTransGUID(), MovementInfo::HasMovementFlag(), Unit::HasUnitMovementFlag(), WorldObject::m_movementInfo, MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_DISABLE_GRAVITY, MOVEMENTFLAG_ONTRANSPORT, MOVEMENTFLAG_WALKING, Movement::counter< T, limit >::NewId(), Movement::MoveSplineInitArgs::splineId, Movement::splineIdGen, Movement::MoveSplineInitArgs::TransformForTransport, unit, and Movement::MoveSplineFlag::walkmode.
|
inline |
References args, and Movement::MoveSplineInitArgs::TransformForTransport.
Referenced by Vehicle::AddPassenger(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::DoAction(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::DoAction(), Unit::SetFacingTo(), and WaypointMovementGenerator< Creature >::StartMove().
int32 Movement::MoveSplineInit::Launch | ( | ) |
References args, Movement::MoveSplineFlag::catmullrom, Movement::MoveSpline::ComputePosition(), Movement::MoveSpline::Duration(), Movement::MoveSpline::Finalized(), Movement::MoveSplineInitArgs::flags, Movement::MoveSplineFlag::flying, MovementInfo::GetMovementFlags(), Position::GetOrientation(), Object::GetPackGUID(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetSpeed(), Unit::GetTransGUID(), WorldObject::GetTransSeat(), Unit::HasUnitMovementFlag(), Movement::MoveSplineInitArgs::HasVelocity, Movement::MoveSpline::Initialize(), Movement::MoveSplineInitArgs::initialOrientation, WorldObject::m_movementInfo, MOVE_RUN, MOVEMENTFLAG_BACKWARD, MOVEMENTFLAG_FORWARD, MOVEMENTFLAG_MASK_MOVING, MOVEMENTFLAG_ONTRANSPORT, MOVEMENTFLAG_ROOT, MOVEMENTFLAG_SPLINE_ENABLED, MOVEMENTFLAG_WALKING, Unit::movespline, Movement::MoveSpline::onTransport, Movement::Location::orientation, Movement::MoveSplineFlag::orientationInversed, Movement::MoveSplineInitArgs::path, MovementInfo::TransportInfo::pos, Movement::SelectSpeedType(), WorldObject::SendMessageToSet(), MovementInfo::SetMovementFlags(), WorldPacket::SetOpcode(), SMSG_MONSTER_MOVE, SMSG_MONSTER_MOVE_TRANSPORT, MovementInfo::transport, unit, Movement::MoveSplineInitArgs::Validate(), Movement::MoveSplineInitArgs::velocity, Movement::MoveSplineFlag::walkmode, ObjectGuid::WriteAsPacked(), and Movement::PacketBuilder::WriteMonsterMove().
Referenced by Unit::_ExitVehicle(), RandomMovementGenerator< T >::_setRandomLocation(), HomeMovementGenerator< Creature >::_setTargetLocation(), Vehicle::AddPassenger(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::DoAction(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::DoAction(), boss_algalon_the_observer::boss_algalon_the_observerAI::DoAction(), EscortMovementGenerator< T >::DoInitialize(), FlightPathMovementGenerator::DoReset(), ConfusedMovementGenerator< T >::DoUpdate(), EscortMovementGenerator< T >::DoUpdate(), PointMovementGenerator< T >::DoUpdate(), ChaseMovementGenerator< T >::DoUpdate(), FollowMovementGenerator< T >::DoUpdate(), MoveDelayed::Execute(), npc_kalecgos_kj::JustSummoned(), npc_medivh_bm::JustSummoned(), Unit::MonsterMoveWithSpeed(), MotionMaster::MoveBackwards(), MotionMaster::MoveCharge(), MotionMaster::MoveCircleTarget(), MotionMaster::MoveFall(), MotionMaster::MoveForwards(), MotionMaster::MoveJump(), MotionMaster::MoveKnockbackFrom(), MotionMaster::MoveLand(), MotionMaster::MoveTakeoff(), npc_cosmetic_toy_plane::Reset(), Unit::SetFacingTo(), Unit::SetFacingToObject(), FleeingMovementGenerator< T >::SetTargetLocation(), WaypointMovementGenerator< Creature >::StartMove(), Unit::StopMovingOnCurrentPos(), boss_malygos::boss_malygosAI::UpdateAI(), and npc_lord_arete::npc_lord_areteAI::UpdateAI().
|
inline |
References args, Movement::MoveSplineInitArgs::path, Movement::MoveSplineInitArgs::path_Idx_offset, Movement::MoveSplineInitArgs::TransformForTransport, and unit.
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::DoAction(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::DoAction(), EscortMovementGenerator< T >::DoInitialize(), EscortMovementGenerator< T >::DoUpdate(), PointMovementGenerator< T >::DoUpdate(), ChaseMovementGenerator< T >::DoUpdate(), FollowMovementGenerator< T >::DoUpdate(), npc_medivh_bm::JustSummoned(), MotionMaster::MoveCharge(), MoveTo(), npc_cosmetic_toy_plane::Reset(), boss_kiljaeden::ScheduleBasicAbilities(), and FleeingMovementGenerator< T >::SetTargetLocation().
void Movement::MoveSplineInit::MoveTo | ( | const Vector3 & | destination, |
bool | generatePath = false , |
||
bool | forceDestination = false |
||
) |
References args, PathGenerator::CalculatePath(), PathGenerator::GetPath(), PathGenerator::GetPathType(), MovebyPath(), Movement::MoveSplineInitArgs::path, Movement::MoveSplineInitArgs::path_Idx_offset, PATHFIND_NOPATH, Movement::MoveSplineInitArgs::TransformForTransport, and unit.
Referenced by Unit::_ExitVehicle(), RandomMovementGenerator< T >::_setRandomLocation(), HomeMovementGenerator< Creature >::_setTargetLocation(), Vehicle::AddPassenger(), boss_algalon_the_observer::boss_algalon_the_observerAI::DoAction(), EscortMovementGenerator< T >::DoInitialize(), ConfusedMovementGenerator< T >::DoUpdate(), EscortMovementGenerator< T >::DoUpdate(), PointMovementGenerator< T >::DoUpdate(), MoveDelayed::Execute(), npc_kalecgos_kj::JustSummoned(), Unit::MonsterMoveWithSpeed(), MotionMaster::MoveBackwards(), MotionMaster::MoveCircleTarget(), MotionMaster::MoveFall(), MotionMaster::MoveForwards(), MotionMaster::MoveJump(), MotionMaster::MoveKnockbackFrom(), MotionMaster::MoveLand(), MotionMaster::MoveTakeoff(), MoveTo(), Unit::SetFacingTo(), Unit::SetFacingToObject(), WaypointMovementGenerator< Creature >::StartMove(), Unit::StopMovingOnCurrentPos(), boss_malygos::boss_malygosAI::UpdateAI(), and npc_lord_arete::npc_lord_areteAI::UpdateAI().
|
inline |
|
inline |
References args, and Movement::MoveSplineInitArgs::path.
Referenced by FlightPathMovementGenerator::DoReset().
|
inline |
References args, Movement::MoveSplineFlag::EnableAnimation(), Movement::MoveSplineInitArgs::flags, and Movement::MoveSplineInitArgs::time_perc.
Referenced by MotionMaster::MoveLand(), MotionMaster::MoveTakeoff(), and WaypointMovementGenerator< Creature >::StartMove().
|
inline |
References args, Movement::MoveSplineFlag::cyclic, and Movement::MoveSplineInitArgs::flags.
Referenced by npc_medivh_bm::JustSummoned(), and npc_cosmetic_toy_plane::Reset().
void Movement::MoveSplineInit::SetFacing | ( | float | angle | ) |
References Movement::FacingInfo::angle, args, Movement::MoveSplineFlag::EnableFacingAngle(), Movement::MoveSplineInitArgs::facing, Movement::MoveSplineInitArgs::flags, WorldObject::GetTransport(), Unit::GetVehicleBase(), Movement::MoveSplineInitArgs::TransformForTransport, and unit.
Referenced by Unit::_ExitVehicle(), HomeMovementGenerator< Creature >::_setTargetLocation(), Vehicle::AddPassenger(), PointMovementGenerator< T >::DoUpdate(), ChaseMovementGenerator< T >::DoUpdate(), MoveDelayed::Execute(), npc_kalecgos_kj::JustSummoned(), MotionMaster::MoveBackwards(), MotionMaster::MoveCircleTarget(), MotionMaster::MoveForwards(), MotionMaster::MoveJump(), Unit::SetFacingTo(), Unit::SetFacingToObject(), WaypointMovementGenerator< Creature >::StartMove(), Unit::StopMovingOnCurrentPos(), and boss_malygos::boss_malygosAI::UpdateAI().
void Movement::MoveSplineInit::SetFacing | ( | Unit const * | target | ) |
References args, Movement::MoveSplineFlag::EnableFacingTarget(), Movement::MoveSplineInitArgs::facing, Movement::MoveSplineInitArgs::flags, Object::GetGUID(), ObjectGuid::GetRawValue(), and Movement::FacingInfo::target.
|
inline |
References args, Movement::MoveSplineFlag::EnableFacingPoint(), Movement::FacingInfo::f, Movement::MoveSplineInitArgs::facing, Movement::MoveSplineInitArgs::flags, Movement::MoveSplineInitArgs::TransformForTransport, unit, Movement::FacingInfo::x, Movement::FacingInfo::y, and Movement::FacingInfo::z.
|
inline |
References args, Movement::MoveSplineFlag::EnableFalling(), and Movement::MoveSplineInitArgs::flags.
Referenced by MotionMaster::MoveFall().
|
inline |
References args, and Movement::MoveSplineInitArgs::path_Idx_offset.
Referenced by FlightPathMovementGenerator::DoReset().
|
inline |
|
inline |
|
inline |
References args, Movement::MoveSplineInitArgs::flags, and Movement::MoveSplineFlag::orientationInversed.
Referenced by MotionMaster::MoveBackwards().
|
inline |
References args, Movement::MoveSplineFlag::EnableParabolic(), Movement::MoveSplineInitArgs::flags, Movement::MoveSplineInitArgs::parabolic_amplitude, and Movement::MoveSplineInitArgs::time_perc.
Referenced by MotionMaster::MoveJump(), and MotionMaster::MoveKnockbackFrom().
|
inline |
|
inline |
References args, Movement::MoveSplineFlag::EnableTransportEnter(), and Movement::MoveSplineInitArgs::flags.
Referenced by Vehicle::AddPassenger().
|
inline |
References args, Movement::MoveSplineFlag::EnableTransportExit(), and Movement::MoveSplineInitArgs::flags.
Referenced by Unit::_ExitVehicle(), and boss_malygos::boss_malygosAI::UpdateAI().
|
inline |
References args, Movement::MoveSplineInitArgs::HasVelocity, and Movement::MoveSplineInitArgs::velocity.
Referenced by FlightPathMovementGenerator::DoReset(), PointMovementGenerator< T >::DoUpdate(), FollowMovementGenerator< T >::DoUpdate(), Unit::MonsterMoveWithSpeed(), MotionMaster::MoveCharge(), MotionMaster::MoveJump(), MotionMaster::MoveKnockbackFrom(), MotionMaster::MoveLand(), MotionMaster::MoveTakeoff(), npc_cosmetic_toy_plane::Reset(), npc_eye_of_acherus::UpdateAI(), and npc_lord_arete::npc_lord_areteAI::UpdateAI().
|
inline |
References args, Movement::MoveSplineInitArgs::flags, and Movement::MoveSplineFlag::walkmode.
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), HomeMovementGenerator< Creature >::_setTargetLocation(), ChaseMovementGenerator< T >::DoUpdate(), FollowMovementGenerator< T >::DoUpdate(), MotionMaster::MoveCircleTarget(), FleeingMovementGenerator< T >::SetTargetLocation(), and WaypointMovementGenerator< Creature >::StartMove().
void Movement::MoveSplineInit::Stop | ( | ) |
References args, Movement::MoveSpline::ComputePosition(), Movement::MoveSplineFlag::Done, Movement::MoveSpline::Finalized(), Movement::MoveSplineInitArgs::flags, Position::GetOrientation(), Object::GetPackGUID(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetTransGUID(), WorldObject::GetTransSeat(), Unit::HasUnitMovementFlag(), Movement::MoveSpline::Initialize(), WorldObject::m_movementInfo, MOVEMENTFLAG_BACKWARD, MOVEMENTFLAG_FORWARD, MOVEMENTFLAG_ONTRANSPORT, MOVEMENTFLAG_SPLINE_ENABLED, Unit::movespline, Movement::MoveSpline::onTransport, Movement::Location::orientation, MovementInfo::TransportInfo::pos, MovementInfo::RemoveMovementFlag(), WorldObject::SendMessageToSet(), WorldPacket::SetOpcode(), SMSG_MONSTER_MOVE, SMSG_MONSTER_MOVE_TRANSPORT, Movement::MoveSplineInitArgs::splineId, MovementInfo::transport, unit, ObjectGuid::WriteAsPacked(), and Movement::PacketBuilder::WriteStopMovement().
Referenced by Unit::StopMoving().
|
protected |
Referenced by DisableTransportPathTransformations(), Launch(), MovebyPath(), MoveSplineInit(), MoveTo(), Path(), SetAnimation(), SetCyclic(), SetFacing(), SetFall(), SetFirstPointId(), SetFly(), SetOrientationFixed(), SetOrientationInversed(), SetParabolic(), SetSmooth(), SetTransportEnter(), SetTransportExit(), SetVelocity(), SetWalk(), and Stop().
|
protected |
Referenced by Launch(), MovebyPath(), MoveSplineInit(), MoveTo(), SetFacing(), and Stop().