AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "HomeMovementGenerator.h"
Public Member Functions | |
HomeMovementGenerator (bool walk) | |
~HomeMovementGenerator () | |
void | DoInitialize (Creature *) |
void | DoFinalize (Creature *) |
void | DoReset (Creature *) |
bool | DoUpdate (Creature *, const uint32) |
MovementGeneratorType | GetMovementGeneratorType () |
void | unitSpeedChanged () |
Public Member Functions inherited from MovementGeneratorMedium< Creature, HomeMovementGenerator< Creature > > | |
void | Initialize (Unit *u) override |
void | Finalize (Unit *u) override |
void | Reset (Unit *u) override |
bool | Update (Unit *u, uint32 time_diff) override |
Public Member Functions inherited from MovementGenerator | |
virtual | ~MovementGenerator () |
virtual void | Initialize (Unit *)=0 |
virtual void | Finalize (Unit *)=0 |
virtual void | Reset (Unit *)=0 |
virtual bool | Update (Unit *, uint32 time_diff)=0 |
virtual MovementGeneratorType | GetMovementGeneratorType ()=0 |
virtual uint32 | GetSplineId () const |
virtual void | unitSpeedChanged () |
virtual void | Pause (uint32) |
virtual void | Resume (uint32) |
virtual bool | GetResetPosition (float &, float &, float &) |
Private Member Functions | |
void | _setTargetLocation (Creature *) |
Private Attributes | |
bool | arrived: 1 |
bool | i_recalculateTravel: 1 |
bool | _walk |
|
inline |
|
inline |
|
private |
References Unit::ClearUnitState(), MotionMaster::empty(), WorldObject::FindMap(), Creature::GetHomePosition(), Unit::GetMotionMaster(), MotionMaster::GetMotionSlot(), MovementGenerator::GetResetPosition(), DisableMgr::IsPathfindingEnabled(), Movement::MoveSplineInit::Launch(), MOTION_SLOT_IDLE, Movement::MoveSplineInit::MoveTo(), Movement::MoveSplineInit::SetFacing(), Movement::MoveSplineInit::SetWalk(), UNIT_STATE_ALL_STATE, UNIT_STATE_EVADE, UNIT_STATE_IGNORE_PATHFINDING, UNIT_STATE_NO_ENVIRONMENT_UPD, UNIT_STATE_POSSESSED, and WorldObject::UpdateAllowedPositionZ().
void HomeMovementGenerator< Creature >::DoFinalize | ( | Creature * | owner | ) |
References Creature::AI(), Unit::ClearUnitState(), Creature::HasSwimmingFlagOutOfCombat(), CreatureAI::JustReachedHome(), Creature::LoadCreaturesAddon(), Unit::RemoveUnitFlag(), UNIT_FLAG_SWIMMING, and UNIT_STATE_EVADE.
void HomeMovementGenerator< Creature >::DoInitialize | ( | Creature * | owner | ) |
void HomeMovementGenerator< Creature >::DoReset | ( | Creature * | ) |
bool HomeMovementGenerator< Creature >::DoUpdate | ( | Creature * | owner, |
const | uint32 | ||
) |
References Movement::MoveSpline::Finalized(), and Unit::movespline.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from MovementGenerator.
|
private |
|
private |
|
private |