TrinityCore
Loading...
Searching...
No Matches
AreaTrigger Class Referencefinal

#include <AreaTrigger.h>

+ Inheritance diagram for AreaTrigger:

Classes

struct  ScaleCurveData
 
struct  ValuesUpdateForPlayerWithMaskSender
 

Public Member Functions

 AreaTrigger ()
 
 ~AreaTrigger ()
 
void BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::AreaTriggerData::Mask const &requestedAreaTriggerMask, Player const *target, bool ignoreNestedChangesMask) const
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void AI_Initialize ()
 
void AI_Destroy ()
 
AreaTriggerAIAI ()
 
bool IsCustom () const
 
bool IsServerSide () const
 
bool IsStaticSpawn () const
 
bool HasActionSetFlag (AreaTriggerActionSetFlag flag) const
 
bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects=false) const override
 
Position const & GetStationaryPosition () const override
 
void RelocateStationaryPosition (Position const &pos)
 
void PlaySpellVisual (uint32 spellVisualId) const
 
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
 
EnumFlag< AreaTriggerFieldFlagsGetAreaTriggerFlags () const
 
bool HasAreaTriggerFlag (AreaTriggerFieldFlags flag) const
 
void SetAreaTriggerFlag (AreaTriggerFieldFlags flag)
 
void RemoveAreaTriggerFlag (AreaTriggerFieldFlags flag)
 
void ReplaceAllAreaTriggerFlags (AreaTriggerFieldFlags flag)
 
float CalcCurrentScale () const
 
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)
 
void SetSpellVisual (SpellCastVisual const &visual)
 
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
 
void SetShape (AreaTriggerShapeInfo const &shape)
 
float GetMaxSearchRadius () const
 
void InitSplineOffsets (std::vector< Position > const &offsets, Optional< float > overrideSpeed={}, Optional< bool > speedIsTimeInSeconds={})
 
void InitSplines (std::vector< G3D::Vector3 > const &splinePoints, Optional< float > overrideSpeed={}, Optional< bool > speedIsTimeInSeconds={})
 
bool HasSplines () const
 
::Movement::Spline< float > const & GetSpline () const
 
uint32 GetElapsedTimeForMovement () const
 
void InitOrbit (AreaTriggerOrbitInfo const &orbit, Optional< float > overrideSpeed={}, Optional< bool > speedIsTimeInSeconds={})
 
bool HasOrbit () const
 
UF::AreaTriggerOrbit const & GetOrbit () const
 
void SetPathTarget (ObjectGuid pathTarget)
 
bool HasOverridePosition () const
 
void UpdateShape ()
 
void HandleUnitExit (Unit *unit)
 
- Public Member Functions inherited from WorldObject
virtual ~WorldObject ()
 
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, float maxHeightChange=6.0f) const
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle) const
 
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
 
Position GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) 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 (Position const *pos, float minRange, float maxRange) const
 
bool IsInRange3d (Position const *pos, 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, CanSeeOrDetectExtraArgs const &args={ }) 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 GetCharmerOrOwnerGUID () const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
UnitGetOwner () const
 
UnitGetCharmerOrOwner () const
 
UnitGetCharmerOrOwnerOrSelf () const
 
PlayerGetCharmerOrOwnerPlayerOrPlayerItself () const
 
PlayerGetAffectingPlayer () const
 
PlayerGetSpellModOwner () const
 
SpellRange GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
SpellEffectValue ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue 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, bool canImmune) const
 
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
 
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 (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
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)
 
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 ()
 
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)
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
WorldObjectToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
ItemToItem ()
 
Item const * ToItem () const
 
UnitToUnit ()
 
Unit const * ToUnit () const
 
CreatureToCreature ()
 
Creature const * ToCreature () const
 
PlayerToPlayer ()
 
Player const * ToPlayer () const
 
GameObjectToGameObject ()
 
GameObject const * ToGameObject () const
 
CorpseToCorpse ()
 
Corpse const * ToCorpse () const
 
DynamicObjectToDynObject ()
 
DynamicObject const * ToDynObject () const
 
AreaTriggerToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
SceneObjectToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
ConversationToConversation ()
 
Conversation const * ToConversation () const
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () const
 
virtual LootGetLootForPlayer (Player const *player) const
 
virtual SpawnTrackingStateData const * GetSpawnTrackingStateDataForPlayer (Player const *player) const
 
