TrinityCore
AreaTrigger Class Referencefinal

#include <AreaTrigger.h>

+ Inheritance diagram for AreaTrigger:

Classes

struct  ValuesUpdateForPlayerWithMaskSender
 

Public Member Functions

 AreaTrigger ()
 
 ~AreaTrigger ()
 
void BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::AreaTriggerData::Mask const &requestedAreaTriggerMask, Player const *target) const
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void AI_Initialize ()
 
void AI_Destroy ()
 
AreaTriggerAIAI ()
 
bool IsCustom () const
 
bool IsServerSide () const
 
bool IsStaticSpawn () const
 
bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects=false) const override
 
float GetStationaryX () const override
 
float GetStationaryY () const override
 
float GetStationaryZ () const override
 
float GetStationaryO () const override
 
void RelocateStationaryPosition (Position const &pos)
 
bool LoadFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap, bool allowDuplicate)
 
void Update (uint32 diff) override
 
void Remove ()
 
bool IsRemoved () const
 
uint32 GetSpellId () const
 
AuraEffect const * GetAuraEffect () const
 
uint32 GetTimeSinceCreated () const
 
void SetHeightIgnoresScale (bool heightIgnoresScale)
 
void SetOverrideScaleCurve (float overrideScale)
 
void SetOverrideScaleCurve (std::array< DBCPosition2D, 2 > const &points, Optional< uint32 > startTimeOffset={}, CurveInterpolationMode interpolation=CurveInterpolationMode::Linear)
 
void ClearOverrideScaleCurve ()
 
void SetExtraScaleCurve (float extraScale)
 
void SetExtraScaleCurve (std::array< DBCPosition2D, 2 > const &points, Optional< uint32 > startTimeOffset={}, CurveInterpolationMode interpolation=CurveInterpolationMode::Linear)
 
void ClearExtraScaleCurve ()
 
void SetOverrideMoveCurve (float x, float y, float z)
 
void SetOverrideMoveCurve (std::array< DBCPosition2D, 2 > const &xCurvePoints, std::array< DBCPosition2D, 2 > const &yCurvePoints, std::array< DBCPosition2D, 2 > const &zCurvePoints, Optional< uint32 > startTimeOffset={}, CurveInterpolationMode interpolation=CurveInterpolationMode::Linear)
 
void ClearOverrideMoveCurve ()
 
uint32 GetTimeToTarget () const
 
void SetTimeToTarget (uint32 timeToTarget)
 
uint32 GetTimeToTargetScale () const
 
void SetTimeToTargetScale (uint32 timeToTargetScale)
 
uint32 GetTimeToTargetExtraScale () const
 
void SetTimeToTargetExtraScale (uint32 timeToTargetExtraScale)
 
uint32 GetTimeToTargetPos () const
 
void SetTimeToTargetPos (uint32 timeToTargetPos)
 
int32 GetDuration () const
 
int32 GetTotalDuration () const
 
void SetDuration (int32 newDuration)
 
void Delay (int32 delaytime)
 
GuidUnorderedSet const & GetInsideUnits () const
 
AreaTriggerCreateProperties const * GetCreateProperties () const
 
AreaTriggerTemplate const * GetTemplate () const
 
uint32 GetScriptId () const
 
ObjectGuid GetCreatorGUID () const override
 
ObjectGuid GetOwnerGUID () const override
 
ObjectGuid const & GetCasterGuid () const
 
UnitGetCaster () const
 
UnitGetTarget () const
 
uint32 GetFaction () const override
 
AreaTriggerShapeInfo const & GetShape () const
 
float GetMaxSearchRadius () const
 
Position const & GetRollPitchYaw () const
 
Position const & GetTargetRollPitchYaw () const
 
void InitSplineOffsets (std::vector< Position > const &offsets, uint32 timeToTarget)
 
void InitSplines (std::vector< G3D::Vector3 > splinePoints, uint32 timeToTarget)
 
bool HasSplines () const
 
::Movement::Spline< int32 > const & GetSpline () const
 
uint32 GetElapsedTimeForMovement () const
 
void InitOrbit (AreaTriggerOrbitInfo const &orbit, uint32 timeToTarget)
 
bool HasOrbit () const
 
Optional< AreaTriggerOrbitInfo > const & GetOrbit () const
 
bool HasOverridePosition () const
 
void UpdateShape ()
 
- Public Member Functions inherited from WorldObject
virtual ~WorldObject ()
 
virtual void Update (uint32 diff)
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const
 
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const
 
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const
 
void MovePosition (Position &pos, float dist, float angle)
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle)
 
Position GetFirstCollisionPosition (float dist, float angle)
 
Position GetRandomNearPosition (float radius)
 
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
 
virtual float GetCombatReach () const
 
void UpdateGroundPositionZ (float x, float y, float &z) const
 
void UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const
 
void GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
 
Position GetRandomPoint (Position const &srcPos, float distance) const
 
uint32 GetInstanceId () const
 
PhaseShiftGetPhaseShift ()
 
PhaseShift const & GetPhaseShift () const
 
PhaseShiftGetSuppressedPhaseShift ()
 
PhaseShift const & GetSuppressedPhaseShift () const
 
bool InSamePhase (PhaseShift const &phaseShift) const
 
bool InSamePhase (WorldObject const *obj) const
 
int32 GetDBPhase () const
 
void SetDBPhase (int32 p)
 
uint32 GetZoneId () const
 
uint32 GetAreaId () const
 
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
 
bool IsInWorldPvpZone () const
 
bool IsOutdoors () const
 
ZLiquidStatus GetLiquidStatus () const
 
WmoLocation const * GetCurrentWmo () const
 
InstanceScriptGetInstanceScript () const
 
std::string const & GetName () const
 
void SetName (std::string newname)
 
std::string GetNameForLocaleIdx (LocaleConstant) const override
 
float GetDistance (WorldObject const *obj) const
 
float GetDistance (Position const &pos) const
 
float GetDistance (float x, float y, float z) const
 
float GetDistance2d (WorldObject const *obj) const
 
