![]() |
TrinityCore
|
#include <Corpse.h>
Inheritance diagram for Corpse:Public Member Functions | |
| Corpse (CorpseType type=CORPSE_BONES) | |
| ~Corpse () | |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| bool | Create (ObjectGuid::LowType guidlow) |
| bool | Create (ObjectGuid::LowType guidlow, Player *owner) |
| 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 flag) |
| void | RemoveCorpseDynamicFlag (CorpseDynFlags flag) |
| void | ReplaceAllCorpseDynamicFlags (CorpseDynFlags flag) |
| ObjectGuid | GetOwnerGUID () const override |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetPartyGUID () const |
| void | SetPartyGUID (ObjectGuid partyGuid) |
| uint32 | GetGuildId () const |
| void | SetGuildId (uint32 guildId) |
| uint32 | GetDisplayId () const |
| void | SetDisplayId (uint32 displayId) |
| uint8 | GetRace () const |
| void | SetRace (uint8 race) |
| uint8 | GetSex () const |
| void | SetSex (uint8 sex) |
| uint32 | GetFaction () const override |
| uint32 | GetItem (uint32 slot) const |
| void | SetItem (uint32 slot, uint32 item) |
| uint8 | GetSkinId () const |
| void | SetSkinId (uint8 skin) |
| uint8 | GetFaceId () const |
| void | SetFaceId (uint8 face) |
| uint8 | GetHairStyleId () const |
| void | SetHairStyleId (uint8 hairStyle) |
| uint8 | GetHairColorId () const |
| void | SetHairColorId (uint8 hairColor) |
| uint8 | GetFacialStyle () const |
| void | SetFacialStyle (uint8 facialStyle) |
| time_t const & | GetGhostTime () const |
| void | ResetGhostTime () |
| CorpseType | GetType () const |
| CellCoord const & | GetCellCoord () const |
| void | SetCellCoord (CellCoord const &cellCoord) |
| bool | IsExpired (time_t t) const |
Public Member Functions inherited from WorldObject | |
| virtual | ~WorldObject () |
| virtual void | Update (uint32 diff) |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const |
| void | MovePosition (Position &pos, float dist, float angle) |
| Position | GetNearPosition (float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
| Position | GetFirstCollisionPosition (float dist, float angle) |
| Position | GetRandomNearPosition (float radius) |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| virtual float | GetCombatReach () const |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
| void | GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| Position | GetRandomPoint (Position const &srcPos, float distance) const |
| uint32 | GetInstanceId () const |
| virtual void | SetPhaseMask (uint32 newPhaseMask, bool update) |
| uint32 | GetPhaseMask () const |
| bool | InSamePhase (uint32 phasemask) const |
| bool | InSamePhase (WorldObject const *obj) const |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsInWorldPvpZone () const |
| bool | IsOutdoors () const |
| ZLiquidStatus | GetLiquidStatus () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string newname) |
| std::string const & | 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) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| bool | IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| Position | GetHitSpherePointFor (Position const &dest) const |
| void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (float x, float y, float minRange, float maxRange) const |
| bool | IsInRange3d (float x, float y, float z, float minRange, float maxRange) const |
| bool | isInFront (WorldObject const *target, float arc=float(M_PI)) const |
| bool | isInBack (WorldObject const *target, float arc=float(M_PI)) const |
| bool | IsInBetween (Position const &pos1, Position const &pos2, float size=0) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| virtual void | CleanupsBeforeDelete (bool finalCleanup=true) |
| virtual void | SendMessageToSet (WorldPacket const *data, bool self) const |
| virtual void | SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const |
| virtual void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const |
| virtual uint8 | GetLevelForTarget (WorldObject const *) const |
| void | PlayDistanceSound (uint32 soundId, Player *target=nullptr) |
| void | PlayDirectSound (uint32 soundId, Player *target=nullptr) |
| void | PlayDirectMusic (uint32 musicId, Player *target=nullptr) |
| void | SendObjectDeSpawnAnim (ObjectGuid guid) |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) const |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| void | ClearZoneScript () |
| ZoneScript * | GetZoneScript () 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) |
| 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 distance) 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 |
| int32 | CalculateSpellDamage (SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr) const |
| float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, float value) const |
| int32 | CalcSpellDuration (SpellInfo const *spellInfo) 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, int32 skillDiff, uint32 spellId) const |
| virtual SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) const |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| virtual 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={ }) |
| 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) |
| 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 () |
| 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 |
| Transport * | 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 (Transport *t) |
| virtual float | GetStationaryX () const |
| virtual float | GetStationaryY () const |
| virtual float | GetStationaryZ () const |
| virtual float | GetStationaryO () const |
| float | GetFloorZ () const |
| virtual float | GetCollisionHeight () const |
| float | GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const |
| float | GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const |
| std::string | GetDebugInfo () const override |
| bool | IsPrivateObject () const |
| ObjectGuid | GetPrivateObjectOwner () const |
| void | SetPrivateObjectOwner (ObjectGuid const &owner) |
| bool | CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| bool | IsInWorld () const |
| ObjectGuid | GetGUID () const |
| PackedGuid const & | GetPackGUID () const |
| uint32 | GetEntry () const |
| void | SetEntry (uint32 entry) |
| float | GetObjectScale () const |
| virtual void | SetObjectScale (float scale) |
| virtual uint32 | GetDynamicFlags () const |
| bool | HasDynamicFlag (uint32 flag) const |
| virtual void | SetDynamicFlag (uint32 flag) |
| virtual void | RemoveDynamicFlag (uint32 flag) |
| virtual void | ReplaceAllDynamicFlags (uint32 flag) |
| TypeID | GetTypeId () const |
| bool | isType (uint16 mask) const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | SendUpdateToPlayer (Player *player) |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| void | BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const |
| virtual void | DestroyForPlayer (Player *target, bool onDeath=false) const |
| int32 | GetInt32Value (uint16 index) const |
| uint32 | GetUInt32Value (uint16 index) const |
| uint64 | GetUInt64Value (uint16 index) const |
| float | GetFloatValue (uint16 index) const |
| uint8 | GetByteValue (uint16 index, uint8 offset) const |
| uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
| ObjectGuid | GetGuidValue (uint16 index) const |
| void | SetInt32Value (uint16 index, int32 value) |
| void | SetUInt32Value (uint16 index, uint32 value) |
| void | UpdateUInt32Value (uint16 index, uint32 value) |
| void | SetUInt64Value (uint16 index, uint64 value) |
| void | SetFloatValue (uint16 index, float value) |
| void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
| void | SetUInt16Value (uint16 index, uint8 offset, uint16 value) |
| void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
| void | SetGuidValue (uint16 index, ObjectGuid value) |
| void | SetStatFloatValue (uint16 index, float value) |
| void | SetStatInt32Value (uint16 index, int32 value) |
| bool | AddGuidValue (uint16 index, ObjectGuid value) |
| bool | RemoveGuidValue (uint16 index, ObjectGuid value) |
| void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModUInt16Value (uint16 index, uint8 offset, int16 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | SetFlag (uint16 index, uint32 newFlag) |
| void | RemoveFlag (uint16 index, uint32 oldFlag) |
| void | ToggleFlag (uint16 index, uint32 flag) |
| bool | HasFlag (uint16 index, uint32 flag) const |
| void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
| void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | ToggleByteFlag (uint16 index, uint8 offset, uint8 flag) |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| void | ApplyModByteFlag (uint16 index, uint8 offset, uint8 flag, bool apply) |
| void | SetFlag64 (uint16 index, uint64 newFlag) |
| void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
| void | ToggleFlag64 (uint16 index, uint64 flag) |
| bool | HasFlag64 (uint16 index, uint64 flag) const |
| void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
| void | ClearUpdateMask (bool remove) |
| uint16 | GetValuesCount () const |
| virtual bool | hasQuest (uint32) const |
| virtual bool | hasInvolvedQuest (uint32) const |
| void | SetIsNewObject (bool enable) |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | ForceValuesUpdateAtIndex (uint32) |
| bool | IsWorldObject () const |
| WorldObject * | ToWorldObject () |
| WorldObject const * | ToWorldObject () const |
| bool | IsItem () const |
| Item * | ToItem () |
| Item const * | ToItem () const |
| bool | IsPlayer () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| bool | IsCreature () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| bool | IsUnit () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| bool | IsGameObject () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| bool | IsCorpse () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| bool | IsDynObject () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
Public Member Functions inherited from WorldLocation | |
| WorldLocation () | |
| WorldLocation (uint32 _mapId, float x, float y, float z=0.0f, float o=0.0f) | |
| WorldLocation (uint32 mapId, Position const &position) | |
| void | WorldRelocate (WorldLocation const &loc) |
| void | WorldRelocate (WorldLocation const *loc) |
| void | WorldRelocate (uint32 mapId, Position const &pos) |
| void | WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) |
| WorldLocation | GetWorldLocation () const |
| uint32 | GetMapId () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| Position () | |
| Position (float x, float y, float z=0.0f, float o=0.0f) | |
| bool | operator== (Position const &a) const |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float o) |
| void | Relocate (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetOrientation () const |
| void | GetPosition (float &x, float &y) const |
| void | GetPosition (float &x, float &y, float &z) const |
| void | GetPosition (float &x, float &y, float &z, float &o) const |
| 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 |
| float | GetExactDist2dSq (const float x, const float y) const |
| float | GetExactDist2dSq (Position const &pos) const |
| 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 |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const &pos) const |
| float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | ToAbsoluteAngle (float relAngle) const |
| float | ToRelativeAngle (float absAngle) const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const &pos) const |
| float | GetRelativeAngle (Position const *pos) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const &pos, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const ¢er, float xradius, float yradius, float zradius) const |
| bool | IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Public Member Functions inherited from GridObject< 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 ObjectGuid | GetGUID (Object const *o) |
| 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 Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (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 Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Public Attributes | |
| Loot | loot |
| Player * | lootRecipient |
Public Attributes inherited from WorldObject | |
| FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPES > | m_stealth |
| FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPES > | m_stealthDetect |
| FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPES > | m_invisibility |
| FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPES > | m_invisibilityDetect |
| FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES > | m_serverSideVisibility |
| FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES > | m_serverSideVisibilityDetect |
| uint32 | LastUsedScriptID |
| MovementInfo | m_movementInfo |
| EventProcessor | m_Events |
Public Attributes inherited from WorldLocation | |
| uint32 | m_mapId |
Public Attributes inherited from Position | |
| float | m_positionX |
| float | m_positionY |
| float | m_positionZ |
Private Attributes | |
| CorpseType | m_type |
| time_t | m_time |
| CellCoord | _cellCoord |
|
explicit |
Definition at line 30 of file Corpse.cpp.
References CORPSE_END, GameTime::GetGameTime(), lootRecipient, Object::m_objectType, Object::m_objectTypeId, m_time, Object::m_updateFlag, Object::m_valuesCount, TYPEID_CORPSE, TYPEMASK_CORPSE, UPDATEFLAG_LOWGUID, UPDATEFLAG_POSITION, and UPDATEFLAG_STATIONARY_POSITION.
| Corpse::~Corpse | ( | ) |
Definition at line 44 of file Corpse.cpp.
|
overridevirtual |
Reimplemented from Object.
Definition at line 46 of file Corpse.cpp.
References Object::AddToWorld(), Object::GetGUID(), WorldObject::GetMap(), Map::GetObjectsStore(), TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Insert(), and Object::IsInWorld().
| bool Corpse::Create | ( | ObjectGuid::LowType | guidlow | ) |
Definition at line 64 of file Corpse.cpp.
References Object::_Create().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
| bool Corpse::Create | ( | ObjectGuid::LowType | guidlow, |
| Player * | owner | ||
| ) |
Definition at line 70 of file Corpse.cpp.
References _cellCoord, Object::_Create(), ASSERT, Trinity::ComputeCellCoord(), Object::GetGUID(), WorldObject::GetName(), Position::GetOrientation(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Position::IsPositionValid(), Position::Relocate(), Object::SetObjectScale(), SetOwnerGUID(), WorldObject::SetPhaseMask(), and TC_LOG_ERROR.
| void Corpse::DeleteFromDB | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 128 of file Corpse.cpp.
References DeleteFromDB(), and GetOwnerGUID().
Referenced by Map::ConvertCorpseToBones(), DeleteFromDB(), Player::DeleteFromDB(), Player::OfflineResurrect(), and SaveToDB().
|
static |
Definition at line 133 of file Corpse.cpp.
References CHAR_DEL_CORPSE, CharacterDatabase, ObjectGuid::GetCounter(), and PreparedStatementBase::setUInt32().
|
inline |
Definition at line 112 of file Corpse.h.
Referenced by Map::AddCorpse(), Map::ConvertCorpseToBones(), and Map::RemoveCorpse().
|
inline |
Definition at line 75 of file Corpse.h.
References CORPSE_FIELD_DYNAMIC_FLAGS, and Object::GetUInt32Value().
Referenced by Map::ConvertCorpseToBones(), and SaveToDB().
|
inline |
Definition at line 69 of file Corpse.h.
References CORPSE_FIELD_FLAGS, and Object::GetUInt32Value().
Referenced by Map::ConvertCorpseToBones(), and SaveToDB().
|
inline |
Definition at line 87 of file Corpse.h.
References CORPSE_FIELD_DISPLAY_ID, and Object::GetUInt32Value().
Referenced by Map::ConvertCorpseToBones(), and SaveToDB().
|
inline |
Definition at line 99 of file Corpse.h.
References CORPSE_FIELD_BYTES_2, and Object::GetByteValue().
Referenced by Map::ConvertCorpseToBones().
|
inline |
Definition at line 105 of file Corpse.h.
References CORPSE_FIELD_BYTES_2, and Object::GetByteValue().
Referenced by Map::ConvertCorpseToBones().
|
overridevirtual |
Implements WorldObject.
Definition at line 140 of file Corpse.cpp.
References ChrRacesEntry::FactionID, GetRace(), and sChrRacesStore.
|
inline |
Definition at line 108 of file Corpse.h.
Referenced by Player::CalculateCorpseReclaimDelay(), and WorldSession::HandleReclaimCorpse().
|
inline |
Definition at line 85 of file Corpse.h.
References CORPSE_FIELD_GUILD, and Object::GetUInt32Value().
Referenced by SaveToDB().
|
inline |
Definition at line 103 of file Corpse.h.
References CORPSE_FIELD_BYTES_2, and Object::GetByteValue().
Referenced by Map::ConvertCorpseToBones().
|
inline |
Definition at line 101 of file Corpse.h.
References CORPSE_FIELD_BYTES_2, and Object::GetByteValue().
Referenced by Map::ConvertCorpseToBones().
Definition at line 94 of file Corpse.h.
References CORPSE_FIELD_ITEM, and Object::GetUInt32Value().
Referenced by SaveToDB().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 81 of file Corpse.h.
References CORPSE_FIELD_OWNER, and Object::GetGuidValue().
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 83 of file Corpse.h.
References CORPSE_FIELD_PARTY, and Object::GetGuidValue().
Referenced by Map::ConvertCorpseToBones().
|
inline |
Definition at line 89 of file Corpse.h.
References CORPSE_FIELD_BYTES_1, and Object::GetByteValue().
Referenced by Map::ConvertCorpseToBones(), and GetFaction().
|
inline |
Definition at line 91 of file Corpse.h.
References CORPSE_FIELD_BYTES_1, and Object::GetByteValue().
Referenced by Map::ConvertCorpseToBones().
|
inline |
Definition at line 97 of file Corpse.h.
References CORPSE_FIELD_BYTES_1, and Object::GetByteValue().
Referenced by Map::ConvertCorpseToBones().
|
inline |
Definition at line 110 of file Corpse.h.
Referenced by Map::AddCorpse(), Player::CalculateCorpseReclaimDelay(), WorldSession::HandleReclaimCorpse(), Trinity::AnyDeadUnitObjectInRangeCheck::operator()(), Map::RemoveCorpse(), SaveToDB(), and Player::SendLoot().
|
inline |
Definition at line 76 of file Corpse.h.
References CORPSE_FIELD_DYNAMIC_FLAGS, flags, and Object::GetUInt32Value().
|
inline |
Definition at line 70 of file Corpse.h.
References CORPSE_FIELD_FLAGS, flags, and Object::GetUInt32Value().
Referenced by Spell::CheckEffectTarget().
| bool Corpse::IsExpired | ( | time_t | t | ) | const |
Definition at line 203 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 154 of file Corpse.cpp.
References _cellCoord, Object::_Create(), Trinity::ComputeCellCoord(), CORPSE_FIELD_BYTES_1, CORPSE_FIELD_BYTES_2, EQUIPMENT_SLOT_END, Field::GetFloat(), Object::GetGUID(), GetOwnerGUID(), Position::GetPositionX(), Position::GetPositionY(), Field::GetUInt16(), Field::GetUInt32(), Position::IsPositionValid(), m_time, Position::Relocate(), ReplaceAllCorpseDynamicFlags(), ReplaceAllCorpseFlags(), SetDisplayId(), SetGuildId(), SetItem(), WorldObject::SetLocationInstanceId(), WorldObject::SetLocationMapId(), Object::SetObjectScale(), SetOwnerGUID(), WorldObject::SetPhaseMask(), Object::SetUInt32Value(), TC_LOG_ERROR, Trinity::Tokenize(), and Position::ToString().
Referenced by Map::LoadCorpseData().
|
inline |
Definition at line 78 of file Corpse.h.
References CORPSE_FIELD_DYNAMIC_FLAGS, and Object::RemoveFlag().
Referenced by WorldSession::DoLootRelease().
|
inline |
Definition at line 72 of file Corpse.h.
References CORPSE_FIELD_FLAGS, flags, and Object::RemoveFlag().
|
overridevirtual |
Reimplemented from Object.
Definition at line 55 of file Corpse.cpp.
References Object::GetGUID(), WorldObject::GetMap(), Map::GetObjectsStore(), Object::IsInWorld(), TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Remove(), and WorldObject::RemoveFromWorld().
Referenced by Map::RemoveCorpse().
|
inline |
Definition at line 79 of file Corpse.h.
References CORPSE_FIELD_DYNAMIC_FLAGS, and Object::SetUInt32Value().
Referenced by Map::ConvertCorpseToBones(), and LoadCorpseFromDB().
|
inline |
Definition at line 73 of file Corpse.h.
References CORPSE_FIELD_FLAGS, flags, and Object::SetUInt32Value().
Referenced by Map::ConvertCorpseToBones(), Player::CreateCorpse(), and LoadCorpseFromDB().
| void Corpse::ResetGhostTime | ( | ) |
Definition at line 149 of file Corpse.cpp.
References GameTime::GetGameTime(), and m_time.
Referenced by Player::BuildPlayerRepop().
| void Corpse::SaveToDB | ( | ) |
Definition at line 94 of file Corpse.cpp.
References CHAR_INS_CORPSE, CharacterDatabase, CORPSE_FIELD_BYTES_1, CORPSE_FIELD_BYTES_2, DeleteFromDB(), EQUIPMENT_SLOT_END, GetCorpseDynamicFlags(), GetCorpseFlags(), GetDisplayId(), GetGuildId(), WorldObject::GetInstanceId(), GetItem(), WorldLocation::GetMapId(), Position::GetOrientation(), GetOwnerGUID(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetType(), Object::GetUInt32Value(), m_time, PreparedStatementBase::setFloat(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by Player::CreateCorpse().
|
inline |
Definition at line 113 of file Corpse.h.
Referenced by Map::ConvertCorpseToBones().
|
inline |
Definition at line 77 of file Corpse.h.
References CORPSE_FIELD_DYNAMIC_FLAGS, and Object::SetFlag().
Referenced by Player::RemovedInsignia().
|
inline |
Definition at line 71 of file Corpse.h.
References CORPSE_FIELD_FLAGS, flags, and Object::SetFlag().
|
inline |
Definition at line 88 of file Corpse.h.
References CORPSE_FIELD_DISPLAY_ID, and Object::SetUInt32Value().
Referenced by Map::ConvertCorpseToBones(), Player::CreateCorpse(), and LoadCorpseFromDB().
|
inline |
Definition at line 100 of file Corpse.h.
References CORPSE_FIELD_BYTES_2, and Object::SetByteValue().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
|
inline |
Definition at line 106 of file Corpse.h.
References CORPSE_FIELD_BYTES_2, and Object::SetByteValue().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
|
inline |
Definition at line 86 of file Corpse.h.
References CORPSE_FIELD_GUILD, and Object::SetUInt32Value().
Referenced by Player::CreateCorpse(), and LoadCorpseFromDB().
|
inline |
Definition at line 104 of file Corpse.h.
References CORPSE_FIELD_BYTES_2, and Object::SetByteValue().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
|
inline |
Definition at line 102 of file Corpse.h.
References CORPSE_FIELD_BYTES_2, and Object::SetByteValue().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
Definition at line 95 of file Corpse.h.
References CORPSE_FIELD_ITEM, and Object::SetUInt32Value().
Referenced by Player::CreateCorpse(), and LoadCorpseFromDB().
|
inline |
Definition at line 82 of file Corpse.h.
References CORPSE_FIELD_OWNER, and Object::SetGuidValue().
Referenced by Map::ConvertCorpseToBones(), Create(), and LoadCorpseFromDB().
|
inline |
Definition at line 84 of file Corpse.h.
References CORPSE_FIELD_PARTY, and Object::SetGuidValue().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
|
inline |
Definition at line 90 of file Corpse.h.
References CORPSE_FIELD_BYTES_1, and Object::SetByteValue().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
|
inline |
Definition at line 92 of file Corpse.h.
References CORPSE_FIELD_BYTES_1, and Object::SetByteValue().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
|
inline |
Definition at line 98 of file Corpse.h.
References CORPSE_FIELD_BYTES_1, and Object::SetByteValue().
Referenced by Map::ConvertCorpseToBones(), and Player::CreateCorpse().
|
private |
Definition at line 123 of file Corpse.h.
Referenced by Create(), and LoadCorpseFromDB().
| Loot Corpse::loot |
Definition at line 115 of file Corpse.h.
Referenced by WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMoneyOpcode(), Player::RemovedInsignia(), and Player::SendLoot().
| Player* Corpse::lootRecipient |
Definition at line 116 of file Corpse.h.
Referenced by Corpse(), Player::RemovedInsignia(), and Player::SendLoot().
|
private |
Definition at line 122 of file Corpse.h.
Referenced by Corpse(), IsExpired(), LoadCorpseFromDB(), ResetGhostTime(), and SaveToDB().
|
private |
Definition at line 121 of file Corpse.h.
Referenced by IsExpired().