virtual void BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const
 
- Public Member Functions inherited from BaseEntity
virtual ~BaseEntity ()
 
bool IsInWorld () const
 
ObjectGuid const & GetGUID () const
 
TypeID GetTypeId () const
 
bool isType (TypeMask mask) const
 
bool IsWorldObject () const
 
bool IsItem () const
 
bool IsUnit () const
 
bool IsCreature () const
 
bool IsPlayer () const
 
bool IsGameObject () const
 
bool IsDynObject () const
 
bool IsCorpse () const
 
bool IsAreaTrigger () const
 
bool IsSceneObject () const
 
bool IsConversation () const
 
bool IsMeshObject () const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player) const
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBufferPrepareValuesUpdateBuffer (UpdateData *data) const
 
virtual void DestroyForPlayer (Player const *target) const
 
void SendOutOfRangeForPlayer (Player const *target) const
 
void ClearUpdateMask (bool remove)
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
void BuildUpdateChangesMask ()
 
void BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &)
 
- Public Member Functions inherited from WorldLocation
constexpr WorldLocation ()
 
constexpr WorldLocation (uint32 mapId, float x, float y)
 
constexpr WorldLocation (uint32 mapId, float x, float y, float z)
 
constexpr WorldLocation (uint32 mapId, float x, float y, float z, float o)
 
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, float x, float y, float z, float o)
 
constexpr WorldLocation GetWorldLocation () const
 
constexpr uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
constexpr Position ()
 
constexpr Position (float x, float y)
 
constexpr Position (float x, float y, float z)
 
constexpr Position (float x, float y, float z, float o)
 
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
 
Position GetPositionOffsetTo (Position const &endPos) 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 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 &boxOrigin, float length, float width, float height) const
 
bool IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const
 
bool IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) 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 WorldObjectToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static ItemToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static UnitToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static CreatureToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static PlayerToPlayer (Object *o)
 
static Player const * ToPlayer (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 BaseEntity
static ObjectGuid GetGUID (BaseEntity const *o)
 
- Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)
 

Public Attributes

UF::UpdateField< UF::AreaTriggerData, int32(WowCS::EntityFragment::CGObject), 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::UpdateField< UF::ObjectData, int32(WowCS::EntityFragment::CGObject), TYPEID_OBJECTm_objectData
 
- Public Attributes inherited from BaseEntity
UF::UpdateFieldHolder m_values
 
- 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 (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void ClearValuesChangesMask () override
 
void _UpdateDuration (int32 newDuration)
 
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< ScaleCurveData > const &curve)
 
void UpdateTargetList ()
 
void SearchUnits (std::vector< Unit * > &targetList, float radius, bool check3D)
 
void SearchUnitInSphere (UF::AreaTriggerSphere const &sphere, std::vector< Unit * > &targetList)
 
void SearchUnitInBox (UF::AreaTriggerBox const &box, std::vector< Unit * > &targetList)
 
void SearchUnitInPolygon (UF::AreaTriggerPolygon const &polygon, std::vector< Unit * > &targetList)
 
void SearchUnitInCylinder (UF::AreaTriggerCylinder const &cylinder, std::vector< Unit * > &targetList)
 
void SearchUnitInDisk (UF::AreaTriggerDisk const &disk, std::vector< Unit * > &targetList)
 
void SearchUnitInBoundedPlane (UF::AreaTriggerBoundedPlane const &boundedPlane, std::vector< Unit * > &targetList)
 
void HandleUnitEnterExit (std::vector< Unit * > const &targetList, AreaTriggerExitReason exitMode=AreaTriggerExitReason::NotInside)
 
void HandleUnitEnter (Unit *unit)
 
void HandleUnitExitInternal (Unit *unit, AreaTriggerExitReason exitMode=AreaTriggerExitReason::NotInside)
 
void DoActions (Unit *unit)
 
void UndoActions (Unit *unit)
 
void UpdatePolygonVertices ()
 
void UpdateOrbitPosition ()
 
void UpdateSplinePosition (Movement::Spline< float > &spline)
 
void UpdateOverridePosition ()
 
Position const * GetOrbitCenterPosition () const
 
Position CalculateOrbitPosition () const
 
void UpdateHasPlayersFlag ()
 
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, bool ignorePhaseShift=false) const
 
virtual bool CanAlwaysSee (WorldObject const *) const
 
