TrinityCore
|
#include <Object.h>
Public Member Functions | |
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 |
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 (float x, float y, float minRange, float maxRange) const |
bool | IsInRange3d (float x, float y, float z, float minRange, float maxRange) const |
bool | isInFront (WorldObject const *target, float arc=float(M_PI)) const |
bool | isInBack (WorldObject const *target, float arc=float(M_PI)) const |
bool | IsInBetween (Position const &pos1, Position const &pos2, float size=0) const |
bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
virtual void | CleanupsBeforeDelete (bool finalCleanup=true) |
virtual void | SendMessageToSet (WorldPacket const *data, bool self) const |
virtual void | SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const |
virtual void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const |
void | SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const |
virtual uint8 | GetLevelForTarget (WorldObject const *) const |
void | PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const |
void | StopDistanceSound (Player const *target=nullptr) const |
void | PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const |
void | PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const |
void | PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const |
void | AddObjectToRemoveList () |
float | GetGridActivationRange () const |
float | GetVisibilityRange () const |
float | GetSightRange (WorldObject const *target=nullptr) const |
bool | CanSeeOrDetect (WorldObject const *obj, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) const |
virtual void | SetMap (Map *map) |
virtual void | ResetMap () |
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 | GetCreatorGUID () const =0 |
virtual ObjectGuid | GetOwnerGUID () const =0 |
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 (Unit const *target, SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr, float *variance=nullptr, uint32 castItemId=0, int32 itemLevel=-1) const |
float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
double | ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, double value) const |
int32 | CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const |
int32 | ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const |
void | ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const |
void | ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const |
virtual float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const |
virtual SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) const |
void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
virtual uint32 | GetFaction () const =0 |
virtual void | SetFaction (uint32) |
FactionTemplateEntry const * | GetFactionTemplateEntry () const |
ReputationRank | GetReactionTo (WorldObject const *target) const |
bool | IsHostileTo (WorldObject const *target) const |
bool | IsHostileToPlayers () const |
bool | IsFriendlyTo (WorldObject const *target) const |
bool | IsNeutralToAll () const |
SpellCastResult | CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ }) |
void | SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
void | SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
void | SendCancelOrphanSpellVisual (uint32 id) |
bool | IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
bool | IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
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 float | GetStationaryX () const |
virtual float | GetStationaryY () const |
virtual float | GetStationaryZ () const |
virtual float | GetStationaryO () const |
float | GetFloorZ () const |
virtual float | GetCollisionHeight () const |
float | GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const |
float | GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const |
std::string | GetDebugInfo () const override |
virtual uint16 | GetAIAnimKitId () const |
virtual uint16 | GetMovementAnimKitId () const |
virtual uint16 | GetMeleeAnimKitId () const |
bool | IsPrivateObject () const |
ObjectGuid | GetPrivateObjectOwner () const |
void | SetPrivateObjectOwner (ObjectGuid const &owner) |
bool | CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const |
SmoothPhasing * | GetOrCreateSmoothPhasing () |
SmoothPhasing * | GetSmoothPhasing () |
SmoothPhasing const * | GetSmoothPhasing () const |
Public Member Functions inherited from Object | |
virtual | ~Object () |
bool | IsInWorld () const |
virtual void | AddToWorld () |
virtual void | RemoveFromWorld () |
ObjectGuid const & | GetGUID () const |
uint32 | GetEntry () const |
void | SetEntry (uint32 entry) |
float | GetObjectScale () const |
virtual void | SetObjectScale (float scale) |
uint32 | GetDynamicFlags () const |
bool | HasDynamicFlag (uint32 flag) const |
void | SetDynamicFlag (uint32 flag) |
void | RemoveDynamicFlag (uint32 flag) |
void | ReplaceAllDynamicFlags (uint32 flag) |
TypeID | GetTypeId () const |
bool | isType (uint16 mask) const |
virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
void | SendUpdateToPlayer (Player *player) |
void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
void | BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const |
void | BuildDestroyUpdateBlock (UpdateData *data) const |
void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
ByteBuffer & | PrepareValuesUpdateBuffer (UpdateData *data) const |
virtual void | DestroyForPlayer (Player *target) const |
void | SendOutOfRangeForPlayer (Player *target) const |
virtual void | ClearUpdateMask (bool remove) |
virtual std::string | GetNameForLocaleIdx (LocaleConstant locale) const =0 |
virtual bool | hasQuest (uint32) const |
virtual bool | hasInvolvedQuest (uint32) const |
void | SetIsNewObject (bool enable) |
bool | IsDestroyedObject () const |
void | SetDestroyedObject (bool destroyed) |
virtual void | BuildUpdate (UpdateDataMapType &) |
void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
bool | IsWorldObject () const |
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 |
bool | IsAreaTrigger () const |
AreaTrigger * | ToAreaTrigger () |
AreaTrigger const * | ToAreaTrigger () const |
bool | IsSceneObject () const |
SceneObject * | ToSceneObject () |
SceneObject const * | ToSceneObject () const |
bool | IsConversation () const |
Conversation * | ToConversation () |
Conversation const * | ToConversation () const |
template<typename T > | |
void | ForceUpdateFieldChange (UF::UpdateFieldSetter< T > const &) |
virtual std::string | GetDebugInfo () const |
Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
virtual Loot * | GetLootForPlayer (Player const *player) const |
virtual void | BuildValuesUpdateWithFlag (ByteBuffer *data, UF::UpdateFieldFlag flags, Player const *target) const |
Public Member Functions inherited from WorldLocation | |
constexpr | WorldLocation (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) |
constexpr | WorldLocation (uint32 mapId, Position const &position) |
constexpr void | WorldRelocate (WorldLocation const &loc) |
constexpr void | WorldRelocate (WorldLocation const *loc) |
constexpr void | WorldRelocate (uint32 mapId, Position const &pos) |
constexpr void | WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) |
constexpr WorldLocation | GetWorldLocation () const |
constexpr uint32 | GetMapId () const |
std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
constexpr | Position (float x=0, float y=0, float z=0, float o=0) |
bool | operator== (Position const &a) const |
constexpr void | Relocate (float x, float y) |
constexpr void | Relocate (float x, float y, float z) |
constexpr void | Relocate (float x, float y, float z, float o) |
constexpr void | Relocate (Position const &pos) |
constexpr void | Relocate (Position const *pos) |
void | RelocateOffset (Position const &offset) |
constexpr void | SetOrientation (float orientation) |
constexpr float | GetPositionX () const |
constexpr float | GetPositionY () const |
constexpr float | GetPositionZ () const |
constexpr float | GetOrientation () const |
constexpr void | GetPosition (float &x, float &y) const |
constexpr void | GetPosition (float &x, float &y, float &z) const |
constexpr void | GetPosition (float &x, float &y, float &z, float &o) const |
constexpr Position | GetPosition () const |
Streamer< XY > | PositionXYStream () |
ConstStreamer< XY > | PositionXYStream () const |
Streamer< XYZ > | PositionXYZStream () |
ConstStreamer< XYZ > | PositionXYZStream () const |
Streamer< XYZO > | PositionXYZOStream () |
ConstStreamer< XYZO > | PositionXYZOStream () const |
Streamer< PackedXYZ > | PositionPackedXYZStream () |
ConstStreamer< PackedXYZ > | PositionPackedXYZStream () const |
bool | IsPositionValid () const |
constexpr float | GetExactDist2dSq (const float x, const float y) const |
constexpr float | GetExactDist2dSq (Position const &pos) const |
constexpr float | GetExactDist2dSq (Position const *pos) const |
float | GetExactDist2d (const float x, const float y) const |
float | GetExactDist2d (Position const &pos) const |
float | GetExactDist2d (Position const *pos) const |
constexpr float | GetExactDistSq (float x, float y, float z) const |
constexpr float | GetExactDistSq (Position const &pos) const |
constexpr float | GetExactDistSq (Position const *pos) const |
float | GetExactDist (float x, float y, float z) const |
float | GetExactDist (Position const &pos) const |
float | GetExactDist (Position const *pos) const |
void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
Position | GetPositionWithOffset (Position const &offset) const |
float | GetAbsoluteAngle (float x, float y) const |
float | GetAbsoluteAngle (Position const &pos) const |
float | GetAbsoluteAngle (Position const *pos) const |
float | ToAbsoluteAngle (float relAngle) const |
float | ToRelativeAngle (float absAngle) const |
float | GetRelativeAngle (float x, float y) const |
float | GetRelativeAngle (Position const &pos) const |
float | GetRelativeAngle (Position const *pos) const |
constexpr bool | IsInDist2d (float x, float y, float dist) const |
constexpr bool | IsInDist2d (Position const *pos, float dist) const |
constexpr bool | IsInDist (float x, float y, float z, float dist) const |
constexpr bool | IsInDist (Position const &pos, float dist) const |
constexpr bool | IsInDist (Position const *pos, float dist) const |
bool | IsWithinBox (Position const ¢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 |
Static Public Member Functions | |
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 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 Position | |
static float | NormalizeOrientation (float o) |
Protected Member Functions | |
WorldObject (bool isWorldObject) | |
virtual void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) |
void | SetLocationMapId (uint32 _mapId) |
void | SetLocationInstanceId (uint32 _instanceId) |
virtual bool | CanNeverSee (WorldObject const *obj) const |
virtual bool | CanAlwaysSee (WorldObject const *) const |
virtual bool | IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects=false) const |
virtual bool | IsAlwaysVisibleFor (WorldObject const *seer) const |
virtual bool | IsInvisibleDueToDespawn (WorldObject const *seer) const |
virtual bool | IsAlwaysDetectableFor (WorldObject const *seer) const |
Protected Member Functions inherited from Object | |
Object () | |
void | _Create (ObjectGuid const &guid) |
template<typename T > | |
void | SetUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value) |
template<typename T > | |
void | SetUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type flag) |
template<typename T > | |
void | RemoveUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type flag) |
template<typename T > | |
UF::DynamicUpdateFieldSetter< T >::insert_result | AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter) |
template<typename T > | |
UF::DynamicUpdateFieldSetter< T >::insert_result | InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
template<typename T > | |
void | RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
template<typename T > | |
void | ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter) |
template<typename T > | |
void | RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter) |
template<typename T > | |
void | SetUpdateFieldStatValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value) |
template<typename T > | |
void | ApplyModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type mod, bool apply) |
template<typename T > | |
void | ApplyPercentModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, float percent, bool apply) |
template<typename Action > | |
void | DoWithSuppressingObjectUpdates (Action &&action) |
void | BuildMovementUpdate (ByteBuffer *data, CreateObjectBits flags, Player *target) const |
virtual UF::UpdateFieldFlag | GetUpdateFieldFlagsFor (Player const *target) const |
virtual void | BuildValuesCreate (ByteBuffer *data, Player const *target) const =0 |
virtual void | BuildValuesUpdate (ByteBuffer *data, Player const *target) const =0 |
virtual bool | AddToObjectUpdate ()=0 |
virtual void | RemoveFromObjectUpdate ()=0 |
void | AddToObjectUpdateIfNeeded () |
Protected Attributes | |
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 Object | |
uint16 | m_objectType |
TypeID | m_objectTypeId |
CreateObjectBits | m_updateFlag |
bool | m_objectUpdated |
Private Member Functions | |
virtual bool | _IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D, bool incOwnRadius=true, bool incTargetRadius=true) const |
bool | CanDetect (WorldObject const *obj, bool ignoreStealth, bool checkAlert=false) const |
bool | CanDetectInvisibilityOf (WorldObject const *obj) const |
bool | CanDetectStealthOf (WorldObject const *obj, bool checkAlert=false) const |
Private Attributes | |
Map * | m_currMap |
uint32 | m_InstanceId |
PhaseShift | _phaseShift |
PhaseShift | _suppressedPhaseShift |
int32 | _dbPhase |
uint16 | m_notifyflags |
ObjectGuid | _privateObjectOwner |
std::unique_ptr< SmoothPhasing > | _smoothPhasing |
|
explicitprotected |
|
virtual |
|
privatevirtual |
Reimplemented in GameObject.
Definition at line 1056 of file Object.cpp.
void WorldObject::AddObjectToRemoveList | ( | ) |
Definition at line 1824 of file Object.cpp.
|
inline |
|
overridevirtual |
Implements Object.
Definition at line 3737 of file Object.cpp.
|
overridevirtual |
Reimplemented from Object.
Reimplemented in Pet, Player, SceneObject, and Unit.
Definition at line 1011 of file Object.cpp.
double WorldObject::ApplyEffectModifiers | ( | SpellInfo const * | spellInfo, |
uint8 | effIndex, | ||
double | value | ||
) | const |
Definition at line 2333 of file Object.cpp.
|
overridevirtual |
Reimplemented from Object.
Reimplemented in Transport.
Definition at line 3728 of file Object.cpp.
int32 WorldObject::CalcSpellDuration | ( | SpellInfo const * | spellInfo, |
std::vector< SpellPowerCost > const * | powerCosts | ||
) | const |
Definition at line 2362 of file Object.cpp.
int32 WorldObject::CalculateSpellDamage | ( | Unit const * | target, |
SpellEffectInfo const & | spellEffectInfo, | ||
int32 const * | basePoints = nullptr , |
||
float * | variance = nullptr , |
||
uint32 | castItemId = 0 , |
||
int32 | itemLevel = -1 |
||
) | const |
Definition at line 2297 of file Object.cpp.
|
inlineprotectedvirtual |
|
private |
Definition at line 1615 of file Object.cpp.
|
private |
Definition at line 1644 of file Object.cpp.
|
private |
Definition at line 1668 of file Object.cpp.
|
protectedvirtual |
Reimplemented in Player.
Definition at line 1610 of file Object.cpp.
bool WorldObject::CanSeeOrDetect | ( | WorldObject const * | obj, |
bool | implicitDetect = false , |
||
bool | distanceCheck = false , |
||
bool | checkAlert = false |
||
) | const |
Definition at line 1514 of file Object.cpp.
SpellCastResult WorldObject::CastSpell | ( | CastSpellTargetArg const & | targets, |
uint32 | spellId, | ||
CastSpellExtraArgs const & | args = { } |
||
) |
bool WorldObject::CheckPrivateObjectOwnerVisibility | ( | WorldObject const * | seer | ) | const |
Definition at line 1486 of file Object.cpp.
|
virtual |
Reimplemented in GameObject, Player, Transport, and Unit.
Definition at line 981 of file Object.cpp.
void WorldObject::DestroyForNearbyPlayers | ( | ) |
Definition at line 3623 of file Object.cpp.
|
inline |
Creature * WorldObject::FindNearestCreatureWithOptions | ( | float | range, |
FindCreatureOptions const & | options | ||
) | const |
Definition at line 2157 of file Object.cpp.
GameObject * WorldObject::FindNearestGameObject | ( | uint32 | entry, |
float | range, | ||
bool | spawnedOnly = true |
||
) | const |
Definition at line 2170 of file Object.cpp.
GameObject * WorldObject::FindNearestGameObjectOfType | ( | GameobjectTypes | type, |
float | range | ||
) | const |
Definition at line 2201 of file Object.cpp.
GameObject * WorldObject::FindNearestGameObjectWithOptions | ( | float | range, |
FindGameObjectOptions const & | options | ||
) | const |
Definition at line 2179 of file Object.cpp.
GameObject * WorldObject::FindNearestUnspawnedGameObject | ( | uint32 | entry, |
float | range | ||
) | const |
Definition at line 2192 of file Object.cpp.
ZoneScript * WorldObject::FindZoneScript | ( | ) | const |
Definition at line 1992 of file Object.cpp.
Player * WorldObject::GetAffectingPlayer | ( | ) | const |
Definition at line 2261 of file Object.cpp.
|
inlinevirtual |
Reimplemented in GameObject, and Unit.
Definition at line 779 of file Object.h.
|
inline |
Reimplemented in Unit.
Definition at line 3286 of file Object.cpp.
Unit * WorldObject::GetCharmerOrOwner | ( | ) | const |
Definition at line 2234 of file Object.cpp.
|
inlinevirtual |
ObjectGuid WorldObject::GetCharmerOrOwnerOrOwnGUID | ( | ) | const |
Unit * WorldObject::GetCharmerOrOwnerOrSelf | ( | ) | const |
Definition at line 2244 of file Object.cpp.
Player * WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself | ( | ) | const |
Definition at line 2252 of file Object.cpp.
void WorldObject::GetClosePoint | ( | float & | x, |
float & | y, | ||
float & | z, | ||
float | size, | ||
float | distance2d = 0 , |
||
float | relAngle = 0 |
||
) | const |
Definition at line 3403 of file Object.cpp.
|
inlinevirtual |
|
inlinevirtual |
void WorldObject::GetContactPoint | ( | WorldObject const * | obj, |
float & | x, | ||
float & | y, | ||
float & | z, | ||
float | distance2d = CONTACT_DISTANCE |
||
) | const |
Definition at line 3430 of file Object.cpp.
|
pure virtual |
Implemented in AreaTrigger, Conversation, Corpse, DynamicObject, GameObject, SceneObject, and Unit.
template TC_GAME_API void WorldObject::GetCreatureListWithEntryInGrid | ( | Container & | creatureContainer, |
uint32 | entry, | ||
float | maxSearchRange = 250.0f |
||
) | const |
Definition at line 3312 of file Object.cpp.
template TC_GAME_API void WorldObject::GetCreatureListWithOptionsInGrid | ( | Container & | creatureContainer, |
float | maxSearchRange, | ||
FindCreatureOptions const & | options | ||
) | const |
Definition at line 3320 of file Object.cpp.
|
inline |
|
inline |
|
overridevirtual |
float WorldObject::GetDistance | ( | float | x, |
float | y, | ||
float | z | ||
) | const |
float WorldObject::GetDistance | ( | Position const & | pos | ) | const |
float WorldObject::GetDistance | ( | WorldObject const * | obj | ) | const |
Definition at line 1078 of file Object.cpp.
float WorldObject::GetDistance2d | ( | float | x, |
float | y | ||
) | const |
float WorldObject::GetDistance2d | ( | WorldObject const * | obj | ) | const |
Definition at line 1096 of file Object.cpp.
bool WorldObject::GetDistanceOrder | ( | WorldObject const * | obj1, |
WorldObject const * | obj2, | ||
bool | is3D = true |
||
) | const |
Definition at line 1215 of file Object.cpp.
float WorldObject::GetDistanceZ | ( | WorldObject const * | obj | ) | const |
Definition at line 1048 of file Object.cpp.
|
pure virtual |
Implemented in AreaTrigger, Conversation, Corpse, DynamicObject, GameObject, SceneObject, and Unit.
|
static |
Definition at line 2813 of file Object.cpp.
FactionTemplateEntry const * WorldObject::GetFactionTemplateEntry | ( | ) | const |
Definition at line 2679 of file Object.cpp.
Position WorldObject::GetFirstCollisionPosition | ( | float | dist, |
float | angle | ||
) |
Definition at line 3416 of file Object.cpp.
float WorldObject::GetFloorZ | ( | ) | const |
Definition at line 3755 of file Object.cpp.
template TC_GAME_API void WorldObject::GetGameObjectListWithEntryInGrid | ( | Container & | gameObjectContainer, |
uint32 | entry, | ||
float | maxSearchRange = 250.0f |
||
) | const |
Definition at line 3292 of file Object.cpp.
template TC_GAME_API void WorldObject::GetGameObjectListWithOptionsInGrid | ( | Container & | gameObjectContainer, |
float | maxSearchRange, | ||
FindGameObjectOptions const & | options | ||
) | const |
float WorldObject::GetGridActivationRange | ( | ) | const |
Definition at line 1431 of file Object.cpp.
Definition at line 1152 of file Object.cpp.
void WorldObject::GetHitSpherePointFor | ( | Position const & | dest, |
float & | x, | ||
float & | y, | ||
float & | z | ||
) | const |
|
inline |
InstanceScript * WorldObject::GetInstanceScript | ( | ) | const |
|
inlinevirtual |
Reimplemented in Unit, Creature, and GameObject.
Definition at line 598 of file Object.h.
|
inline |
Definition at line 3249 of file Object.cpp.
float WorldObject::GetMapHeight | ( | float | x, |
float | y, | ||
float | z, | ||
bool | vmap = true , |
||
float | distanceToSearch = 50.0f |
||
) | const |
Definition at line 3777 of file Object.cpp.
float WorldObject::GetMapWaterOrGroundLevel | ( | float | x, |
float | y, | ||
float | z, | ||
float * | ground = nullptr |
||
) | const |
Definition at line 3762 of file Object.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
inlineoverridevirtual |
void WorldObject::GetNearPoint | ( | WorldObject const * | searcher, |
float & | x, | ||
float & | y, | ||
float & | z, | ||
float | distance2d, | ||
float | absAngle | ||
) | const |
Definition at line 3368 of file Object.cpp.
void WorldObject::GetNearPoint2D | ( | WorldObject const * | searcher, |
float & | x, | ||
float & | y, | ||
float | distance, | ||
float | absAngle | ||
) | const |
Definition at line 3339 of file Object.cpp.
Position WorldObject::GetNearPosition | ( | float | dist, |
float | angle | ||
) |
Definition at line 3409 of file Object.cpp.
SmoothPhasing * WorldObject::GetOrCreateSmoothPhasing | ( | ) |
Unit * WorldObject::GetOwner | ( | ) | const |
Definition at line 2229 of file Object.cpp.
|
pure virtual |
Implemented in AreaTrigger, Conversation, Corpse, DynamicObject, GameObject, SceneObject, and Unit.
|
inline |
|
inline |
template TC_GAME_API void WorldObject::GetPlayerListInGrid | ( | Container & | playerContainer, |
float | maxSearchRange, | ||
bool | alive = true |
||
) | const |
Definition at line 3332 of file Object.cpp.
|
inline |
Position WorldObject::GetRandomNearPosition | ( | float | radius | ) |
Definition at line 3423 of file Object.cpp.
void WorldObject::GetRandomPoint | ( | Position const & | srcPos, |
float | distance, | ||
float & | rand_x, | ||
float & | rand_y, | ||
float & | rand_z | ||
) | const |
Definition at line 1331 of file Object.cpp.
ReputationRank WorldObject::GetReactionTo | ( | WorldObject const * | target | ) | const |
Definition at line 2707 of file Object.cpp.
Scenario * WorldObject::GetScenario | ( | ) | const |
Definition at line 2016 of file Object.cpp.
float WorldObject::GetSightRange | ( | WorldObject const * | target = nullptr | ) | const |
Definition at line 1457 of file Object.cpp.
|
inline |
|
inline |
float WorldObject::GetSpellMaxRangeForTarget | ( | Unit const * | target, |
SpellInfo const * | spellInfo | ||
) | const |
Definition at line 2305 of file Object.cpp.
float WorldObject::GetSpellMinRangeForTarget | ( | Unit const * | target, |
SpellInfo const * | spellInfo | ||
) | const |
Definition at line 2319 of file Object.cpp.
Player * WorldObject::GetSpellModOwner | ( | ) | const |
Definition at line 2272 of file Object.cpp.
|
inlinevirtual |
Reimplemented in AreaTrigger, Conversation, GameObject, and SceneObject.
Definition at line 766 of file Object.h.
|
inlinevirtual |
Reimplemented in AreaTrigger, Conversation, GameObject, and SceneObject.
Definition at line 763 of file Object.h.
|
inlinevirtual |
Reimplemented in AreaTrigger, Conversation, GameObject, and SceneObject.
Definition at line 764 of file Object.h.
|
inlinevirtual |
Reimplemented in AreaTrigger, Conversation, GameObject, and SceneObject.
Definition at line 765 of file Object.h.
|
inline |
|
inline |
|
virtual |
Reimplemented in Unit.
Definition at line 3748 of file Object.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
float WorldObject::GetVisibilityRange | ( | ) | const |
Definition at line 1447 of file Object.cpp.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inlineprotectedvirtual |
|
inline |
|
inlineprotectedvirtual |
Reimplemented in GameObject, and Unit.
Definition at line 822 of file Object.h.
|
inline |
bool WorldObject::IsFriendlyTo | ( | WorldObject const * | target | ) | const |
Definition at line 2865 of file Object.cpp.
bool WorldObject::IsHostileTo | ( | WorldObject const * | target | ) | const |
Definition at line 2860 of file Object.cpp.
bool WorldObject::IsHostileToPlayers | ( | ) | const |
bool WorldObject::isInBack | ( | WorldObject const * | target, |
float | arc = float(M_PI) |
||
) | const |
Definition at line 1326 of file Object.cpp.
bool WorldObject::IsInBetween | ( | Position const & | pos1, |
Position const & | pos2, | ||
float | size = 0 |
||
) | const |
Definition at line 1304 of file Object.cpp.
|
inline |
bool WorldObject::isInFront | ( | WorldObject const * | target, |
float | arc = float(M_PI) |
||
) | const |
Definition at line 1321 of file Object.cpp.
bool WorldObject::IsInMap | ( | WorldObject const * | obj | ) | const |
Definition at line 1115 of file Object.cpp.
bool WorldObject::IsInRange | ( | WorldObject const * | obj, |
float | minRange, | ||
float | maxRange, | ||
bool | is3D = true |
||
) | const |
Definition at line 1238 of file Object.cpp.
bool WorldObject::IsInRange2d | ( | float | x, |
float | y, | ||
float | minRange, | ||
float | maxRange | ||
) | const |
bool WorldObject::IsInRange3d | ( | float | x, |
float | y, | ||
float | z, | ||
float | minRange, | ||
float | maxRange | ||
) | const |
|
inlineprotectedvirtual |
Reimplemented in Creature, and GameObject.
Definition at line 823 of file Object.h.
bool WorldObject::IsInWorldPvpZone | ( | ) | const |
Definition at line 1027 of file Object.cpp.
|
inline |
bool WorldObject::IsNeutralToAll | ( | ) | const |
Definition at line 2883 of file Object.cpp.
|
inlineprotectedvirtual |
Reimplemented in AreaTrigger, GameObject, and Player.
Definition at line 821 of file Object.h.
|
inline |
|
inline |
bool WorldObject::IsSelfOrInSameMap | ( | WorldObject const * | obj | ) | const |
Definition at line 1108 of file Object.cpp.
bool WorldObject::IsStoredInWorldObjectGridContainer | ( | ) | const |
Definition at line 911 of file Object.cpp.
bool WorldObject::IsValidAssistTarget | ( | WorldObject const * | target, |
SpellInfo const * | bySpell = nullptr |
||
) | const |
Definition at line 3144 of file Object.cpp.
bool WorldObject::IsValidAttackTarget | ( | WorldObject const * | target, |
SpellInfo const * | bySpell = nullptr |
||
) | const |
Definition at line 2991 of file Object.cpp.
|
inline |
bool WorldObject::IsWithinDist | ( | WorldObject const * | obj, |
float | dist2compare, | ||
bool | is3D = true , |
||
bool | incOwnRadius = true , |
||
bool | incTargetRadius = true |
||
) | const |
Definition at line 1142 of file Object.cpp.
bool WorldObject::IsWithinDist2d | ( | float | x, |
float | y, | ||
float | dist | ||
) | const |
Definition at line 1132 of file Object.cpp.
bool WorldObject::IsWithinDist2d | ( | Position const * | pos, |
float | dist | ||
) | const |
bool WorldObject::IsWithinDist3d | ( | float | x, |
float | y, | ||
float | z, | ||
float | dist | ||
) | const |
Definition at line 1122 of file Object.cpp.
bool WorldObject::IsWithinDist3d | ( | Position const * | pos, |
float | dist | ||
) | const |
bool WorldObject::IsWithinDistInMap | ( | WorldObject const * | obj, |
float | dist2compare, | ||
bool | is3D = true , |
||
bool | incOwnRadius = true , |
||
bool | incTargetRadius = true |
||
) | const |
Definition at line 1147 of file Object.cpp.
bool WorldObject::IsWithinLOS | ( | float | x, |
float | y, | ||
float | z, | ||
LineOfSightChecks | checks = LINEOFSIGHT_ALL_CHECKS , |
||
VMAP::ModelIgnoreFlags | ignoreFlags = VMAP::ModelIgnoreFlags::Nothing |
||
) | const |
Definition at line 1161 of file Object.cpp.
bool WorldObject::IsWithinLOSInMap | ( | WorldObject const * | obj, |
LineOfSightChecks | checks = LINEOFSIGHT_ALL_CHECKS , |
||
VMAP::ModelIgnoreFlags | ignoreFlags = VMAP::ModelIgnoreFlags::Nothing |
||
) | const |
Definition at line 1181 of file Object.cpp.
SpellMissInfo WorldObject::MagicSpellHitResult | ( | Unit * | victim, |
SpellInfo const * | spellInfo | ||
) | const |
Definition at line 2525 of file Object.cpp.
|
virtual |
Reimplemented in Unit.
Definition at line 2520 of file Object.cpp.
|
virtual |
Reimplemented in Unit.
Definition at line 2515 of file Object.cpp.
void WorldObject::ModSpellCastTime | ( | SpellInfo const * | spellInfo, |
int32 & | castTime, | ||
Spell * | spell = nullptr |
||
) | const |
Definition at line 2466 of file Object.cpp.
int32 WorldObject::ModSpellDuration | ( | SpellInfo const * | spellInfo, |
WorldObject const * | target, | ||
int32 | duration, | ||
bool | positive, | ||
uint32 | effectMask | ||
) | const |
Definition at line 2401 of file Object.cpp.
void WorldObject::ModSpellDurationTime | ( | SpellInfo const * | spellInfo, |
int32 & | durationTime, | ||
Spell * | spell = nullptr |
||
) | const |
Definition at line 2490 of file Object.cpp.
void WorldObject::MovePosition | ( | Position & | pos, |
float | dist, | ||
float | angle | ||
) |
Definition at line 3436 of file Object.cpp.
void WorldObject::MovePositionToFirstCollision | ( | Position & | pos, |
float | dist, | ||
float | angle | ||
) |
Definition at line 3482 of file Object.cpp.
Definition at line 3600 of file Object.cpp.
void WorldObject::PlayDirectSound | ( | uint32 | soundId, |
Player const * | target = nullptr , |
||
uint32 | broadcastTextId = 0 |
||
) | const |
Definition at line 3592 of file Object.cpp.
Definition at line 3576 of file Object.cpp.
void WorldObject::PlayObjectSound | ( | int32 | soundKitId, |
ObjectGuid | targetObject, | ||
Player const * | target = nullptr , |
||
int32 | broadcastTextId = 0 |
||
) | const |
Definition at line 3608 of file Object.cpp.
|
protectedvirtual |
Reimplemented in Unit.
Definition at line 999 of file Object.cpp.
|
overridevirtual |
Implements Object.
Definition at line 3743 of file Object.cpp.
|
overridevirtual |
Reimplemented from Object.
Reimplemented in Pet, Player, SceneObject, and Unit.
Definition at line 1017 of file Object.cpp.
|
virtual |
Reimplemented in Player.
Definition at line 1812 of file Object.cpp.
Player * WorldObject::SelectNearestPlayer | ( | float | range | ) | const |
Definition at line 2210 of file Object.cpp.
void WorldObject::SendCancelOrphanSpellVisual | ( | uint32 | id | ) |
void WorldObject::SendCombatLogMessage | ( | WorldPackets::CombatLog::CombatLogServerPacket * | combatLog | ) | const |
Definition at line 1783 of file Object.cpp.
|
virtual |
Reimplemented in Player.
Definition at line 1744 of file Object.cpp.
|
virtual |
Reimplemented in Player.
Definition at line 1757 of file Object.cpp.
|
virtual |
Reimplemented in Player.
Definition at line 1750 of file Object.cpp.
void WorldObject::SendPlayOrphanSpellVisual | ( | ObjectGuid const & | target, |
uint32 | spellVisualId, | ||
float | travelSpeed, | ||
bool | speedAsTime = false , |
||
bool | withSourceOrientation = false |
||
) |
void WorldObject::SendSpellMiss | ( | Unit * | target, |
uint32 | spellID, | ||
SpellMissInfo | missInfo | ||
) |
Definition at line 2670 of file Object.cpp.
void WorldObject::setActive | ( | bool | isActiveObject | ) |
Definition at line 922 of file Object.cpp.
|
inline |
|
inlinevirtual |
Reimplemented in Corpse, GameObject, and Unit.
void WorldObject::SetFarVisible | ( | bool | on | ) |
Definition at line 973 of file Object.cpp.
void WorldObject::SetIsStoredInWorldObjectGridContainer | ( | bool | apply | ) |
Definition at line 903 of file Object.cpp.
|
inlineprotected |
|
inlineprotected |
|
virtual |
Reimplemented in Player.
Definition at line 1794 of file Object.cpp.
|
inline |
|
inline |
|
inline |
void WorldObject::SetVisibilityDistanceOverride | ( | VisibilityDistanceType | type | ) |
Definition at line 945 of file Object.cpp.
void WorldObject::SetZoneScript | ( | ) |
Definition at line 2011 of file Object.cpp.
SpellMissInfo WorldObject::SpellHitResult | ( | Unit * | victim, |
SpellInfo const * | spellInfo, | ||
bool | canReflect = false |
||
) | const |
Definition at line 2621 of file Object.cpp.
void WorldObject::StopDistanceSound | ( | Player const * | target = nullptr | ) | const |
TempSummon * WorldObject::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 * WorldObject::SummonCreature | ( | uint32 | entry, |
Position const & | pos, | ||
TempSummonType | despawnType = TEMPSUMMON_MANUAL_DESPAWN , |
||
Milliseconds | despawnTime = 0s , |
||
uint32 | vehId = 0 , |
||
uint32 | spellId = 0 , |
||
ObjectGuid | privateObjectOwner = ObjectGuid::Empty |
||
) |
void WorldObject::SummonCreatureGroup | ( | uint8 | group, |
std::list< TempSummon * > * | list = nullptr |
||
) |
Summons group of creatures. Should be called only by instances of Creature and GameObject classes.
group | Id of group to summon. |
list | List to store pointers to summoned creatures. |
Definition at line 2131 of file Object.cpp.
GameObject * WorldObject::SummonGameObject | ( | uint32 | entry, |
float | x, | ||
float | y, | ||
float | z, | ||
float | ang, | ||
QuaternionData const & | rot, | ||
Seconds | respawnTime, | ||
GOSummonType | summonType = GO_SUMMON_TIMED_OR_CORPSE_DESPAWN |
||
) |
GameObject * WorldObject::SummonGameObject | ( | uint32 | entry, |
Position const & | pos, | ||
QuaternionData const & | rot, | ||
Seconds | respawnTime, | ||
GOSummonType | summonType = GO_SUMMON_TIMED_OR_CORPSE_DESPAWN |
||
) |
Definition at line 2065 of file Object.cpp.
TempSummon * WorldObject::SummonPersonalClone | ( | Position const & | pos, |
TempSummonType | despawnType = TEMPSUMMON_MANUAL_DESPAWN , |
||
Milliseconds | despawnTime = 0s , |
||
uint32 | vehId = 0 , |
||
uint32 | spellId = 0 , |
||
Player * | privateObjectOwner = nullptr |
||
) |
Definition at line 2048 of file Object.cpp.
Creature * WorldObject::SummonTrigger | ( | float | x, |
float | y, | ||
float | z, | ||
float | ang, | ||
Milliseconds | despawnTime, | ||
CreatureAI *(*)(Creature *) | GetAI = nullptr |
||
) |
Definition at line 2106 of file Object.cpp.
|
virtual |
Reimplemented in AreaTrigger, Conversation, Corpse, TempSummon, Pet, SceneObject, Totem, Transport, DynamicObject, GameObject, Creature, Puppet, Player, and Unit.
Definition at line 898 of file Object.cpp.
void WorldObject::UpdateAllowedPositionZ | ( | float | x, |
float | y, | ||
float & | z, | ||
float * | groundZ = nullptr |
||
) | const |
Definition at line 1371 of file Object.cpp.
void WorldObject::UpdateGroundPositionZ | ( | float | x, |
float | y, | ||
float & | z | ||
) | const |
Definition at line 1360 of file Object.cpp.
|
virtual |
Reimplemented in Player, and Unit.
Definition at line 3650 of file Object.cpp.
|
inlinevirtual |
Reimplemented in TempSummon.
|
inlinevirtual |
Reimplemented in TempSummon.
Definition at line 724 of file Object.h.
void WorldObject::UpdatePositionData | ( | ) |
Definition at line 992 of file Object.cpp.
|
private |
|
private |
|
private |
|
private |
|
protected |
EventProcessor WorldObject::m_Events |
FlaggedValuesArray32<int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPES> WorldObject::m_invisibility |
FlaggedValuesArray32<int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPES> WorldObject::m_invisibilityDetect |
|
protected |
|
protected |
MovementInfo WorldObject::m_movementInfo |
FlaggedValuesArray32<int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES> WorldObject::m_serverSideVisibility |
FlaggedValuesArray32<int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES> WorldObject::m_serverSideVisibilityDetect |
FlaggedValuesArray32<int32, uint32, StealthType, TOTAL_STEALTH_TYPES> WorldObject::m_stealth |
FlaggedValuesArray32<int32, uint32, StealthType, TOTAL_STEALTH_TYPES> WorldObject::m_stealthDetect |
|
protected |
|
protected |
|
protected |