float GetDistance2d (float x, float y) const
 
float GetDistanceZ (WorldObject const *obj) const
 
bool IsSelfOrInSameMap (WorldObject const *obj) const
 
bool IsInMap (WorldObject const *obj) const
 
bool IsWithinDist3d (float x, float y, float z, float dist) const
 
bool IsWithinDist3d (Position const *pos, float dist) const
 
bool IsWithinDist2d (float x, float y, float dist) const
 
bool IsWithinDist2d (Position const *pos, float dist) const
 
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
bool IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
Position GetHitSpherePointFor (Position const &dest) const
 
void GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const
 
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
 
bool IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const
 
bool IsInRange2d (float x, float y, float minRange, float maxRange) const
 
bool IsInRange3d (float x, float y, float z, float minRange, float maxRange) const
 
bool isInFront (WorldObject const *target, float arc=float(M_PI)) const
 
bool isInBack (WorldObject const *target, float arc=float(M_PI)) const
 
bool IsInBetween (Position const &pos1, Position const &pos2, float size=0) const
 
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
 
virtual void CleanupsBeforeDelete (bool finalCleanup=true)
 
virtual void SendMessageToSet (WorldPacket const *data, bool self) const
 
virtual void SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const
 
virtual void SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const
 
void SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const
 
virtual uint8 GetLevelForTarget (WorldObject const *) const
 
void PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const
 
void StopDistanceSound (Player const *target=nullptr) const
 
void PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const
 
void PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const
 
void PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const
 
void AddObjectToRemoveList ()
 
float GetGridActivationRange () const
 
float GetVisibilityRange () const
 
float GetSightRange (WorldObject const *target=nullptr) const
 
bool CanSeeOrDetect (WorldObject const *obj, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) const
 
virtual void SetMap (Map *map)
 
virtual void ResetMap ()
 
MapGetMap () const
 
MapFindMap () const
 
void SetZoneScript ()
 
ZoneScriptFindZoneScript () const
 
ZoneScriptGetZoneScript () const
 
ScenarioGetScenario () const
 
TempSummonSummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummonSummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummonSummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr)
 
GameObjectSummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
GameObjectSummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
CreatureSummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr)
 
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr)
 
CreatureFindNearestCreature (uint32 entry, float range, bool alive=true) const
 
CreatureFindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const
 
GameObjectFindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const
 
GameObjectFindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const
 
GameObjectFindNearestUnspawnedGameObject (uint32 entry, float range) const
 
GameObjectFindNearestGameObjectOfType (GameobjectTypes type, float range) const
 
PlayerSelectNearestPlayer (float range) const
 
virtual ObjectGuid GetCreatorGUID () const =0
 
virtual ObjectGuid GetOwnerGUID () const =0
 
virtual ObjectGuid GetCharmerOrOwnerGUID () const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
UnitGetOwner () const
 
UnitGetCharmerOrOwner () const
 
UnitGetCharmerOrOwnerOrSelf () const
 
PlayerGetCharmerOrOwnerPlayerOrPlayerItself () const
 
PlayerGetAffectingPlayer () const
 
PlayerGetSpellModOwner () const
 
int32 CalculateSpellDamage (Unit const *target, SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr, float *variance=nullptr, uint32 castItemId=0, int32 itemLevel=-1) const
 
float GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
float GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
double ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, double value) const
 
int32 CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const
 
int32 ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const
 
void ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const
 
void ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const
 
virtual float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const
 
virtual SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) const
 
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
 
virtual uint32 GetFaction () const =0
 
virtual void SetFaction (uint32)
 
FactionTemplateEntry const * GetFactionTemplateEntry () const
 
ReputationRank GetReactionTo (WorldObject const *target) const
 
bool IsHostileTo (WorldObject const *target) const
 
bool IsHostileToPlayers () const
 
bool IsFriendlyTo (WorldObject const *target) const
 
bool IsNeutralToAll () const
 
SpellCastResult CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
 
void SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendCancelOrphanSpellVisual (uint32 id)
 
bool IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
bool IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
UnitGetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo)
 
virtual uint32 GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const
 
template<typename Container >
void GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const
 
template<typename Container >
void GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const
 
template<typename Container >
void GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const
 
void DestroyForNearbyPlayers ()
 
virtual void UpdateObjectVisibility (bool forced=true)
 
virtual void UpdateObjectVisibilityOnCreate ()
 
virtual void UpdateObjectVisibilityOnDestroy ()
 
void UpdatePositionData ()
 
void BuildUpdate (UpdateDataMapType &) override
 
bool AddToObjectUpdate () override
 
void RemoveFromObjectUpdate () override
 
void AddToNotify (uint16 f)
 
bool isNeedNotify (uint16 f) const
 
uint16 GetNotifyFlags () const
 
void ResetAllNotifies ()
 
bool isActiveObject () const
 
void setActive (bool isActiveObject)
 
bool IsFarVisible () const
 
void SetFarVisible (bool on)
 
bool IsVisibilityOverridden () const
 
void SetVisibilityDistanceOverride (VisibilityDistanceType type)
 
void SetIsStoredInWorldObjectGridContainer (bool apply)
 
bool IsAlwaysStoredInWorldObjectGridContainer () const
 
bool IsStoredInWorldObjectGridContainer () const
 
TransportBaseGetTransport () const
 
float GetTransOffsetX () const
 
float GetTransOffsetY () const
 
float GetTransOffsetZ () const
 
float GetTransOffsetO () const
 
Position const & GetTransOffset () const
 
uint32 GetTransTime () const
 
int8 GetTransSeat () const
 
virtual ObjectGuid GetTransGUID () const
 
void SetTransport (TransportBase *t)
 
virtual float GetStationaryX () const
 
virtual float GetStationaryY () const
 
virtual float GetStationaryZ () const
 
virtual float GetStationaryO () const
 
float GetFloorZ () const
 
virtual float GetCollisionHeight () const
 
float GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const
 
float GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const
 
std::string GetDebugInfo () const override
 
virtual uint16 GetAIAnimKitId () const
 