virtual bool IsAlwaysVisibleFor (WorldObject const *seer) const
 
virtual bool IsInvisibleDueToDespawn (WorldObject const *seer) const
 
virtual bool IsAlwaysDetectableFor (WorldObject const *seer) const
 
virtual void Heartbeat ()
 
- Protected Member Functions inherited from Object
 Object ()
 
void BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const
 
- Protected Member Functions inherited from BaseEntity
 BaseEntity ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< 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 K , typename V >
void RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key)
 
template<typename T >
void InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const
 
virtual UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const
 
void AddToObjectUpdateIfNeeded ()
 
- Protected Member Functions inherited from MapObject
 MapObject ()
 

Protected Attributes

ObjectGuid::LowType _spawnId
 
ObjectGuid _targetGuid
 
AuraEffect const * _aurEff
 
Position _stationaryPosition
 
int32 _duration
 
int32 _totalDuration
 
float _verticesUpdatePreviousOrientation
 
bool _isRemoved
 
std::vector< Position_polygonVertices
 
std::unique_ptr<::Movement::Spline< float > > _spline
 
bool _reachedDestination
 
int32 _lastSplineIndex
 
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 BaseEntity
TypeID m_objectTypeId = NUM_CLIENT_OBJECT_TYPES
 
CreateObjectBits m_updateFlag = {}
 
WowCS::EntityFragmentsHolder m_entityFragments
 
bool m_objectUpdated = false
 

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)
 

Additional Inherited Members

- Static Protected Member Functions inherited from BaseEntity
static void BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments)
 

Detailed Description

Definition at line 74 of file AreaTrigger.h.

Constructor & Destructor Documentation

◆ AreaTrigger()

AreaTrigger::AreaTrigger ( )

Definition at line 50 of file AreaTrigger.cpp.

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

◆ ~AreaTrigger()

AreaTrigger::~AreaTrigger ( )

Definition at line 62 of file AreaTrigger.cpp.

Member Function Documentation

◆ _UpdateDuration()

void AreaTrigger::_UpdateDuration ( int32  newDuration)
protected

Definition at line 490 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 BaseEntity.

Definition at line 66 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ AI()

AreaTriggerAI * AreaTrigger::AI ( )
inline

Definition at line 107 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ AI_Destroy()

void AreaTrigger::AI_Destroy ( )

Definition at line 1481 of file AreaTrigger.cpp.

+ Here is the caller graph for this function:

◆ AI_Initialize()

void AreaTrigger::AI_Initialize ( )

Definition at line 1474 of file AreaTrigger.cpp.

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

◆ BuildValuesCreate()

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

Implements Object.

Definition at line 1502 of file AreaTrigger.cpp.

◆ BuildValuesUpdate()

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

Implements Object.

Definition at line 1508 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,
bool  ignoreNestedChangesMask 
) const

Definition at line 1519 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

Definition at line 502 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 1323 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 446 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ ClearOverrideMoveCurve()

void AreaTrigger::ClearOverrideMoveCurve ( )

Definition at line 466 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ ClearOverrideScaleCurve()

void AreaTrigger::ClearOverrideScaleCurve ( )

Definition at line 431 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 572 of file AreaTrigger.cpp.

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

◆ ClearValuesChangesMask()

void AreaTrigger::ClearValuesChangesMask ( )
overrideprotectedvirtual

Reimplemented from Object.

Definition at line 1558 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 116 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 309 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 321 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ DebugVisualizePosition()

void AreaTrigger::DebugVisualizePosition ( )
protected

Definition at line 1466 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 172 of file AreaTrigger.h.

◆ DoActions()

void AreaTrigger::DoActions ( Unit unit)
protected

Definition at line 1140 of file AreaTrigger.cpp.

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

◆ GetAreaTriggerFlags()

EnumFlag< AreaTriggerFieldFlags > AreaTrigger::GetAreaTriggerFlags ( ) const
inline

Definition at line 135 of file AreaTrigger.h.

◆ GetAuraEffect()

AuraEffect const * AreaTrigger::GetAuraEffect ( ) const
inline

Definition at line 132 of file AreaTrigger.h.

◆ GetCaster()

Unit * AreaTrigger::GetCaster ( ) const

Definition at line 961 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 182 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetCreateProperties()

AreaTriggerCreateProperties const * AreaTrigger::GetCreateProperties ( ) const
inline

