![]() |
TrinityCore
|
#include <Corpse.h>
Inheritance diagram for Corpse:Classes | |
| struct | ValuesUpdateForPlayerWithMaskSender |
Public Member Functions | |
| Corpse (CorpseType type=CORPSE_BONES) | |
| ~Corpse () | |
| void | BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::CorpseData::Mask const &requestedCorpseMask, Player const *target, bool ignoreNestedChangesMask) const |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| bool | Create (ObjectGuid::LowType guidlow, Map *map) |
| bool | Create (ObjectGuid::LowType guidlow, Player *owner) |
| void | Update (uint32 diff) override |
| void | SaveToDB () |
| bool | LoadCorpseFromDB (ObjectGuid::LowType guid, Field *fields) |
| void | DeleteFromDB (CharacterDatabaseTransaction trans) |
| CorpseFlags | GetCorpseFlags () const |
| bool | HasCorpseFlag (CorpseFlags flags) const |
| void | SetCorpseFlag (CorpseFlags flags) |
| void | RemoveCorpseFlag (CorpseFlags flags) |
| void | ReplaceAllCorpseFlags (CorpseFlags flags) |
| CorpseDynFlags | GetCorpseDynamicFlags () const |
| bool | HasCorpseDynamicFlag (CorpseDynFlags flags) const |
| void | SetCorpseDynamicFlag (CorpseDynFlags dynamicFlags) |
| void | RemoveCorpseDynamicFlag (CorpseDynFlags dynamicFlags) |
| void | ReplaceAllCorpseDynamicFlags (CorpseDynFlags dynamicFlags) |
| ObjectGuid | GetCreatorGUID () const override |
| ObjectGuid | GetOwnerGUID () const override |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetPartyGUID () const |
| void | SetPartyGUID (ObjectGuid partyGuid) |
| ObjectGuid | GetGuildGUID () const |
| void | SetGuildGUID (ObjectGuid guildGuid) |
| uint32 | GetDisplayId () const |
| void | SetDisplayId (uint32 displayId) |
| uint8 | GetRace () const |
| void | SetRace (uint8 race) |
| uint8 | GetClass () const |
| void | SetClass (uint8 playerClass) |
| uint8 | GetSex () const |
| void | SetSex (uint8 sex) |
| uint32 | GetFactionTemplate () const |
| void | SetFactionTemplate (int32 factionTemplate) |
| uint32 | GetFaction () const override |
| void | SetFaction (uint32 faction) override |
| uint32 | GetItem (uint32 slot) const |
| void | SetItem (uint32 slot, uint32 item) |
| std::span< UF::ChrCustomizationChoice const > | GetCustomizations () const |
| void | SetCustomizations (std::span< UF::ChrCustomizationChoice const > customizations) |
| time_t const & | GetGhostTime () const |
| void | ResetGhostTime () |
| CorpseType | GetType () const |
| Loot * | GetLootForPlayer (Player const *) const override |
| bool | IsExpired (time_t t) const |
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 |
| PhaseShift & | GetPhaseShift () |
| PhaseShift const & | GetPhaseShift () const |
| PhaseShift & | GetSuppressedPhaseShift () |
| 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 |
| InstanceScript * | GetInstanceScript () 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 () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| ZoneScript * | FindZoneScript () const |
| ZoneScript * | GetZoneScript () const |
| Scenario * | GetScenario () const |
| TempSummon * | SummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr) |
| GameObject * | SummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| Creature * | FindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const |
| GameObject * | FindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const |
| GameObject * | FindNearestUnspawnedGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| Player * | SelectNearestPlayer (float range) const |
| virtual ObjectGuid | GetCharmerOrOwnerGUID () const |
| ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetOwner () const |
| Unit * | GetCharmerOrOwner () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| Player * | GetAffectingPlayer () const |
| Player * | GetSpellModOwner () 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) |
| 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 |
| Unit * | GetMagicHitRedirectTarget (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 |
| TransportBase * | GetTransport () 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 Position const & | GetStationaryPosition () 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 |
| SmoothPhasing * | GetOrCreateSmoothPhasing () |
| SmoothPhasing * | GetSmoothPhasing () |
| 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 |
| WorldObject * | ToWorldObject () |
| WorldObject const * | ToWorldObject () const |
| Item * | ToItem () |
| Item const * | ToItem () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| SceneObject * | ToSceneObject () |
| SceneObject const * | ToSceneObject () const |
| Conversation * | ToConversation () |
| Conversation const * | ToConversation () const |
| Trinity::unique_weak_ptr< Object > | GetWeakPtr () 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 |
| ByteBuffer & | PrepareValuesUpdateBuffer (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< Corpse > | |
| virtual | ~GridObject () |
| bool | IsInGrid () const |
| void | AddToGrid (GridRefManager< Corpse > &m) |
| void | RemoveFromGrid () |
Static Public Member Functions | |
| static void | DeleteFromDB (ObjectGuid const &ownerGuid, CharacterDatabaseTransaction trans) |
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 WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static GameObject * | ToGameObject (Object *o) |
| static GameObject const * | ToGameObject (Object const *o) |
| static Corpse * | ToCorpse (Object *o) |
| static Corpse const * | ToCorpse (Object const *o) |
| static DynamicObject * | ToDynObject (Object *o) |
| static DynamicObject const * | ToDynObject (Object const *o) |
| static AreaTrigger * | ToAreaTrigger (Object *o) |
| static AreaTrigger const * | ToAreaTrigger (Object const *o) |
| static SceneObject * | ToSceneObject (Object *o) |
| static SceneObject const * | ToSceneObject (Object const *o) |
| static Conversation * | ToConversation (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) |
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 |
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 | IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) 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 () |
Private Attributes | |
| CorpseType | m_type |
| time_t | m_time |
Additional Inherited Members | |
Static Protected Member Functions inherited from BaseEntity | |
| static void | BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments) |
Protected Attributes inherited from WorldObject | |
| std::string | m_name |
| bool | m_isActive |
| bool | m_isFarVisible |
| Optional< float > | m_visibilityDistanceOverride |
| bool const | m_isStoredInWorldObjectGridContainer |
| ZoneScript * | m_zoneScript |
| TransportBase * | m_transport |
| uint32 | m_zoneId |
| uint32 | m_areaId |
| float | m_staticFloorZ |
| bool | m_outdoors |
| ZLiquidStatus | m_liquidStatus |
| Optional< WmoLocation > | m_currentWmo |
Protected Attributes inherited from BaseEntity | |
| TypeID | m_objectTypeId = NUM_CLIENT_OBJECT_TYPES |
| CreateObjectBits | m_updateFlag = {} |
| WowCS::EntityFragmentsHolder | m_entityFragments |
| bool | m_objectUpdated = false |
|
explicit |
Definition at line 34 of file Corpse.cpp.
References WowCS::EntityFragmentsHolder::Add(), GameTime::GetGameTime(), lootRecipient, BaseEntity::m_entityFragments, BaseEntity::m_objectTypeId, m_time, BaseEntity::m_updateFlag, CreateObjectBits::Stationary, WowCS::Tag_Corpse, and TYPEID_CORPSE.
| Corpse::~Corpse | ( | ) |
Definition at line 47 of file Corpse.cpp.
|
overridevirtual |
Reimplemented from BaseEntity.
Definition at line 49 of file Corpse.cpp.
References Object::AddToWorld(), WorldObject::GetMap(), Map::GetObjectsStore(), TypeListContainer< UnderlyingContainer, Types >::Insert(), and BaseEntity::IsInWorld().
|
overrideprotectedvirtual |
Implements Object.
Definition at line 240 of file Corpse.cpp.
References flags, m_corpseData, and Object::m_objectData.
|
overrideprotectedvirtual |
Implements Object.
Definition at line 246 of file Corpse.cpp.
References flags, UF::UpdateFieldHolder::GetChangedObjectTypeMask(), UF::UpdateFieldHolder::HasChanged(), m_corpseData, Object::m_objectData, BaseEntity::m_values, TYPEID_CORPSE, and TYPEID_OBJECT.
| void Corpse::BuildValuesUpdateForPlayerWithMask | ( | UpdateData * | data, |
| UF::ObjectData::Mask const & | requestedObjectMask, | ||
| UF::CorpseData::Mask const & | requestedCorpseMask, | ||
| Player const * | target, | ||
| bool | ignoreNestedChangesMask | ||
| ) | const |
Definition at line 257 of file Corpse.cpp.
References UpdateData::AddUpdateBlock(), Object::BuildEntityFragmentsForValuesUpdateForPlayerWithMask(), flags, UpdateMask< Bits >::GetBlock(), BaseEntity::GetUpdateFieldFlagsFor(), m_corpseData, Object::m_objectData, BaseEntity::PrepareValuesUpdateBuffer(), ByteBuffer::put(), UpdateMask< Bits >::Set(), TYPEID_CORPSE, TYPEID_OBJECT, and ByteBuffer::wpos().
Referenced by Corpse::ValuesUpdateForPlayerWithMaskSender::operator()().
|
overrideprotectedvirtual |
Reimplemented from Object.
Definition at line 296 of file Corpse.cpp.
References UF::UpdateFieldHolder::ClearChangesMask(), Object::ClearValuesChangesMask(), m_corpseData, and BaseEntity::m_values.
| bool Corpse::Create | ( | ObjectGuid::LowType | guidlow, |
| Map * | map | ||
| ) |
Definition at line 67 of file Corpse.cpp.
References BaseEntity::_Create(), and Map::GetId().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
| bool Corpse::Create | ( | ObjectGuid::LowType | guidlow, |
| Player * | owner | ||
| ) |
Definition at line 73 of file Corpse.cpp.
References BaseEntity::_Create(), ASSERT, BaseEntity::GetGUID(), WorldLocation::GetMapId(), WorldObject::GetName(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), PhasingHandler::InheritPhaseShift(), Position::IsPositionValid(), Position::Relocate(), Object::SetObjectScale(), SetOwnerGUID(), and TC_LOG_ERROR.
| void Corpse::DeleteFromDB | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 156 of file Corpse.cpp.
References DeleteFromDB(), and GetOwnerGUID().
Referenced by Map::ConvertCorpseToBones(), DeleteFromDB(), Player::DeleteFromDB(), Player::OfflineResurrect(), and SaveToDB().
|
static |
Definition at line 161 of file Corpse.cpp.
References CHAR_DEL_CORPSE, CHAR_DEL_CORPSE_CUSTOMIZATIONS, CHAR_DEL_CORPSE_PHASES, CharacterDatabase, ObjectGuid::GetCounter(), and PreparedStatementBase::setUInt64().
|
inline |
Definition at line 118 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones(), and SaveToDB().
|
inline |
Definition at line 101 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones(), and SaveToDB().
|
inline |
Definition at line 95 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones(), and SaveToDB().
|
inlineoverridevirtual |
Implements WorldObject.
|
inline |
Definition at line 129 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones().
|
inline |
Definition at line 114 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones(), and SaveToDB().
|
inlineoverridevirtual |
Implements WorldObject.
|
inline |
Definition at line 122 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones().
|
inline |
Definition at line 137 of file Corpse.h.
Referenced by Player::CalculateCorpseReclaimDelay(), and WorldSession::HandleReclaimCorpse().
|
inline |
Definition at line 112 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones().
Definition at line 126 of file Corpse.h.
Referenced by SaveToDB().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 108 of file Corpse.h.
Referenced by Map::AddCorpse(), Spell::CheckEffectTarget(), Map::ConvertCorpseToBones(), DeleteFromDB(), Spell::EffectResurrect(), Spell::EffectResurrectNew(), Spell::EffectSkinPlayerCorpse(), IsExpired(), LoadCorpseFromDB(), Map::RemoveCorpse(), and SaveToDB().
|
inline |
Definition at line 110 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones().
|
inline |
Definition at line 116 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones(), and SaveToDB().
|
inline |
Definition at line 120 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones(), and SaveToDB().
|
inline |
Definition at line 139 of file Corpse.h.
Referenced by Map::AddCorpse(), Player::CalculateCorpseReclaimDelay(), WorldSession::HandleReclaimCorpse(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Map::RemoveCorpse(), and SaveToDB().
|
inline |
|
inline |
| bool Corpse::IsExpired | ( | time_t | t | ) | const |
Definition at line 228 of file Corpse.cpp.
References CORPSE_BONES, DAY, GetOwnerGUID(), m_time, m_type, MINUTE, and sCharacterCache.
| bool Corpse::LoadCorpseFromDB | ( | ObjectGuid::LowType | guid, |
| Field * | fields | ||
| ) |
Definition at line 181 of file Corpse.cpp.
References BaseEntity::_Create(), Field::GetFloat(), BaseEntity::GetGUID(), GetOwnerGUID(), Field::GetUInt16(), Field::GetUInt32(), Position::IsPositionValid(), m_corpseData, m_time, Position::Relocate(), ReplaceAllCorpseDynamicFlags(), ReplaceAllCorpseFlags(), sChrRacesStore, SetClass(), SetDisplayId(), SetFactionTemplate(), SetItem(), WorldObject::SetLocationInstanceId(), WorldObject::SetLocationMapId(), Object::SetObjectScale(), SetOwnerGUID(), SetRace(), SetSex(), TC_LOG_ERROR, Trinity::Tokenize(), and Position::ToString().
Referenced by Map::LoadCorpseData().
|
inline |
Definition at line 104 of file Corpse.h.
References UF::CorpseData::DynamicFlags, m_corpseData, and BaseEntity::RemoveUpdateFieldFlagValue().
Referenced by WorldSession::DoLootRelease().
|
inline |
Definition at line 98 of file Corpse.h.
References flags, UF::CorpseData::Flags, m_corpseData, and BaseEntity::RemoveUpdateFieldFlagValue().
|
overridevirtual |
Reimplemented from BaseEntity.
Definition at line 58 of file Corpse.cpp.
References WorldObject::GetMap(), Map::GetObjectsStore(), BaseEntity::IsInWorld(), TypeListContainer< UnderlyingContainer, Types >::Remove(), and WorldObject::RemoveFromWorld().
Referenced by Map::RemoveCorpse().
|
inline |
Definition at line 105 of file Corpse.h.
References UF::CorpseData::DynamicFlags, m_corpseData, and BaseEntity::SetUpdateFieldValue().
Referenced by Map::ConvertCorpseToBones(), and LoadCorpseFromDB().
|
inline |
Definition at line 99 of file Corpse.h.
References flags, UF::CorpseData::Flags, m_corpseData, and BaseEntity::SetUpdateFieldValue().
Referenced by Map::ConvertCorpseToBones(), Player::CreateCorpse(), and LoadCorpseFromDB().
| void Corpse::ResetGhostTime | ( | ) |
Definition at line 176 of file Corpse.cpp.
References GameTime::GetGameTime(), and m_time.
Referenced by Player::BuildPlayerRepop().
| void Corpse::SaveToDB | ( | ) |
Definition at line 104 of file Corpse.cpp.
References CHAR_INS_CORPSE, CHAR_INS_CORPSE_CUSTOMIZATIONS, CHAR_INS_CORPSE_PHASES, CharacterDatabase, DeleteFromDB(), GetClass(), GetCorpseDynamicFlags(), GetCorpseFlags(), ObjectGuid::GetCounter(), GetDisplayId(), WorldObject::GetInstanceId(), GetItem(), WorldLocation::GetMapId(), Position::GetOrientation(), GetOwnerGUID(), PhaseShift::GetPhases(), WorldObject::GetPhaseShift(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetRace(), GetSex(), GetType(), m_corpseData, m_time, PreparedStatementBase::setFloat(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by Player::CreateCorpse().
|
inline |
Definition at line 119 of file Corpse.h.
References UF::CorpseData::Class, m_corpseData, and BaseEntity::SetUpdateFieldValue().
Referenced by Map::ConvertCorpseToBones(), Player::CreateCorpse(), and LoadCorpseFromDB().
|
inline |
Definition at line 103 of file Corpse.h.
References UF::CorpseData::DynamicFlags, m_corpseData, and BaseEntity::SetUpdateFieldFlagValue().
Referenced by Player::RemovedInsignia().
|
inline |
Definition at line 97 of file Corpse.h.
References flags, UF::CorpseData::Flags, m_corpseData, and BaseEntity::SetUpdateFieldFlagValue().
|
inline |
Definition at line 130 of file Corpse.h.
References BaseEntity::AddDynamicUpdateFieldValue(), BaseEntity::ClearDynamicUpdateFieldValues(), UF::CorpseData::Customizations, and m_corpseData.
Referenced by Map::ConvertCorpseToBones(), Player::CreateCorpse(), and Map::LoadCorpseData().
|
inline |
Definition at line 115 of file Corpse.h.
References UF::CorpseData::DisplayID, m_corpseData, and BaseEntity::SetUpdateFieldValue().
Referenced by Map::ConvertCorpseToBones(), Player::CreateCorpse(), and LoadCorpseFromDB().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
|
inline |
Definition at line 123 of file Corpse.h.
References UF::CorpseData::FactionTemplate, m_corpseData, and BaseEntity::SetUpdateFieldValue().
Referenced by Map::ConvertCorpseToBones(), Player::CreateCorpse(), and LoadCorpseFromDB().
|
inline |
Definition at line 113 of file Corpse.h.
References UF::CorpseData::GuildGUID, m_corpseData, and BaseEntity::SetUpdateFieldValue().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
Definition at line 127 of file Corpse.h.
References UF::CorpseData::Items, m_corpseData, and BaseEntity::SetUpdateFieldValue().
Referenced by Player::CreateCorpse(), and LoadCorpseFromDB().
|
inline |
Definition at line 109 of file Corpse.h.
References m_corpseData, UF::CorpseData::Owner, and BaseEntity::SetUpdateFieldValue().
Referenced by Map::ConvertCorpseToBones(), Create(), and LoadCorpseFromDB().
|
inline |
Definition at line 111 of file Corpse.h.
References m_corpseData, UF::CorpseData::PartyGUID, and BaseEntity::SetUpdateFieldValue().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
|
inline |
Definition at line 117 of file Corpse.h.
References m_corpseData, UF::CorpseData::RaceID, and BaseEntity::SetUpdateFieldValue().
Referenced by Map::ConvertCorpseToBones(), Player::CreateCorpse(), and LoadCorpseFromDB().
|
inline |
Definition at line 121 of file Corpse.h.
References m_corpseData, BaseEntity::SetUpdateFieldValue(), and UF::CorpseData::Sex.
Referenced by Map::ConvertCorpseToBones(), Player::CreateCorpse(), and LoadCorpseFromDB().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 96 of file Corpse.cpp.
References m_loot, and WorldObject::Update().
| Player* Corpse::lootRecipient |
Definition at line 144 of file Corpse.h.
Referenced by Corpse(), and Player::RemovedInsignia().
| UF::UpdateField<UF::CorpseData, int32(WowCS::EntityFragment::CGObject), TYPEID_CORPSE> Corpse::m_corpseData |
Definition at line 148 of file Corpse.h.
Referenced by BuildValuesCreate(), BuildValuesUpdate(), BuildValuesUpdateForPlayerWithMask(), ClearValuesChangesMask(), LoadCorpseFromDB(), RemoveCorpseDynamicFlag(), RemoveCorpseFlag(), ReplaceAllCorpseDynamicFlags(), ReplaceAllCorpseFlags(), SaveToDB(), SetClass(), SetCorpseDynamicFlag(), SetCorpseFlag(), SetCustomizations(), SetDisplayId(), SetFactionTemplate(), SetGuildGUID(), SetItem(), SetOwnerGUID(), SetPartyGUID(), SetRace(), and SetSex().
| std::unique_ptr<Loot> Corpse::m_loot |
Definition at line 141 of file Corpse.h.
Referenced by WorldSession::DoLootRelease(), Player::RemovedInsignia(), and Update().
|
private |
Definition at line 152 of file Corpse.h.
Referenced by Corpse(), IsExpired(), LoadCorpseFromDB(), ResetGhostTime(), and SaveToDB().
|
private |
Definition at line 151 of file Corpse.h.
Referenced by IsExpired().