virtual uint16 GetMovementAnimKitId () const
 
virtual uint16 GetMeleeAnimKitId () const
 
bool IsPrivateObject () const
 
ObjectGuid GetPrivateObjectOwner () const
 
void SetPrivateObjectOwner (ObjectGuid const &owner)
 
bool CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const
 
SmoothPhasingGetOrCreateSmoothPhasing ()
 
SmoothPhasingGetSmoothPhasing ()
 
SmoothPhasing const * GetSmoothPhasing () const
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
bool IsInWorld () const
 
virtual void AddToWorld ()
 
virtual void RemoveFromWorld ()
 
ObjectGuid const & GetGUID () const
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
virtual void SetObjectScale (float scale)
 
uint32 GetDynamicFlags () const
 
bool HasDynamicFlag (uint32 flag) const
 
void SetDynamicFlag (uint32 flag)
 
void RemoveDynamicFlag (uint32 flag)
 
void ReplaceAllDynamicFlags (uint32 flag)
 
TypeID GetTypeId () const
 
bool isType (uint16 mask) const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player)
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBufferPrepareValuesUpdateBuffer (UpdateData *data) const
 
virtual void DestroyForPlayer (Player *target) const
 
void SendOutOfRangeForPlayer (Player *target) const
 
virtual void ClearUpdateMask (bool remove)
 
virtual std::string GetNameForLocaleIdx (LocaleConstant locale) const =0
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
virtual void BuildUpdate (UpdateDataMapType &)
 
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
 
bool IsWorldObject () const
 
WorldObjectToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
bool IsItem () const
 
ItemToItem ()
 
Item const * ToItem () const
 
bool IsPlayer () const
 
PlayerToPlayer ()
 
Player const * ToPlayer () const
 
bool IsCreature () const
 
CreatureToCreature ()
 
Creature const * ToCreature () const
 
bool IsUnit () const
 
UnitToUnit ()
 
Unit const * ToUnit () const
 
bool IsGameObject () const
 
GameObjectToGameObject ()
 
GameObject const * ToGameObject () const
 
bool IsCorpse () const
 
CorpseToCorpse ()
 
Corpse const * ToCorpse () const
 
bool IsDynObject () const
 
DynamicObjectToDynObject ()
 
DynamicObject const * ToDynObject () const
 
bool IsAreaTrigger () const
 
AreaTriggerToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
bool IsSceneObject () const
 
SceneObjectToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
bool IsConversation () const
 
ConversationToConversation ()
 
Conversation const * ToConversation () const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldSetter< T > const &)
 
virtual std::string GetDebugInfo () const
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () const
 
virtual LootGetLootForPlayer (Player const *player) const
 
virtual void BuildValuesUpdateWithFlag (ByteBuffer *data, UF::UpdateFieldFlag flags, Player const *target) const
 
- Public Member Functions inherited from WorldLocation
constexpr WorldLocation (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f)
 
constexpr WorldLocation (uint32 mapId, Position const &position)
 
constexpr void WorldRelocate (WorldLocation const &loc)
 
constexpr void WorldRelocate (WorldLocation const *loc)
 
constexpr void WorldRelocate (uint32 mapId, Position const &pos)
 
constexpr void WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f)
 
constexpr WorldLocation GetWorldLocation () const
 
constexpr uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
constexpr Position (float x=0, float y=0, float z=0, float o=0)
 
bool operator== (Position const &a) const
 
constexpr void Relocate (float x, float y)
 
constexpr void Relocate (float x, float y, float z)
 
constexpr void Relocate (float x, float y, float z, float o)
 
constexpr void Relocate (Position const &pos)
 
constexpr void Relocate (Position const *pos)
 
void RelocateOffset (Position const &offset)
 
constexpr void SetOrientation (float orientation)
 
constexpr float GetPositionX () const
 
constexpr float GetPositionY () const
 
constexpr float GetPositionZ () const
 
constexpr float GetOrientation () const
 
constexpr void GetPosition (float &x, float &y) const
 
constexpr void GetPosition (float &x, float &y, float &z) const
 
constexpr void GetPosition (float &x, float &y, float &z, float &o) const
 
constexpr Position GetPosition () const
 
Streamer< XY > PositionXYStream ()
 
ConstStreamer< XY > PositionXYStream () const
 
Streamer< XYZ > PositionXYZStream ()
 
ConstStreamer< XYZ > PositionXYZStream () const
 
Streamer< XYZO > PositionXYZOStream ()
 
ConstStreamer< XYZO > PositionXYZOStream () const
 
Streamer< PackedXYZ > PositionPackedXYZStream ()
 
ConstStreamer< PackedXYZ > PositionPackedXYZStream () const
 
bool IsPositionValid () const
 
constexpr float GetExactDist2dSq (const float x, const float y) const
 
constexpr float GetExactDist2dSq (Position const &pos) const
 
constexpr float GetExactDist2dSq (Position const *pos) const
 
float GetExactDist2d (const float x, const float y) const
 
float GetExactDist2d (Position const &pos) const
 
float GetExactDist2d (Position const *pos) const
 
constexpr float GetExactDistSq (float x, float y, float z) const
 
constexpr float GetExactDistSq (Position const &pos) const
 
constexpr float GetExactDistSq (Position const *pos) const
 
float GetExactDist (float x, float y, float z) const
 
float GetExactDist (Position const &pos) const
 
float GetExactDist (Position const *pos) const
 
void GetPositionOffsetTo (Position const &endPos, Position &retOffset) const
 
Position GetPositionWithOffset (Position const &offset) const
 
float GetAbsoluteAngle (float x, float y) const
 
float GetAbsoluteAngle (Position const &pos) const
 
float GetAbsoluteAngle (Position const *pos) const
 
float ToAbsoluteAngle (float relAngle) const
 
float ToRelativeAngle (float absAngle) const
 
float GetRelativeAngle (float x, float y) const
 
float GetRelativeAngle (Position const &pos) const
 
float GetRelativeAngle (Position const *pos) const
 
constexpr bool IsInDist2d (float x, float y, float dist) const
 