Definition at line 176 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetCreatorGUID()

ObjectGuid AreaTrigger::GetCreatorGUID ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 180 of file AreaTrigger.h.

◆ GetDuration()

int32 AreaTrigger::GetDuration ( ) const
inline

Definition at line 169 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetElapsedTimeForMovement()

uint32 AreaTrigger::GetElapsedTimeForMovement ( ) const

Definition at line 1269 of file AreaTrigger.cpp.

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

◆ GetFaction()

uint32 AreaTrigger::GetFaction ( ) const
overridevirtual

Implements WorldObject.

Definition at line 971 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ GetInsideUnits()

GuidUnorderedSet const & AreaTrigger::GetInsideUnits ( ) const
inline

Definition at line 174 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetMaxSearchRadius()

float AreaTrigger::GetMaxSearchRadius ( ) const

Definition at line 1050 of file AreaTrigger.cpp.

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

◆ GetOrbit()

UF::AreaTriggerOrbit const & AreaTrigger::GetOrbit ( ) const
inline

Definition at line 198 of file AreaTrigger.h.

◆ GetOrbitCenterPosition()

Position const * AreaTrigger::GetOrbitCenterPosition ( ) const
protected

Definition at line 1310 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 181 of file AreaTrigger.h.

◆ GetProgress()

float AreaTrigger::GetProgress ( ) const
protected

Definition at line 515 of file AreaTrigger.cpp.

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

◆ GetScaleCurveProgress()

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

Definition at line 523 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 549 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 531 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 944 of file AreaTrigger.cpp.

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

◆ GetSpellId()

uint32 AreaTrigger::GetSpellId ( ) const
inline

Definition at line 131 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetSpline()

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

Definition at line 193 of file AreaTrigger.h.

◆ GetStationaryPosition()

Position const & AreaTrigger::GetStationaryPosition ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 116 of file AreaTrigger.h.

◆ GetTarget()

Unit * AreaTrigger::GetTarget ( ) const

Definition at line 966 of file AreaTrigger.cpp.

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

◆ GetTemplate()

AreaTriggerTemplate const * AreaTrigger::GetTemplate ( ) const
inline

Definition at line 177 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetTimeSinceCreated()

uint32 AreaTrigger::GetTimeSinceCreated ( ) const

Definition at line 413 of file AreaTrigger.cpp.

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

◆ GetTimeToTarget()

uint32 AreaTrigger::GetTimeToTarget ( ) const
inline

Definition at line 155 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetTimeToTargetExtraScale()

uint32 AreaTrigger::GetTimeToTargetExtraScale ( ) const
inline

Definition at line 161 of file AreaTrigger.h.

◆ GetTimeToTargetPos()

uint32 AreaTrigger::GetTimeToTargetPos ( ) const
inline

Definition at line 164 of file AreaTrigger.h.

◆ GetTimeToTargetScale()

uint32 AreaTrigger::GetTimeToTargetScale ( ) const
inline

Definition at line 158 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ GetTotalDuration()

int32 AreaTrigger::GetTotalDuration ( ) const
inline

Definition at line 170 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ HandleUnitEnter()

void AreaTrigger::HandleUnitEnter ( Unit unit)
protected

Definition at line 881 of file AreaTrigger.cpp.

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

◆ HandleUnitEnterExit()

void AreaTrigger::HandleUnitEnterExit ( std::vector< Unit * > const &  targetList,
AreaTriggerExitReason  exitMode = AreaTriggerExitReason::NotInside 
)
protected

Definition at line 853 of file AreaTrigger.cpp.

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

◆ HandleUnitExit()

void AreaTrigger::HandleUnitExit ( Unit unit)

Definition at line 935 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ HandleUnitExitInternal()

void AreaTrigger::HandleUnitExitInternal ( Unit unit,
AreaTriggerExitReason  exitMode = AreaTriggerExitReason::NotInside 
)
protected

Definition at line 908 of file AreaTrigger.cpp.

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

◆ HasActionSetFlag()

bool AreaTrigger::HasActionSetFlag ( AreaTriggerActionSetFlag  flag) const
inline

Definition at line 112 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ HasAreaTriggerFlag()

bool AreaTrigger::HasAreaTriggerFlag ( AreaTriggerFieldFlags  flag) const
inline

Definition at line 136 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ HasOrbit()

bool AreaTrigger::HasOrbit ( ) const
inline

