![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Transport.h"
Public Member Functions | |
| StaticTransport () | |
| ~StaticTransport () override | |
| bool | LoadFromDB (ObjectGuid::LowType guid, Map *map) override |
| bool | LoadGameObjectFromDB (ObjectGuid::LowType guid, Map *map, bool addToMap=true) override |
| bool | Create (ObjectGuid::LowType guidlow, uint32 name_id, Map *map, uint32 phaseMask, float x, float y, float z, float ang, G3D::Quat const &rotation, uint32 animprogress, GOState go_state, uint32 artKit=0) override |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| void | BuildUpdate (UpdateDataMapType &data_map) override |
| void | Update (uint32 diff) override |
| void | RelocateToProgress (uint32 progress) |
| void | UpdatePosition (float x, float y, float z, float o) |
| void | UpdatePassengerPositions () |
| void | AddPassenger (WorldObject *passenger, bool withAll=false) override |
| void | RemovePassenger (WorldObject *passenger, bool withAll=false) override |
| uint32 | GetPauseTime () const |
| void | SetPauseTime (uint32 val) |
| uint32 | GetPeriod () const |
Public Member Functions inherited from Transport | |
| Transport () | |
| void | CalculatePassengerPosition (float &x, float &y, float &z, float *o=nullptr) const override |
| This method transforms supplied transport offsets into global coordinates. | |
| void | CalculatePassengerOffset (float &x, float &y, float &z, float *o=nullptr) const override |
| This method transforms supplied global coordinates into local offsets. | |
| PassengerSet const & | GetPassengers () const |
| virtual void | DelayedUpdate (uint32) |
| uint32 | GetPathProgress () const |
| void | SetPathProgress (uint32 val) |
Public Member Functions inherited from GameObject | |
| GameObject () | |
| ~GameObject () override | |
| void | BuildValuesUpdate (uint8 updateType, ByteBuffer *data, Player *target) override |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| uint32 | GetDynamicFlags () const override |
| void | ReplaceAllDynamicFlags (uint32 flag) override |
| GameObjectTemplate const * | GetGOInfo () const |
| GameObjectTemplateAddon const * | GetTemplateAddon () const |
| GameObjectData const * | GetGameObjectData () const |
| GameObjectValue const * | GetGOValue () const |
| bool | IsTransport () const |
| bool | IsDestructibleBuilding () const |
| ObjectGuid::LowType | GetSpawnId () const |
| void | SetLocalRotationAngles (float z_rot, float y_rot, float x_rot) |
| void | SetLocalRotation (G3D::Quat const &rot) |
| void | SetTransportPathRotation (float qx, float qy, float qz, float qw) |
| G3D::Quat const & | GetLocalRotation () const |
| int64 | GetPackedLocalRotation () const |
| G3D::Quat | GetWorldRotation () const |
| std::string const & | GetNameForLocaleIdx (LocaleConstant locale_idx) const override |
| void | SaveToDB (bool saveAddon=false) |
| void | SaveToDB (uint32 mapid, uint8 spawnMask, uint32 phaseMask, bool saveAddon=false) |
| void | DeleteFromDB () |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetOwnerGUID () const |
| Unit * | GetOwner () const |
| void | SetSpellId (uint32 id) |
| uint32 | GetSpellId () const |
| time_t | GetRespawnTime () const |
| time_t | GetRespawnTimeEx () const |
| void | SetRespawnTime (int32 respawn) |
| void | SetRespawnDelay (int32 respawn) |
| void | Respawn () |
| bool | isSpawned () const |
| bool | isSpawnedByDefault () const |
| void | SetSpawnedByDefault (bool b) |
| uint32 | GetRespawnDelay () const |
| void | Refresh () |
| void | DespawnOrUnsummon (Milliseconds delay=0ms, Seconds forcedRespawnTime=0s) |
| void | Delete () |
| void | GetFishLoot (Loot *fishLoot, Player *lootOwner, bool junk=false) |
| GameobjectTypes | GetGoType () const |
| void | SetGoType (GameobjectTypes type) |
| GOState | GetGoState () const |
| void | SetGoState (GOState state) |
| uint8 | GetGoArtKit () const |
| void | SetGoArtKit (uint8 artkit) |
| uint8 | GetGoAnimProgress () const |
| void | SetGoAnimProgress (uint8 animprogress) |
| void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
| void | EnableCollision (bool enable) |
| GameObjectFlags | GetGameObjectFlags () const |
| bool | HasGameObjectFlag (GameObjectFlags flags) const |
| void | SetGameObjectFlag (GameObjectFlags flags) |
| void | RemoveGameObjectFlag (GameObjectFlags flags) |
| void | ReplaceAllGameObjectFlags (GameObjectFlags flags) |
| void | Use (Unit *user) |
| LootState | getLootState () const |
| void | SetLootState (LootState s, Unit *unit=nullptr) |
| uint16 | GetLootMode () const |
| bool | HasLootMode (uint16 lootMode) const |
| void | SetLootMode (uint16 lootMode) |
| void | AddLootMode (uint16 lootMode) |
| void | RemoveLootMode (uint16 lootMode) |
| void | ResetLootMode () |
| void | AddToSkillupList (ObjectGuid const &playerGuid) |
| bool | IsInSkillupList (ObjectGuid const &playerGuid) const |
| void | AddUniqueUse (Player *player) |
| void | AddUse () |
| uint32 | GetUseCount () const |
| uint32 | GetUniqueUseCount () const |
| void | SaveRespawnTime () override |
| void | SaveRespawnTime (uint32 forceDelay) |
| Player * | GetLootRecipient () const |
| Group * | GetLootRecipientGroup () const |
| void | SetLootRecipient (Creature *creature) |
| void | SetLootRecipient (Map *map) |
| bool | IsLootAllowedFor (Player const *player) const |
| bool | HasLootRecipient () const |
| void | SetLootGenerationTime () |
| uint32 | GetLootGenerationTime () const |
| GameObject * | GetLinkedTrap () |
| void | SetLinkedTrap (GameObject *linkedTrap) |
| bool | hasQuest (uint32 quest_id) const override |
| bool | hasInvolvedQuest (uint32 quest_id) const override |
| bool | ActivateToQuest (Player *target) const |
| void | UseDoorOrButton (uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr) |
| void | ResetDoorOrButton () |
| void | TriggeringLinkedGameObject (uint32 trapEntry, Unit *target) |
| bool | IsNeverVisible () const override |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| bool | IsInvisibleDueToDespawn () const override |
| uint8 | getLevelForTarget (WorldObject const *target) const override |
| GameObject * | LookupFishingHoleAround (float range) |
| void | CastSpell (Unit *target, uint32 spell) |
| void | SendCustomAnim (uint32 anim) |
| bool | IsInRange (float x, float y, float z, float radius) const |
| void | ModifyHealth (int32 change, Unit *attackerOrHealer=nullptr, uint32 spellId=0) |
| void | SetDestructibleBuildingModifyState (bool allow) |
| void | SetDestructibleState (GameObjectDestructibleState state, Player *eventInvoker=nullptr, bool setHealth=false) |
| GameObjectDestructibleState | GetDestructibleState () const |
| void | EventInform (uint32 eventId) |
| virtual uint32 | GetScriptId () const |
| GameObjectAI * | AI () const |
| std::string const & | GetAIName () const |
| void | SetDisplayId (uint32 displayid) |
| uint32 | GetDisplayId () const |
| void | GetRespawnPosition (float &x, float &y, float &z, float *ori=nullptr) const |
| void | SetPosition (float x, float y, float z, float o) |
| void | SetPosition (const Position &pos) |
| bool | IsStaticTransport () const |
| bool | IsMotionTransport () const |
| Transport * | ToTransport () |
| Transport const * | ToTransport () const |
| StaticTransport * | ToStaticTransport () |
| StaticTransport const * | ToStaticTransport () const |
| MotionTransport * | ToMotionTransport () |
| MotionTransport const * | ToMotionTransport () const |
| float | GetStationaryX () const override |
| float | GetStationaryY () const override |
| float | GetStationaryZ () const override |
| float | GetStationaryO () const override |
| float | GetInteractionDistance () const |
| void | UpdateModelPosition () |
| bool | IsAtInteractDistance (Position const &pos, float radius) const |
| bool | IsAtInteractDistance (Player const *player, SpellInfo const *spell=nullptr) const |
| bool | IsWithinDistInMap (Player const *player) const |
| SpellInfo const * | GetSpellForLock (Player const *player) const |
| bool | ValidateGameobjectType () const |
| bool | IsInstanceGameobject () const |
| uint8 | GameobjectStateToInt (GOState *state) const |
| bool | IsAllowedToSaveToDB () const |
| void | AllowSaveToDB (bool enable) |
| void | SaveStateToDB () |
| std::string | GetDebugInfo () const override |
| bool | IsUpdateNeeded () override |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
Public Member Functions inherited from WorldObject | |
| ~WorldObject () override | |
| void | _Create (ObjectGuid::LowType guidlow, HighGuid guidhigh, uint32 phaseMask) |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle, Position const *startPos=nullptr) const |
| void | GetNearPoint2D (float &x, float &y, float distance, float absAngle, Position const *startPos=nullptr) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle, float controlZ=0, Position const *startPos=nullptr) const |
| void | GetVoidClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0, float controlZ=0) const |
| bool | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0, WorldObject const *forWho=nullptr, bool force=false) 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 startX, float startY, float startZ, float destX, float destY) |
| Position | GetFirstCollisionPosition (float destX, float destY, float destZ) |
| 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 |
| void | GetChargeContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| float | GetObjectSize () 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 (const Position &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| Position | GetRandomPoint (const Position &srcPos, float distance) const |
| uint32 | GetInstanceId () const |
| uint32 | GetPhaseMask () const |
| bool | InSamePhase (WorldObject const *obj) const |
| bool | InSamePhase (uint32 phasemask) const |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsOutdoors () const |
| LiquidData const & | GetLiquidData () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string const &newname) |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance (const Position &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 (const Position *pos, float dist) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (const Position *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, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS) const |
| bool | IsWithinLOSInMap (WorldObject const *obj, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const |
| Position | GetHitSpherePointFor (Position const &dest, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const |
| void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) 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=M_PI) const |
| bool | isInBack (WorldObject const *target, float arc=M_PI) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| 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 | PlayDistanceSound (uint32 sound_id, Player *target=nullptr) |
| void | PlayDirectSound (uint32 sound_id, Player *target=nullptr) |
| void | PlayRadiusSound (uint32 sound_id, float radius) |
| void | PlayDirectMusic (uint32 music_id, Player *target=nullptr) |
| void | PlayRadiusMusic (uint32 music_id, float radius) |
| template<typename Worker > | |
| void | DoForAllVisiblePlayers (Worker &&worker) |
| template<typename Worker > | |
| void | DoForAllVisibleWorldObjects (Worker &&worker) |
| void | DestroyForVisiblePlayers () |
| void | SendObjectDeSpawnAnim (ObjectGuid guid) |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| virtual float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false, bool checkAlert=false) const |
| void | SendPlayMusic (uint32 Music, bool OnlySelf) |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| void | ClearZoneScript () |
| ZoneScript * | GetZoneScript () const |
| TempSummon * | SummonCreature (uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const |
| TempSummon * | SummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, uint32 dur, bool setLevel=false, CreatureAI *(*GetAI)(Creature *)=nullptr) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range, bool onlySpawned=false) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| Player * | SelectNearestPlayer (float distance=0) const |
| void | GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| void | GetGameObjectListWithEntryInGrid (std::list< GameObject * > &gameobjectList, std::vector< uint32 > const &entries, float maxSearchRange) const |
| void | GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| void | GetCreatureListWithEntryInGrid (std::list< Creature * > &creatureList, std::vector< uint32 > const &entries, float maxSearchRange) const |
| void | GetDeadCreatureListInGrid (std::list< Creature * > &lList, float maxSearchRange, bool alive=false) const |
| virtual void | UpdateObjectVisibility (bool forced=true, bool fromUpdate=false) |
| virtual void | UpdateObjectVisibilityOnCreate () |
| void | BuildUpdate (UpdateDataMapType &data_map) override |
| void | GetCreaturesWithEntryInRange (std::list< Creature * > &creatureList, float radius, uint32 entry) |
| void | SetPositionDataUpdate () |
| void | UpdatePositionData () |
| void | AddToObjectUpdate () override |
| void | RemoveFromObjectUpdate () override |
| void | AddToNotify (uint16 f) |
| void | RemoveFromNotify (uint16 f) |
| bool | isNeedNotify (uint16 f) const |
| uint16 | GetNotifyFlags () const |
| bool | NotifyExecuted (uint16 f) const |
| void | SetNotified (uint16 f) |
| void | ResetAllNotifies () |
| bool | isActiveObject () const |
| void | setActive (bool isActiveObject) |
| VisibilityDistanceType | GetVisibilityOverrideType () const |
| bool | IsVisibilityOverridden () const |
| bool | IsZoneWideVisible () const |
| bool | IsFarVisible () const |
| float | GetVisibilityOverrideDistance () const |
| void | SetVisibilityDistanceOverride (VisibilityDistanceType type) |
| bool | IsInWintergrasp () const |
| Transport * | GetTransport () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| float | GetTransOffsetO () const |
| uint32 | GetTransTime () const |
| int8 | GetTransSeat () const |
| virtual ObjectGuid | GetTransGUID () const |
| void | SetTransport (Transport *t) |
| float | GetMapWaterOrGroundLevel (Position pos, float *ground=nullptr) 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 |
| float | GetFloorZ () const |
| float | GetMinHeightInWater () const |
| Get the minimum height of a object that should be in water to start floating/swim. | |
| virtual float | GetCollisionHeight () const |
| virtual float | GetCollisionWidth () const |
| virtual float | GetCollisionRadius () const |
| void | AddAllowedLooter (ObjectGuid guid) |
| void | ResetAllowedLooters () |
| void | SetAllowedLooters (GuidUnorderedSet const looters) |
| bool | HasAllowedLooter (ObjectGuid guid) const |
| GuidUnorderedSet const & | GetAllowedLooters () const |
| void | RemoveAllowedLooter (ObjectGuid guid) |
| bool | CanBeAddedToMapUpdateList () |
| std::string | GetDebugInfo () const override |
| ObjectVisibilityContainer & | GetObjectVisibilityContainer () |
| ObjectVisibilityContainer const & | GetObjectVisibilityContainer () 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) |
| bool | HasDynamicFlag (uint32 flag) const |
| virtual void | SetDynamicFlag (uint32 flag) |
| virtual void | RemoveDynamicFlag (uint32 flag) |
| TypeID | GetTypeId () const |
| bool | isType (uint16 mask) const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) |
| void | SendUpdateToPlayer (Player *player) |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) |
| 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 | ApplyModUInt64Value (uint16 index, int32 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | ApplyPercentModFloatValue (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) |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| 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 |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | ForceValuesUpdateAtIndex (uint32) |
| 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 | IsDynamicObject () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| bool | IsItem () const |
| virtual void | Heartbeat () |
| template<typename... T> | |
| bool | EntryEquals (T... entries) const |
Public Member Functions inherited from WorldLocation | |
| WorldLocation (uint32 _mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) | |
| WorldLocation (uint32 mapId, Position const &position) | |
| void | WorldRelocate (const WorldLocation &loc) |
| void | WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) |
| void | SetMapId (uint32 mapId) |
| uint32 | GetMapId () const |
| void | GetWorldLocation (uint32 &mapId, float &x, float &y) const |
| void | GetWorldLocation (uint32 &mapId, float &x, float &y, float &z) const |
| void | GetWorldLocation (uint32 &mapId, float &x, float &y, float &z, float &o) const |
| void | GetWorldLocation (WorldLocation *location) const |
| WorldLocation | GetWorldLocation () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| Position (float x=0, float y=0, float z=0, float o=0) | |
| Position (Position const &loc) | |
| Position (Position &&)=default | |
| Position & | operator= (const Position &)=default |
| Position & | operator= (Position &&)=default |
| bool | operator== (Position const &a) const |
| bool | operator!= (Position const &a) |
| bool | operator!= (Position const &a) const |
| operator G3D::Vector3 () const | |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float orientation) |
| void | Relocate (const Position &pos) |
| void | Relocate (const Position *pos) |
| void | RelocatePolarOffset (float angle, float dist, float z=0.0f) |
| void | RelocateOffset (const Position &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 |
| Position::PositionXYZStreamer | PositionXYZStream () |
| Position::PositionXYZOStreamer | PositionXYZOStream () |
| 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 (const Position &endPos, Position &retOffset) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAngle (const Position *pos) const |
| float | GetAngle (float x, float y) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | GetRelativeAngle (const Position *pos) const |
| float | GetRelativeAngle (float x, float y) const |
| float | ToAbsoluteAngle (float relAngle) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (const Position *pos, float dist) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (const Position *pos, float dist) const |
| bool | IsWithinBox (const Position ¢er, float xradius, float yradius, float zradius) const |
| bool | HasInArc (float arcangle, const Position *pos, float targetRadius=0.0f) const |
| bool | HasInLine (Position const *pos, float width) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Public Member Functions inherited from GridObject< GameObject > | |
| bool | IsInGrid () const |
| void | AddToGrid (GridRefMgr< GameObject > &m) |
| void | RemoveFromGrid () |
Private Attributes | |
| bool | _needDoInitialRelocation |
| StaticTransport::StaticTransport | ( | ) |
References Object::m_updateFlag, UPDATEFLAG_LOWGUID, UPDATEFLAG_ROTATION, UPDATEFLAG_STATIONARY_POSITION, and UPDATEFLAG_TRANSPORT.
|
override |
References Transport::_passengers, and ASSERT.
|
overridevirtual |
Implements Transport.
References Transport::_passengers, Transport::CalculatePassengerOffset(), MovementInfo::flags, Object::GetGUID(), Position::GetPosition(), WorldObject::GetTransport(), MovementInfo::TransportInfo::guid, WorldObject::m_movementInfo, MOVEMENTFLAG_ONTRANSPORT, MovementInfo::TransportInfo::pos, Position::Relocate(), WorldObject::SetTransport(), sScriptMgr, Object::ToPlayer(), GameObject::ToTransport(), and MovementInfo::transport.
|
overridevirtual |
Reimplemented from Object.
References MapRefMgr::begin(), Object::BuildFieldsUpdate(), Object::ClearUpdateMask(), MapRefMgr::end(), WorldObject::GetMap(), Map::GetPlayers(), and LinkedListHead::IsEmpty().
|
overridevirtual |
Reimplemented from GameObject.
References Transport::_passengers, GameObject::CleanupsBeforeDelete(), WorldObject::m_movementInfo, MOVEMENTFLAG_ONTRANSPORT, MovementInfo::RemoveMovementFlag(), RemovePassenger(), MovementInfo::TransportInfo::Reset(), WorldObject::SetTransport(), and MovementInfo::transport.
|
overridevirtual |
Reimplemented from GameObject.
References Object::_Create(), _needDoInitialRelocation, FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::AddFlag(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::AddValue(), GameObject::AIM_Initialize(), GameObjectValue::AnimationInfo, ASSERT, GameObject::CreateModel(), GameObjectTemplate::displayId, GameObjectTemplate::entry, GAMEOBJECT_FACTION, ZoneScript::GetGameObjectEntry(), GameObject::GetGOInfo(), Map::GetId(), Position::GetOrientation(), GameObject::GetTemplateAddon(), GO_STATE_ACTIVE, GO_STATE_READY, Position::IsPositionValid(), WorldObject::LastUsedScriptID, LOG_ERROR, GameObject::m_goInfo, GameObject::m_goValue, WorldObject::m_invisibility, GameObject::m_model, GameObject::m_stationaryPosition, WorldObject::m_zoneScript, MAX_GAMEOBJECT_TYPE, GameObjectTemplate::name, Position::NormalizeOrientation(), GameObjectTemplate::pauseAtTime, Position::Relocate(), GameObject::ReplaceAllGameObjectFlags(), GameObjectTemplate::ScriptId, GameObject::SetDisplayId(), Object::SetEntry(), GameObject::SetGoAnimProgress(), GameObject::SetGoArtKit(), GameObject::SetGoState(), GameObject::SetGoType(), GameObject::SetLocalRotationAngles(), WorldObject::SetMap(), WorldObject::SetName(), Object::SetObjectScale(), Transport::SetPathProgress(), SetPauseTime(), GameObject::SetPhaseMask(), GameObject::SetTransportPathRotation(), Object::SetUInt32Value(), WorldObject::SetZoneScript(), GameObjectTemplate::size, sObjectMgr, GameObjectTemplate::startOpen, sTransportMgr, TransportAnimation::TotalTime, GameObjectValue::Transport, GameObjectTemplate::transport, Transport, GameObjectTemplate::type, and WorldObject::UpdatePositionData().
Referenced by LoadGameObjectFromDB().
|
inline |
|
inline |
References GameObjectValue::AnimationInfo, GetPauseTime(), GameObject::m_goValue, TransportAnimation::TotalTime, and GameObjectValue::Transport.
Referenced by Update().
|
inlineoverridevirtual |
Reimplemented from GameObject.
References LoadGameObjectFromDB().
|
overridevirtual |
Reimplemented from GameObject.
References GameObjectData::animprogress, GameObjectData::artKit, Create(), Map::GenerateLowGuid(), WorldObject::GetMap(), GameObjectData::go_state, GameObjectData::id, LOG_ERROR, GameObject::m_goData, GameObject::m_spawnId, GameObjectData::orientation, GameObjectData::phaseMask, GameObjectData::posX, GameObjectData::posY, GameObjectData::posZ, GameObjectData::rotation, sObjectMgr, and Transport.
Referenced by LoadFromDB(), and GridObjectLoader::LoadGameObjects().
| void StaticTransport::RelocateToProgress | ( | uint32 | progress | ) |
References GameObjectValue::AnimationInfo, GAMEOBJECT_PARENTROTATION, TransportAnimation::GetAnimNode(), TransportAnimation::GetAnimRotation(), Object::GetFloatValue(), GameObject::GetStationaryO(), GameObject::GetStationaryX(), GameObject::GetStationaryY(), GameObject::GetStationaryZ(), Acore::IsValidMapCoord(), GameObject::m_goValue, Position::NormalizeOrientation(), GameObjectValue::Transport, UpdatePosition(), TransportAnimationEntry::X, TransportAnimationEntry::Y, and TransportAnimationEntry::Z.
Referenced by Update().
|
overridevirtual |
Implements Transport.
References Transport::_passengers, ObjectGuid::Clear(), MovementInfo::flags, GameTime::GetGameTime(), MovementInfo::TransportInfo::guid, WorldObject::m_movementInfo, MovementInfo::TransportInfo::pos, Position::Relocate(), WorldObject::SetTransport(), sScriptMgr, Object::ToPlayer(), GameObject::ToTransport(), and MovementInfo::transport.
Referenced by CleanupsBeforeDelete().
|
inline |
|
overridevirtual |
Reimplemented from GameObject.
References _needDoInitialRelocation, GameObjectValue::AnimationInfo, GameObject::GetGoState(), Transport::GetPathProgress(), GetPauseTime(), GetPeriod(), GO_STATE_READY, Object::IsInWorld(), GameObject::m_goValue, RelocateToProgress(), Transport::SetPathProgress(), GameObjectValue::Transport, and GameObject::Update().
| void StaticTransport::UpdatePassengerPositions | ( | ) |
References Transport::_passengers, Transport::CalculatePassengerPosition(), Map::CreatureRelocation(), Map::DynamicObjectRelocation(), Map::GameObjectRelocation(), GameTime::GetGameTime(), WorldObject::GetMap(), Position::GetPosition(), Object::GetTypeId(), Object::IsInWorld(), Acore::IsValidMapCoord(), WorldObject::m_movementInfo, Map::PlayerRelocation(), MovementInfo::TransportInfo::pos, Player::SetFallInformation(), Object::ToCreature(), Object::ToDynObject(), Object::ToGameObject(), Object::ToPlayer(), Object::ToUnit(), MovementInfo::transport, TYPEID_DYNAMICOBJECT, TYPEID_GAMEOBJECT, TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by UpdatePosition().
| void StaticTransport::UpdatePosition | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | o | ||
| ) |
References WorldObject::GetMap(), Map::LoadGrid(), Position::Relocate(), GameObject::UpdateModelPosition(), and UpdatePassengerPositions().
Referenced by RelocateToProgress().