constexpr bool IsInDist2d (Position const *pos, float dist) const
 
constexpr bool IsInDist (float x, float y, float z, float dist) const
 
constexpr bool IsInDist (Position const &pos, float dist) const
 
constexpr bool IsInDist (Position const *pos, float dist) const
 
bool IsWithinBox (Position const &center, float xradius, float yradius, float zradius) const
 
bool IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) const
 
bool HasInArc (float arcangle, Position const *pos, float border=2.0f) const
 
bool HasInLine (Position const *pos, float objSize, float width) const
 
std::string ToString () const
 
- Public Member Functions inherited from GridObject< AreaTrigger >
virtual ~GridObject ()
 
bool IsInGrid () const
 
void AddToGrid (GridRefManager< AreaTrigger > &m)
 
void RemoveFromGrid ()
 

Static Public Member Functions

static AreaTriggerCreateAreaTrigger (AreaTriggerCreatePropertiesId areaTriggerCreatePropertiesId, Position const &pos, int32 duration, Unit *caster, Unit *target, SpellCastVisual spellVisual={ 0, 0 }, SpellInfo const *spellInfo=nullptr, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr)
 
static ObjectGuid CreateNewMovementForceId (Map *map, uint32 areaTriggerId)
 
- Static Public Member Functions inherited from WorldObject
static bool InSamePhase (WorldObject const *a, WorldObject const *b)
 
static ReputationRank GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target)
 
- Static Public Member Functions inherited from Object
static ObjectGuid GetGUID (Object const *o)
 
static WorldObjectToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static ItemToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static PlayerToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static CreatureToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static UnitToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static GameObjectToGameObject (Object *o)
 
static GameObject const * ToGameObject (Object const *o)
 
static CorpseToCorpse (Object *o)
 
static Corpse const * ToCorpse (Object const *o)
 
static DynamicObjectToDynObject (Object *o)
 
static DynamicObject const * ToDynObject (Object const *o)
 
static AreaTriggerToAreaTrigger (Object *o)
 
static AreaTrigger const * ToAreaTrigger (Object const *o)
 
static SceneObjectToSceneObject (Object *o)
 
static SceneObject const * ToSceneObject (Object const *o)
 
static ConversationToConversation (Object *o)
 
static Conversation const * ToConversation (Object const *o)
 
- Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)
 

Public Attributes

UF::UpdateField< UF::AreaTriggerData, 0, TYPEID_AREATRIGGERm_areaTriggerData
 
- Public Attributes inherited from WorldObject
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealth
 
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealthDetect
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibility
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibilityDetect
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibility
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibilityDetect
 
uint32 LastUsedScriptID
 
MovementInfo m_movementInfo
 
EventProcessor m_Events
 
- Public Attributes inherited from Object
UF::UpdateFieldHolder m_values
 
UF::UpdateField< UF::ObjectData, 0, TYPEID_OBJECTm_objectData
 
- Public Attributes inherited from WorldLocation
uint32 m_mapId
 
- Public Attributes inherited from Position
float m_positionX
 
float m_positionY
 
float m_positionZ
 

Protected Member Functions

void BuildValuesCreate (ByteBuffer *data, Player const *target) const override
 
void BuildValuesUpdate (ByteBuffer *data, Player const *target) const override
 
void ClearUpdateMask (bool remove) override
 
void _UpdateDuration (int32 newDuration)
 
float CalcCurrentScale () const
 
float GetProgress () const
 
float GetScaleCurveProgress (UF::ScaleCurve const &scaleCurve, uint32 timeTo) const
 
float GetScaleCurveValueAtProgress (UF::ScaleCurve const &scaleCurve, float x) const
 
float GetScaleCurveValue (UF::ScaleCurve const &scaleCurve, uint32 timeTo) const
 
void SetScaleCurve (UF::MutableFieldReference< UF::ScaleCurve, false > scaleCurveMutator, float constantValue)
 
void SetScaleCurve (UF::MutableFieldReference< UF::ScaleCurve, false > scaleCurveMutator, std::array< DBCPosition2D, 2 > const &points, Optional< uint32 > startTimeOffset, CurveInterpolationMode interpolation)
 
void ClearScaleCurve (UF::MutableFieldReference< UF::ScaleCurve, false > scaleCurveMutator)
 
void SetScaleCurve (UF::MutableFieldReference< UF::ScaleCurve, false > scaleCurveMutator, Optional< AreaTriggerScaleCurveTemplate > const &curve)
 
void UpdateTargetList ()
 
void SearchUnits (std::vector< Unit * > &targetList, float radius, bool check3D)
 
void SearchUnitInSphere (std::vector< Unit * > &targetList)
 
void SearchUnitInBox (std::vector< Unit * > &targetList)
 
void SearchUnitInPolygon (std::vector< Unit * > &targetList)
 
void SearchUnitInCylinder (std::vector< Unit * > &targetList)
 
void SearchUnitInDisk (std::vector< Unit * > &targetList)
 
void SearchUnitInBoundedPlane (std::vector< Unit * > &targetList)
 
bool CheckIsInPolygon2D (Position const *pos) const
 
void HandleUnitEnterExit (std::vector< Unit * > const &targetList)
 
void DoActions (Unit *unit)
 
void UndoActions (Unit *unit)
 
void UpdatePolygonVertices ()
 
void UpdateOrbitPosition (uint32 diff)
 
void UpdateSplinePosition (uint32 diff)
 
void UpdateOverridePosition ()
 
Position const * GetOrbitCenterPosition () const
 
Position CalculateOrbitPosition () const
 
void DebugVisualizePosition ()
 
- Protected Member Functions inherited from WorldObject
 WorldObject (bool isWorldObject)
 
virtual void ProcessPositionDataChanged (PositionFullTerrainStatus const &data)
 
void SetLocationMapId (uint32 _mapId)
 
void SetLocationInstanceId (uint32 _instanceId)
 
virtual bool CanNeverSee (WorldObject const *obj) const
 