Definition at line 197 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ HasOverridePosition()

bool AreaTrigger::HasOverridePosition ( ) const

Definition at line 1095 of file AreaTrigger.cpp.

+ Here is the caller graph for this function:

◆ HasSplines()

bool AreaTrigger::HasSplines ( ) const
inline

Definition at line 192 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ InitOrbit()

void AreaTrigger::InitOrbit ( AreaTriggerOrbitInfo const &  orbit,
Optional< float >  overrideSpeed = {},
Optional< bool >  speedIsTimeInSeconds = {} 
)

Definition at line 1277 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,
Optional< float >  overrideSpeed = {},
Optional< bool >  speedIsTimeInSeconds = {} 
)

Definition at line 1214 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 > const &  splinePoints,
Optional< float >  overrideSpeed = {},
Optional< bool >  speedIsTimeInSeconds = {} 
)

Definition at line 1236 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 109 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 1486 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ IsRemoved()

bool AreaTrigger::IsRemoved ( ) const
inline

Definition at line 130 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ IsServerSide()

bool AreaTrigger::IsServerSide ( ) const
inline

Definition at line 110 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ IsStaticSpawn()

bool AreaTrigger::IsStaticSpawn ( ) const
inline

Definition at line 111 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 326 of file AreaTrigger.cpp.

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

◆ PlaySpellVisual()

void AreaTrigger::PlaySpellVisual ( uint32  spellVisualId) const

Definition at line 108 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 117 of file AreaTrigger.h.

+ Here is the caller graph for this function:

◆ Remove()

void AreaTrigger::Remove ( )

Definition at line 405 of file AreaTrigger.cpp.

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

◆ RemoveAreaTriggerFlag()

void AreaTrigger::RemoveAreaTriggerFlag ( AreaTriggerFieldFlags  flag)
inline

Definition at line 138 of file AreaTrigger.h.

+ 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 BaseEntity.

Definition at line 82 of file AreaTrigger.cpp.

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

◆ ReplaceAllAreaTriggerFlags()

void AreaTrigger::ReplaceAllAreaTriggerFlags ( AreaTriggerFieldFlags  flag)
inline

Definition at line 139 of file AreaTrigger.h.

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

◆ SearchUnitInBoundedPlane()

void AreaTrigger::SearchUnitInBoundedPlane ( UF::AreaTriggerBoundedPlane const &  boundedPlane,
std::vector< Unit * > &  targetList 
)
protected

Definition at line 833 of file AreaTrigger.cpp.

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

◆ SearchUnitInBox()

void AreaTrigger::SearchUnitInBox ( UF::AreaTriggerBox const &  box,
std::vector< Unit * > &  targetList 
)
protected

Definition at line 744 of file AreaTrigger.cpp.

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

◆ SearchUnitInCylinder()

void AreaTrigger::SearchUnitInCylinder ( UF::AreaTriggerCylinder const &  cylinder,
std::vector< Unit * > &  targetList 
)
protected

Definition at line 785 of file AreaTrigger.cpp.

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

◆ SearchUnitInDisk()

void AreaTrigger::SearchUnitInDisk ( UF::AreaTriggerDisk const &  disk,
std::vector< Unit * > &  targetList 
)
protected

Definition at line 809 of file AreaTrigger.cpp.

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

◆ SearchUnitInPolygon()

void AreaTrigger::SearchUnitInPolygon ( UF::AreaTriggerPolygon const &  polygon,
std::vector< Unit * > &  targetList 
)
protected

Definition at line 765 of file AreaTrigger.cpp.

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

◆ SearchUnitInSphere()

void AreaTrigger::SearchUnitInSphere ( UF::AreaTriggerSphere const &  sphere,
std::vector< Unit * > &  targetList 
)
protected

Definition at line 732 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 717 of file AreaTrigger.cpp.

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

◆ SetAreaTriggerFlag()

void AreaTrigger::SetAreaTriggerFlag ( AreaTriggerFieldFlags  flag)
inline

Definition at line 137 of file AreaTrigger.h.

+ 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 481 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 436 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 441 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetOverrideMoveCurve() [1/2]

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

Definition at line 451 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 458 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetOverrideScaleCurve() [1/2]

void AreaTrigger::SetOverrideScaleCurve ( float  overrideScale)

Definition at line 421 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 426 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetPathTarget()