virtual bool CanAlwaysSee (WorldObject const *) const
 
virtual bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects=false) const
 
virtual bool IsAlwaysVisibleFor (WorldObject const *seer) const
 
virtual bool IsInvisibleDueToDespawn (WorldObject const *seer) const
 
virtual bool IsAlwaysDetectableFor (WorldObject const *seer) const
 
- Protected Member Functions inherited from Object
 Object ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type flag)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer *data, CreateObjectBits flags, Player *target) const
 
virtual UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const
 
virtual void BuildValuesCreate (ByteBuffer *data, Player const *target) const =0
 
virtual void BuildValuesUpdate (ByteBuffer *data, Player const *target) const =0
 
virtual bool AddToObjectUpdate ()=0
 
virtual void RemoveFromObjectUpdate ()=0
 
void AddToObjectUpdateIfNeeded ()
 
- Protected Member Functions inherited from MapObject
 MapObject ()
 

Protected Attributes

ObjectGuid::LowType _spawnId
 
ObjectGuid _targetGuid
 
AuraEffect const * _aurEff
 
Position _stationaryPosition
 
AreaTriggerShapeInfo _shape
 
int32 _duration
 
int32 _totalDuration
 
uint32 _timeSinceCreated
 
float _verticesUpdatePreviousOrientation
 
bool _isRemoved
 
Position _rollPitchYaw
 
Position _targetRollPitchYaw
 
std::vector< Position_polygonVertices
 
std::unique_ptr<::Movement::Spline< int32 > > _spline
 
bool _reachedDestination
 
int32 _lastSplineIndex
 
uint32 _movementTime
 
Optional< AreaTriggerOrbitInfo_orbitInfo
 
AreaTriggerCreateProperties const * _areaTriggerCreateProperties
 
AreaTriggerTemplate const * _areaTriggerTemplate
 
GuidUnorderedSet _insideUnits
 
std::unique_ptr< AreaTriggerAI_ai
 
- Protected Attributes inherited from WorldObject
std::string m_name
 
bool m_isActive
 
bool m_isFarVisible
 
Optional< float > m_visibilityDistanceOverride
 
bool const m_isStoredInWorldObjectGridContainer
 
ZoneScriptm_zoneScript
 
TransportBasem_transport
 
uint32 m_zoneId
 
uint32 m_areaId
 
float m_staticFloorZ
 
bool m_outdoors
 
ZLiquidStatus m_liquidStatus
 
Optional< WmoLocationm_currentWmo
 
- Protected Attributes inherited from Object
uint16 m_objectType
 
TypeID m_objectTypeId
 
CreateObjectBits m_updateFlag
 
bool m_objectUpdated
 

Private Member Functions

bool Create (AreaTriggerCreatePropertiesId areaTriggerCreatePropertiesId, Map *map, Position const &pos, int32 duration, AreaTriggerSpawn const *spawnData=nullptr, Unit *caster=nullptr, Unit *target=nullptr, SpellCastVisual spellVisual={ 0, 0 }, SpellInfo const *spellInfo=nullptr, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr)
 

Detailed Description

Definition at line 42 of file AreaTrigger.h.

Constructor & Destructor Documentation

◆ AreaTrigger()

AreaTrigger::AreaTrigger ( )

Definition at line 46 of file AreaTrigger.cpp.

+ Here is the caller graph for this function:

◆ ~AreaTrigger()

AreaTrigger::~AreaTrigger ( )

Definition at line 58 of file AreaTrigger.cpp.

Member Function Documentation

◆ _UpdateDuration()

void AreaTrigger::_UpdateDuration ( int32  newDuration)
protected

Definition at line 436 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddToWorld()

void AreaTrigger::AddToWorld ( )
overridevirtual
  • Register the AreaTrigger for guid lookup and for caster

Reimplemented from Object.

Definition at line 62 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ AI()

AreaTriggerAI * AreaTrigger::AI ( )
inline

Definition at line 74 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ AI_Destroy()

void AreaTrigger::AI_Destroy ( )

Definition at line 1371 of file AreaTrigger.cpp.

+ Here is the caller graph for this function:

◆ AI_Initialize()

void AreaTrigger::AI_Initialize ( )

Definition at line 1364 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildValuesCreate()

void AreaTrigger::BuildValuesCreate ( ByteBuffer data,
Player const *  target 
) const
overrideprotectedvirtual

Implements Object.

Definition at line 1392 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ BuildValuesUpdate()

void AreaTrigger::BuildValuesUpdate ( ByteBuffer data,
Player const *  target 
) const
overrideprotectedvirtual

Implements Object.

Definition at line 1403 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ BuildValuesUpdateForPlayerWithMask()

void AreaTrigger::BuildValuesUpdateForPlayerWithMask ( UpdateData data,
UF::ObjectData::Mask const &  requestedObjectMask,
UF::AreaTriggerData::Mask const &  requestedAreaTriggerMask,
Player const *  target 
) const

Definition at line 1419 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalcCurrentScale()

float AreaTrigger::CalcCurrentScale ( ) const
protected

Definition at line 448 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateOrbitPosition()

Position AreaTrigger::CalculateOrbitPosition ( ) const
protected

Definition at line 1197 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CheckIsInPolygon2D()

bool AreaTrigger::CheckIsInPolygon2D ( Position const *  pos) const
protected

Definition at line 914 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearExtraScaleCurve()

void AreaTrigger::ClearExtraScaleCurve ( )

Definition at line 400 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ ClearOverrideMoveCurve()

void AreaTrigger::ClearOverrideMoveCurve ( )

Definition at line 420 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ ClearOverrideScaleCurve()

void AreaTrigger::ClearOverrideScaleCurve ( )

Definition at line 385 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ ClearScaleCurve()

void AreaTrigger::ClearScaleCurve ( UF::MutableFieldReference< UF::ScaleCurve, false >  scaleCurveMutator)
protected

Definition at line 522 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearUpdateMask()

void AreaTrigger::ClearUpdateMask ( bool  remove)
overrideprotectedvirtual

Reimplemented from Object.

Definition at line 1456 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ Create()

bool AreaTrigger::Create ( AreaTriggerCreatePropertiesId  areaTriggerCreatePropertiesId,
Map map,
Position const &  pos,
int32  duration,
AreaTriggerSpawn const *  spawnData = nullptr,
Unit caster = nullptr,
Unit target = nullptr,
SpellCastVisual  spellVisual = { 0, 0 },
SpellInfo const *  spellInfo = nullptr,
Spell spell = nullptr,
AuraEffect const *  aurEff = nullptr 
)
private

Definition at line 104 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateAreaTrigger()

AreaTrigger * AreaTrigger::CreateAreaTrigger ( AreaTriggerCreatePropertiesId  areaTriggerCreatePropertiesId,
Position const &  pos,
int32  duration,
Unit caster,
Unit target,
SpellCastVisual  spellVisual = { 0, 0 },
SpellInfo const *  spellInfo = nullptr,
Spell spell = nullptr,
AuraEffect const *  aurEff = nullptr 
)
static

Definition at line 256 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateNewMovementForceId()

ObjectGuid AreaTrigger::CreateNewMovementForceId ( Map map,
uint32  areaTriggerId 
)
static

Definition at line 268 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ DebugVisualizePosition()

void AreaTrigger::DebugVisualizePosition ( )
protected

Definition at line 1356 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Delay()

void AreaTrigger::Delay ( int32  delaytime)
inline

Definition at line 133 of file AreaTrigger.h.

◆ DoActions()

void AreaTrigger::DoActions ( Unit unit)
protected

Definition at line 1028 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAuraEffect()

AuraEffect const * AreaTrigger::GetAuraEffect ( ) const
inline

Definition at line 100 of file AreaTrigger.h.

◆ GetCaster()

Unit * AreaTrigger::GetCaster ( ) const

Definition at line 850 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCasterGuid()

ObjectGuid const & AreaTrigger::GetCasterGuid ( ) const
inline

Definition at line 143 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetCreateProperties()

AreaTriggerCreateProperties const * AreaTrigger::GetCreateProperties ( ) const
inline

Definition at line 137 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetCreatorGUID()

ObjectGuid AreaTrigger::GetCreatorGUID ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 141 of file AreaTrigger.h.

◆ GetDuration()

int32 AreaTrigger::GetDuration ( ) const
inline

Definition at line 130 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetElapsedTimeForMovement()

uint32 AreaTrigger::GetElapsedTimeForMovement ( ) const
inline

Definition at line 157 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetFaction()

uint32 AreaTrigger::GetFaction ( ) const
overridevirtual

Implements WorldObject.

Definition at line 860 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ GetInsideUnits()

GuidUnorderedSet const & AreaTrigger::GetInsideUnits ( ) const
inline

Definition at line 135 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetMaxSearchRadius()

float AreaTrigger::GetMaxSearchRadius ( ) const

Definition at line 868 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetOrbit()

Optional< AreaTriggerOrbitInfo > const & AreaTrigger::GetOrbit ( ) const
inline

Definition at line 161 of file AreaTrigger.h.

◆ GetOrbitCenterPosition()

Position const * AreaTrigger::GetOrbitCenterPosition ( ) const
protected

Definition at line 1182 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetOwnerGUID()

ObjectGuid AreaTrigger::GetOwnerGUID ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 142 of file AreaTrigger.h.

◆ GetProgress()

float AreaTrigger::GetProgress ( ) const
protected

Definition at line 462 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetRollPitchYaw()

Position const & AreaTrigger::GetRollPitchYaw ( ) const
inline

Definition at line 151 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetScaleCurveProgress()

float AreaTrigger::GetScaleCurveProgress ( UF::ScaleCurve const &  scaleCurve,
uint32  timeTo 
) const
protected

Definition at line 470 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetScaleCurveValue()

float AreaTrigger::GetScaleCurveValue ( UF::ScaleCurve const &  scaleCurve,
uint32  timeTo 
) const
protected

Definition at line 496 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetScaleCurveValueAtProgress()

float AreaTrigger::GetScaleCurveValueAtProgress ( UF::ScaleCurve const &  scaleCurve,
float  x 
) const
protected

Definition at line 478 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetScriptId()

uint32 AreaTrigger::GetScriptId ( ) const

Definition at line 833 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetShape()

AreaTriggerShapeInfo const & AreaTrigger::GetShape ( ) const
inline

Definition at line 149 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetSpellId()

uint32 AreaTrigger::GetSpellId ( ) const
inline

Definition at line 99 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetSpline()

::Movement::Spline< int32 > const & AreaTrigger::GetSpline ( ) const
inline

Definition at line 156 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetStationaryO()

float AreaTrigger::GetStationaryO ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 85 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetStationaryX()

float AreaTrigger::GetStationaryX ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 82 of file AreaTrigger.h.

◆ GetStationaryY()

float AreaTrigger::GetStationaryY ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 83 of file AreaTrigger.h.

◆ GetStationaryZ()

float AreaTrigger::GetStationaryZ ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 84 of file AreaTrigger.h.

◆ GetTarget()

Unit * AreaTrigger::GetTarget ( ) const

Definition at line 855 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTargetRollPitchYaw()

Position const & AreaTrigger::GetTargetRollPitchYaw ( ) const
inline

Definition at line 152 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetTemplate()

AreaTriggerTemplate const * AreaTrigger::GetTemplate ( ) const

Definition at line 828 of file AreaTrigger.cpp.

+ Here is the caller graph for this function:

◆ GetTimeSinceCreated()

uint32 AreaTrigger::GetTimeSinceCreated ( ) const
inline

Definition at line 101 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetTimeToTarget()

uint32 AreaTrigger::GetTimeToTarget ( ) const
inline

Definition at line 118 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetTimeToTargetExtraScale()

uint32 AreaTrigger::GetTimeToTargetExtraScale ( ) const
inline

Definition at line 124 of file AreaTrigger.h.

◆ GetTimeToTargetPos()

uint32 AreaTrigger::GetTimeToTargetPos ( ) const
inline