void AreaTrigger::SetPathTarget ( ObjectGuid  pathTarget)
inline

Definition at line 200 of file AreaTrigger.h.

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

◆ SetScaleCurve() [1/3]

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

Definition at line 554 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< ScaleCurveData > const &  curve 
)
protected

Definition at line 577 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 561 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ SetShape()

void AreaTrigger::SetShape ( AreaTriggerShapeInfo const &  shape)

Definition at line 979 of file AreaTrigger.cpp.

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

◆ SetSpellVisual()

void AreaTrigger::SetSpellVisual ( SpellCastVisual const &  visual)

Definition at line 473 of file AreaTrigger.cpp.

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

◆ SetTimeToTarget()

void AreaTrigger::SetTimeToTarget ( uint32  timeToTarget)
inline

Definition at line 156 of file AreaTrigger.h.

+ Here is the call graph for this function:

◆ SetTimeToTargetExtraScale()

void AreaTrigger::SetTimeToTargetExtraScale ( uint32  timeToTargetExtraScale)
inline

Definition at line 162 of file AreaTrigger.h.

+ Here is the call graph for this function:

◆ SetTimeToTargetPos()

void AreaTrigger::SetTimeToTargetPos ( uint32  timeToTargetPos)
inline

Definition at line 165 of file AreaTrigger.h.

+ Here is the call graph for this function:

◆ SetTimeToTargetScale()

void AreaTrigger::SetTimeToTargetScale ( uint32  timeToTargetScale)
inline

Definition at line 159 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 1190 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 341 of file AreaTrigger.cpp.

+ Here is the call graph for this function:

◆ UpdateHasPlayersFlag()

void AreaTrigger::UpdateHasPlayersFlag ( )
protected

Definition at line 1458 of file AreaTrigger.cpp.

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

◆ UpdateOrbitPosition()

void AreaTrigger::UpdateOrbitPosition ( )
protected

Definition at line 1371 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 1439 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 1055 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 1102 of file AreaTrigger.cpp.

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

◆ UpdateSplinePosition()

void AreaTrigger::UpdateSplinePosition ( Movement::Spline< float > &  spline)
protected

Definition at line 1381 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 641 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 281 of file AreaTrigger.h.

◆ _areaTriggerCreateProperties

AreaTriggerCreateProperties const* AreaTrigger::_areaTriggerCreateProperties
protected

Definition at line 277 of file AreaTrigger.h.

◆ _areaTriggerTemplate

AreaTriggerTemplate const* AreaTrigger::_areaTriggerTemplate
protected

Definition at line 278 of file AreaTrigger.h.

◆ _aurEff

AuraEffect const* AreaTrigger::_aurEff
protected

Definition at line 263 of file AreaTrigger.h.

◆ _duration

int32 AreaTrigger::_duration
protected

Definition at line 266 of file AreaTrigger.h.

◆ _insideUnits

GuidUnorderedSet AreaTrigger::_insideUnits
protected

Definition at line 279 of file AreaTrigger.h.

◆ _isRemoved

bool AreaTrigger::_isRemoved
protected

Definition at line 269 of file AreaTrigger.h.

◆ _lastSplineIndex

int32 AreaTrigger::_lastSplineIndex
protected

Definition at line 275 of file AreaTrigger.h.

◆ _polygonVertices

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

Definition at line 271 of file AreaTrigger.h.

◆ _reachedDestination

bool AreaTrigger::_reachedDestination
protected

Definition at line 274 of file AreaTrigger.h.

◆ _spawnId

ObjectGuid::LowType AreaTrigger::_spawnId
protected

Definition at line 259 of file AreaTrigger.h.

◆ _spline

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

Definition at line 272 of file AreaTrigger.h.

◆ _stationaryPosition

Position AreaTrigger::_stationaryPosition
protected

Definition at line 265 of file AreaTrigger.h.

◆ _targetGuid

ObjectGuid AreaTrigger::_targetGuid
protected

Definition at line 261 of file AreaTrigger.h.

◆ _totalDuration

int32 AreaTrigger::_totalDuration
protected

Definition at line 267 of file AreaTrigger.h.

◆ _verticesUpdatePreviousOrientation

float AreaTrigger::_verticesUpdatePreviousOrientation
protected

Definition at line 268 of file AreaTrigger.h.

◆ m_areaTriggerData

Definition at line 208 of file AreaTrigger.h.


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