Definition at line 127 of file AreaTrigger.h.

◆ GetTimeToTargetScale()

uint32 AreaTrigger::GetTimeToTargetScale ( ) const
inline

Definition at line 121 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetTotalDuration()

int32 AreaTrigger::GetTotalDuration ( ) const
inline

Definition at line 131 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ HandleUnitEnterExit()

void AreaTrigger::HandleUnitEnterExit ( std::vector< Unit * > const &  targetList)
protected

Definition at line 775 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasOrbit()

bool AreaTrigger::HasOrbit ( ) const

Definition at line 1177 of file AreaTrigger.cpp.

+ Here is the caller graph for this function:

◆ HasOverridePosition()

bool AreaTrigger::HasOverridePosition ( ) const

Definition at line 983 of file AreaTrigger.cpp.

+ Here is the caller graph for this function:

◆ HasSplines()

bool AreaTrigger::HasSplines ( ) const

Definition at line 1143 of file AreaTrigger.cpp.

+ Here is the caller graph for this function:

◆ InitOrbit()

void AreaTrigger::InitOrbit ( AreaTriggerOrbitInfo const &  orbit,
uint32  timeToTarget 
)
Todo:
: research the right value, in sniffs both timers are nearly identical

Definition at line 1148 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitSplineOffsets()

void AreaTrigger::InitSplineOffsets ( std::vector< Position > const &  offsets,
uint32  timeToTarget 
)

Definition at line 1079 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitSplines()

void AreaTrigger::InitSplines ( std::vector< G3D::Vector3 >  splinePoints,
uint32  timeToTarget 
)

Definition at line 1102 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsCustom()

bool AreaTrigger::IsCustom ( ) const
inline

Definition at line 76 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ IsNeverVisibleFor()

bool AreaTrigger::IsNeverVisibleFor ( WorldObject const *  seer,
bool  allowServersideObjects = false 
) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 1376 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ IsRemoved()

bool AreaTrigger::IsRemoved ( ) const
inline

Definition at line 98 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ IsServerSide()

bool AreaTrigger::IsServerSide ( ) const
inline

Definition at line 77 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ IsStaticSpawn()

bool AreaTrigger::IsStaticSpawn ( ) const
inline

Definition at line 78 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ LoadFromDB()

bool AreaTrigger::LoadFromDB ( ObjectGuid::LowType  spawnId,
Map map,
bool  addToMap,
bool  allowDuplicate 
)

Definition at line 273 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RelocateStationaryPosition()

void AreaTrigger::RelocateStationaryPosition ( Position const &  pos)
inline

Definition at line 86 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ Remove()

void AreaTrigger::Remove ( )

Definition at line 367 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveFromWorld()

void AreaTrigger::RemoveFromWorld ( )
overridevirtual
  • Remove the AreaTrigger from the accessor and from all lists of objects in world

Reimplemented from Object.

Definition at line 78 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SearchUnitInBoundedPlane()

void AreaTrigger::SearchUnitInBoundedPlane ( std::vector< Unit * > &  targetList)
protected

Definition at line 754 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SearchUnitInBox()

void AreaTrigger::SearchUnitInBox ( std::vector< Unit * > &  targetList)
protected

Definition at line 661 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SearchUnitInCylinder()

void AreaTrigger::SearchUnitInCylinder ( std::vector< Unit * > &  targetList)
protected

Definition at line 704 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SearchUnitInDisk()

void AreaTrigger::SearchUnitInDisk ( std::vector< Unit * > &  targetList)
protected

Definition at line 729 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SearchUnitInPolygon()

void AreaTrigger::SearchUnitInPolygon ( std::vector< Unit * > &  targetList)
protected

Definition at line 683 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SearchUnitInSphere()

void AreaTrigger::SearchUnitInSphere ( std::vector< Unit * > &  targetList)
protected

Definition at line 648 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SearchUnits()

void AreaTrigger::SearchUnits ( std::vector< Unit * > &  targetList,
float  radius,
bool  check3D 
)
protected

Definition at line 633 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetDuration()

void AreaTrigger::SetDuration ( int32  newDuration)

Definition at line 427 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetExtraScaleCurve() [1/2]

void AreaTrigger::SetExtraScaleCurve ( float  extraScale)

Definition at line 390 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetExtraScaleCurve() [2/2]

void AreaTrigger::SetExtraScaleCurve ( std::array< DBCPosition2D, 2 > const &  points,
Optional< uint32 startTimeOffset = {},
CurveInterpolationMode  interpolation = CurveInterpolationMode::Linear 
)

Definition at line 395 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetHeightIgnoresScale()

void AreaTrigger::SetHeightIgnoresScale ( bool  heightIgnoresScale)
inline

Definition at line 103 of file AreaTrigger.h.

+ Here is the call graph for this function:

◆ SetOverrideMoveCurve() [1/2]

void AreaTrigger::SetOverrideMoveCurve ( float  x,
float  y,
float  z 
)

Definition at line 405 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetOverrideMoveCurve() [2/2]

void AreaTrigger::SetOverrideMoveCurve ( std::array< DBCPosition2D, 2 > const &  xCurvePoints,
std::array< DBCPosition2D, 2 > const &  yCurvePoints,
std::array< DBCPosition2D, 2 > const &  zCurvePoints,
Optional< uint32 startTimeOffset = {},
CurveInterpolationMode  interpolation = CurveInterpolationMode::Linear 
)

Definition at line 412 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetOverrideScaleCurve() [1/2]

void AreaTrigger::SetOverrideScaleCurve ( float  overrideScale)

Definition at line 375 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetOverrideScaleCurve() [2/2]

void AreaTrigger::SetOverrideScaleCurve ( std::array< DBCPosition2D, 2 > const &  points,
Optional< uint32 startTimeOffset = {},
CurveInterpolationMode  interpolation = CurveInterpolationMode::Linear 
)

Definition at line 380 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetScaleCurve() [1/3]

void AreaTrigger::SetScaleCurve ( UF::MutableFieldReference< UF::ScaleCurve, false >  scaleCurveMutator,
float  constantValue 
)
protected

Definition at line 501 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetScaleCurve() [2/3]

void AreaTrigger::SetScaleCurve ( UF::MutableFieldReference< UF::ScaleCurve, false >  scaleCurveMutator,
Optional< AreaTriggerScaleCurveTemplate > const &  curve 
)
protected

Definition at line 527 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetScaleCurve() [3/3]

void AreaTrigger::SetScaleCurve ( UF::MutableFieldReference< UF::ScaleCurve, false >  scaleCurveMutator,
std::array< DBCPosition2D, 2 > const &  points,
Optional< uint32 startTimeOffset,
CurveInterpolationMode  interpolation 
)
protected

Definition at line 508 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetTimeToTarget()

void AreaTrigger::SetTimeToTarget ( uint32  timeToTarget)
inline

Definition at line 119 of file AreaTrigger.h.

+ Here is the call graph for this function:

◆ SetTimeToTargetExtraScale()

void AreaTrigger::SetTimeToTargetExtraScale ( uint32  timeToTargetExtraScale)
inline

Definition at line 125 of file AreaTrigger.h.

+ Here is the call graph for this function:

◆ SetTimeToTargetPos()

void AreaTrigger::SetTimeToTargetPos ( uint32  timeToTargetPos)
inline

Definition at line 128 of file AreaTrigger.h.

+ Here is the call graph for this function:

◆ SetTimeToTargetScale()

void AreaTrigger::SetTimeToTargetScale ( uint32  timeToTargetScale)
inline

Definition at line 122 of file AreaTrigger.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UndoActions()

void AreaTrigger::UndoActions ( Unit unit)
protected

Definition at line 1071 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Update()

void AreaTrigger::Update ( uint32  diff)
overridevirtual

Reimplemented from WorldObject.

Definition at line 298 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ UpdateOrbitPosition()

void AreaTrigger::UpdateOrbitPosition ( uint32  diff)
protected

Definition at line 1247 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateOverridePosition()

void AreaTrigger::UpdateOverridePosition ( )
protected

Definition at line 1334 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdatePolygonVertices()

void AreaTrigger::UpdatePolygonVertices ( )
protected

Definition at line 873 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateShape()

void AreaTrigger::UpdateShape ( )

Definition at line 990 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateSplinePosition()

void AreaTrigger::UpdateSplinePosition ( uint32  diff)
protected

Definition at line 1262 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateTargetList()

void AreaTrigger::UpdateTargetList ( )
protected

Definition at line 591 of file AreaTrigger.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _ai

std::unique_ptr<AreaTriggerAI> AreaTrigger::_ai
protected

Definition at line 237 of file AreaTrigger.h.

◆ _areaTriggerCreateProperties

AreaTriggerCreateProperties const* AreaTrigger::_areaTriggerCreateProperties
protected

Definition at line 233 of file AreaTrigger.h.

◆ _areaTriggerTemplate

AreaTriggerTemplate const* AreaTrigger::_areaTriggerTemplate
protected

Definition at line 234 of file AreaTrigger.h.

◆ _aurEff

AuraEffect const* AreaTrigger::_aurEff
protected

Definition at line 212 of file AreaTrigger.h.

◆ _duration

int32 AreaTrigger::_duration
protected

Definition at line 216 of file AreaTrigger.h.

◆ _insideUnits

GuidUnorderedSet AreaTrigger::_insideUnits
protected

Definition at line 235 of file AreaTrigger.h.

◆ _isRemoved

bool AreaTrigger::_isRemoved
protected

Definition at line 220 of file AreaTrigger.h.

◆ _lastSplineIndex

int32 AreaTrigger::_lastSplineIndex
protected

Definition at line 228 of file AreaTrigger.h.

◆ _movementTime

uint32 AreaTrigger::_movementTime
protected

Definition at line 229 of file AreaTrigger.h.

◆ _orbitInfo

Optional<AreaTriggerOrbitInfo> AreaTrigger::_orbitInfo
protected

Definition at line 231 of file AreaTrigger.h.

◆ _polygonVertices

std::vector<Position> AreaTrigger::_polygonVertices
protected

Definition at line 224 of file AreaTrigger.h.

◆ _reachedDestination

bool AreaTrigger::_reachedDestination
protected

Definition at line 227 of file AreaTrigger.h.

◆ _rollPitchYaw

Position AreaTrigger::_rollPitchYaw
protected

Definition at line 222 of file AreaTrigger.h.

◆ _shape

AreaTriggerShapeInfo AreaTrigger::_shape
protected

Definition at line 215 of file AreaTrigger.h.

◆ _spawnId

ObjectGuid::LowType AreaTrigger::_spawnId
protected

Definition at line 208 of file AreaTrigger.h.

◆ _spline

std::unique_ptr<::Movement::Spline<int32> > AreaTrigger::_spline
protected

Definition at line 225 of file AreaTrigger.h.

◆ _stationaryPosition

Position AreaTrigger::_stationaryPosition
protected

Definition at line 214 of file AreaTrigger.h.

◆ _targetGuid

ObjectGuid AreaTrigger::_targetGuid
protected

Definition at line 210 of file AreaTrigger.h.

◆ _targetRollPitchYaw

Position AreaTrigger::_targetRollPitchYaw
protected

Definition at line 223 of file AreaTrigger.h.

◆ _timeSinceCreated

uint32 AreaTrigger::_timeSinceCreated
protected

Definition at line 218 of file AreaTrigger.h.

◆ _totalDuration

int32 AreaTrigger::_totalDuration
protected

Definition at line 217 of file AreaTrigger.h.

◆ _verticesUpdatePreviousOrientation

float AreaTrigger::_verticesUpdatePreviousOrientation
protected

Definition at line 219 of file AreaTrigger.h.

◆ m_areaTriggerData

UF::UpdateField<UF::AreaTriggerData, 0, TYPEID_AREATRIGGER> AreaTrigger::m_areaTriggerData

Definition at line 167 of file AreaTrigger.h.


The documentation for this class was generated from the following files: