![]() |
TrinityCore
|
#include <Transport.h>
Inheritance diagram for Transport:Public Types | |
| typedef std::set< WorldObject * > | PassengerSet |
Public Member Functions | |
| ~Transport () | |
| bool | Create (ObjectGuid::LowType guidlow, uint32 entry, float x, float y, float z, float ang) |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| void | Update (uint32 diff) override |
| void | BuildUpdate (UpdateDataMapType &data_map) override |
| void | AddPassenger (WorldObject *passenger, Position const &offset) override |
| Transport * | RemovePassenger (WorldObject *passenger) override |
| PassengerSet const & | GetPassengers () const |
| Creature * | CreateNPCPassenger (ObjectGuid::LowType guid, CreatureData const *data) |
| GameObject * | CreateGOPassenger (ObjectGuid::LowType guid, GameObjectData const *data) |
| TempSummon * | SummonPassenger (uint32 entry, Position const &pos, TempSummonType summonType, SummonPropertiesEntry const *properties=nullptr, Milliseconds duration=0ms, Unit *summoner=nullptr, uint32 spellId=0, uint32 vehId=0) |
| Temporarily summons a creature as passenger on this transport. | |
| ObjectGuid | GetTransportGUID () const override |
| float | GetTransportOrientation () const override |
| Position | GetPositionWithOffset (Position const &offset) const override |
| This method transforms supplied transport offsets into global coordinates. | |
| Position | GetPositionOffsetTo (Position const &endPos) const override |
| This method transforms supplied global coordinates into local offsets. | |
| int32 | GetMapIdForSpawning () const override |
| uint32 | GetTransportPeriod () const |
| void | SetPeriod (uint32 period) |
| uint32 | GetTimer () const |
| Optional< uint32 > | GetNextStopTimestamp () const |
| bool | IsStopped () const |
| void | UpdatePosition (float x, float y, float z, float o) |
| void | LoadStaticPassengers () |
| Needed when transport moves from inactive to active grid. | |
| void | UnloadStaticPassengers () |
| Needed when transport enters inactive grid. | |
| void | EnableMovement (bool enabled) |
| void | SetDelayedAddModelToMap () |
| std::string | GetDebugInfo () const override |
| uint32 | GetExpectedMapId () const |
| Returns id of the map that transport is expected to be on, according to current path progress. | |
Public Member Functions inherited from GameObject | |
| GameObject () | |
| ~GameObject () | |
| void | BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::GameObjectData::Mask const &requestedGameObjectMask, Player const *target, bool ignoreNestedChangesMask) const |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| GameObjectTemplate const * | GetGOInfo () const |
| GameObjectTemplateAddon const * | GetTemplateAddon () const |
| GameObjectOverride const * | GetGameObjectOverride () 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 (float qx, float qy, float qz, float qw) |
| void | SetParentRotation (QuaternionData const &rotation) |
| QuaternionData const & | GetLocalRotation () const |
| int64 | GetPackedLocalRotation () const |
| QuaternionData | GetWorldRotation () const |
| std::string | GetNameForLocaleIdx (LocaleConstant locale) const override |
| bool | HasLabel (int32 gameobjectLabel) const |
| std::span< int32 const > | GetLabels () const |
| void | SaveToDB () |
| void | SaveToDB (uint32 mapid, std::vector< Difficulty > const &spawnDifficulties) |
| bool | LoadFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap, bool=true) |
| ObjectGuid | GetCreatorGUID () const override |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetOwnerGUID () const override |
| void | SetSpellId (uint32 id) |
| uint32 | GetSpellId () const |
| time_t | GetRespawnTime () const |
| time_t | GetRespawnTimeEx () const |
| void | SetRespawnTime (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 forceRespawnTime=0s) |
| void | DespawnForPlayer (Player *seer, Seconds respawnTime) |
| void | Delete () |
| void | SendGameObjectDespawn () |
| Loot * | GetFishLoot (Player *lootOwner) |
| Loot * | GetFishLootJunk (Player *lootOwner) |
| bool | HasFlag (GameObjectFlags flags) const |
| void | SetFlag (GameObjectFlags flags) |
| void | RemoveFlag (GameObjectFlags flags) |
| void | ReplaceAllFlags (GameObjectFlags flags) |
| void | SetLevel (uint32 level) |
| GameobjectTypes | GetGoType () const |
| void | SetGoType (GameobjectTypes type) |
| GOState | GetGoState () const |
| void | SetGoState (GOState state) |
| GOState | GetGoStateFor (ObjectGuid const &viewer) const |
| void | SetGoStateFor (GOState state, Player const *viewer) |
| uint32 | GetGoArtKit () const |
| void | SetGoArtKit (uint32 artkit) |
| uint8 | GetGoAnimProgress () const |
| void | SetGoAnimProgress (uint8 animprogress) |
| std::span< uint32 const > | GetPauseTimes () const |
| Optional< float > | GetPathProgressForClient () const |
| void | SetPathProgressForClient (float progress) |
| void | EnableCollision (bool enable) |
| void | Use (Unit *user, bool ignoreCastInProgress=false) |
| 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 | ClearLoot () |
| bool | IsFullyLooted () const |
| void | OnLootRelease (Player *looter) |
| void | AddToSkillupList (ObjectGuid const &PlayerGuidLow) |
| bool | IsInSkillupList (ObjectGuid const &playerGuid) const |
| void | ClearSkillupList () |
| void | AddUniqueUse (Player *player) |
| void | AddUse () |
| uint32 | GetUseCount () const |
| uint32 | GetUniqueUseCount () const |
| void | SaveRespawnTime (uint32 forceDelay=0) |
| GuidUnorderedSet const & | GetTapList () const |
| void | SetTapList (GuidUnorderedSet tapList) |
| bool | IsLootAllowedFor (Player const *player) const |
| bool | HasLootRecipient () const |
| Loot * | GetLootForPlayer (Player const *) const override |
| GameObject * | GetLinkedTrap () |
| void | SetLinkedTrap (GameObject *linkedTrap) |
| bool | hasQuest (uint32 quest_id) const override |
| bool | hasInvolvedQuest (uint32 quest_id) const override |
| bool | HasConditionalInteraction () const |
| bool | CanActivateForPlayer (Player const *target) const |
| bool | ActivateToQuest (Player const *target) const |
| void | UseDoorOrButton (uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr) |
| void | ResetDoorOrButton () |
| void | ActivateObject (GameObjectActions action, int32 param, WorldObject *spellCaster=nullptr, uint32 spellId=0, int32 effectIndex=-1) |
| void | TriggeringLinkedGameObject (uint32 trapEntry, Unit *target) |
| bool | IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const override |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| bool | IsInvisibleDueToDespawn (WorldObject const *seer) const override |
| uint8 | GetLevelForTarget (WorldObject const *target) const override |
| GameObject * | LookupFishingHoleAround (float range) |
| void | SendCustomAnim (uint32 anim) |
| bool | IsInRange (float x, float y, float z, float radius) const |
| void | ModifyHealth (int32 change, WorldObject *attackerOrHealer=nullptr, uint32 spellId=0) |
| void | SetDestructibleState (GameObjectDestructibleState state, WorldObject *attackerOrHealer=nullptr, bool setHealth=false) |
| GameObjectDestructibleState | GetDestructibleState () const |
| void | SetRespawnCompatibilityMode (bool mode=true) |
| bool | GetRespawnCompatibilityMode () |
| std::string const & | GetAIName () const |
| uint32 | GetScriptId () const |
| GameObjectAI * | AI () const |
| void | InheritStringIds (GameObject const *parent) |
| bool | HasStringId (std::string_view id) const |
| void | SetScriptStringId (std::string id) |
| std::string_view | GetStringId (StringIdType type) const |
| SpawnTrackingStateData const * | GetSpawnTrackingStateDataForPlayer (Player const *player) const override |
| void | SetDisplayId (uint32 displayid) |
| uint32 | GetDisplayId () const |
| uint8 | GetNameSetId () const |
| uint32 | GetFaction () const override |
| void | SetFaction (uint32 faction) override |
| Position | GetRespawnPosition () const |
| TransportBase * | ToTransportBase () |
| TransportBase const * | ToTransportBase () const |
| Transport * | ToTransport () |
| Transport const * | ToTransport () const |
| Position const & | GetStationaryPosition () const override |
| void | RelocateStationaryPosition (float x, float y, float z, float o) |
| void | RelocateStationaryPosition (Position const &pos) |
| void | AfterRelocation () |
| 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 |
| uint16 | GetAIAnimKitId () const override |
| void | SetAnimKitId (uint16 animKitId, bool oneshot) |
| uint32 | GetWorldEffectID () const |
| void | SetWorldEffectID (uint32 worldEffectID) |
| Vignettes::VignetteData const * | GetVignette () const |
| void | SetVignette (uint32 vignetteId) |
| void | SetSpellVisualId (int32 spellVisualId, ObjectGuid activatorGuid=ObjectGuid::Empty) |
| void | AssaultCapturePoint (Player *player) |
| void | UpdateCapturePoint () |
| bool | CanInteractWithCapturePoint (Player const *target) const |
| FlagState | GetFlagState () const |
| ObjectGuid const & | GetFlagCarrierGUID () const |
| time_t | GetFlagTakenFromBaseTime () const |
| GuidUnorderedSet const * | GetInsidePlayers () const |
| bool | MeetsInteractCondition (Player const *user) const |
| void | AIM_Destroy () |
| bool | AIM_Initialize () |
| void | UpdateDynamicFlagsForNearbyPlayers () |
| void | HandleCustomTypeCommand (GameObjectTypeBase::CustomCommand const &command) const |
| TeamId | GetControllingTeam () const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
Public Member Functions inherited from WorldObject | |
| virtual | ~WorldObject () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const |
| void | MovePosition (Position &pos, float dist, float angle, float maxHeightChange=6.0f) const |
| Position | GetNearPosition (float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) const |
| Position | GetFirstCollisionPosition (float dist, float angle) |
| Position | GetRandomNearPosition (float radius) |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| virtual float | GetCombatReach () const |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
| Position | GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) const |
| uint32 | GetInstanceId () const |
| PhaseShift & | GetPhaseShift () |
| PhaseShift const & | GetPhaseShift () const |
| PhaseShift & | GetSuppressedPhaseShift () |
| PhaseShift const & | GetSuppressedPhaseShift () const |
| bool | InSamePhase (PhaseShift const &phaseShift) const |
| bool | InSamePhase (WorldObject const *obj) const |
| int32 | GetDBPhase () const |
| void | SetDBPhase (int32 p) |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsInWorldPvpZone () const |
| bool | IsOutdoors () const |
| ZLiquidStatus | GetLiquidStatus () const |
| WmoLocation const * | GetCurrentWmo () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string newname) |
| std::string | GetNameForLocaleIdx (LocaleConstant) const override |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance2d (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| bool | IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| Position | GetHitSpherePointFor (Position const &dest) const |
| void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (Position const *pos, float minRange, float maxRange) const |
| bool | IsInRange3d (Position const *pos, float minRange, float maxRange) const |
| bool | isInFront (WorldObject const *target, float arc=float(M_PI)) const |
| bool | isInBack (WorldObject const *target, float arc=float(M_PI)) const |
| bool | IsInBetween (Position const &pos1, Position const &pos2, float size=0) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| virtual void | 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 |
| void | PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const |
| void | StopDistanceSound (Player const *target=nullptr) const |
| void | PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const |
| void | PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const |
| void | PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, CanSeeOrDetectExtraArgs const &args={ }) const |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| ZoneScript * | FindZoneScript () const |
| ZoneScript * | GetZoneScript () const |
| Scenario * | GetScenario () const |
| TempSummon * | SummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr) |
| GameObject * | SummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| Creature * | FindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const |
| GameObject * | FindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const |
| GameObject * | FindNearestUnspawnedGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| Player * | SelectNearestPlayer (float range) const |
| virtual ObjectGuid | GetCharmerOrOwnerGUID () const |
| ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetOwner () const |
| Unit * | GetCharmerOrOwner () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| Player * | GetAffectingPlayer () const |
| Player * | GetSpellModOwner () const |
| SpellRange | GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| SpellEffectValue | ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue value) const |
| int32 | CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const |
| int32 | ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const |
| void | ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const |
| void | ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const |
| virtual float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const |
| virtual SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect, bool canImmune) const |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| ReputationRank | GetReactionTo (WorldObject const *target) const |
| bool | IsHostileTo (WorldObject const *target) const |
| bool | IsHostileToPlayers () const |
| bool | IsFriendlyTo (WorldObject const *target) const |
| bool | IsNeutralToAll () const |
| SpellCastResult | CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ }) |
| void | SendPlayOrphanSpellVisual (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendCancelOrphanSpellVisual (uint32 id) |
| bool | IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| bool | IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| virtual uint32 | GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const |
| template<typename Container > | |
| void | GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const |
| template<typename Container > | |
| void | GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const |
| template<typename Container > | |
| void | GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const |
| void | DestroyForNearbyPlayers () |
| virtual void | UpdateObjectVisibility (bool forced=true) |
| virtual void | UpdateObjectVisibilityOnCreate () |
| virtual void | UpdateObjectVisibilityOnDestroy () |
| void | UpdatePositionData () |
| void | BuildUpdate (UpdateDataMapType &) override |
| bool | AddToObjectUpdate () override |
| void | RemoveFromObjectUpdate () override |
| void | AddToNotify (uint16 f) |
| bool | isNeedNotify (uint16 f) const |
| uint16 | GetNotifyFlags () const |
| void | ResetAllNotifies () |
| bool | isActiveObject () const |
| void | setActive (bool isActiveObject) |
| bool | IsFarVisible () const |
| void | SetFarVisible (bool on) |
| bool | IsVisibilityOverridden () const |
| void | SetVisibilityDistanceOverride (VisibilityDistanceType type) |
| void | SetIsStoredInWorldObjectGridContainer (bool apply) |
| bool | IsAlwaysStoredInWorldObjectGridContainer () const |
| bool | IsStoredInWorldObjectGridContainer () const |
| TransportBase * | GetTransport () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| float | GetTransOffsetO () const |
| Position const & | GetTransOffset () const |
| uint32 | GetTransTime () const |
| int8 | GetTransSeat () const |
| virtual ObjectGuid | GetTransGUID () const |
| void | SetTransport (TransportBase *t) |
| 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 | GetMovementAnimKitId () const |
| virtual uint16 | GetMeleeAnimKitId () const |
| bool | IsPrivateObject () const |
| ObjectGuid | GetPrivateObjectOwner () const |
| void | SetPrivateObjectOwner (ObjectGuid const &owner) |
| bool | CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const |
| SmoothPhasing * | GetOrCreateSmoothPhasing () |
| SmoothPhasing * | GetSmoothPhasing () |
| SmoothPhasing const * | GetSmoothPhasing () const |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| uint32 | GetEntry () const |
| void | SetEntry (uint32 entry) |
| float | GetObjectScale () const |
| virtual void | SetObjectScale (float scale) |
| uint32 | GetDynamicFlags () const |
| bool | HasDynamicFlag (uint32 flag) const |
| void | SetDynamicFlag (uint32 flag) |
| void | RemoveDynamicFlag (uint32 flag) |
| void | ReplaceAllDynamicFlags (uint32 flag) |
| void | BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const |
| WorldObject * | ToWorldObject () |
| WorldObject const * | ToWorldObject () const |
| Item * | ToItem () |
| Item const * | ToItem () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| SceneObject * | ToSceneObject () |
| SceneObject const * | ToSceneObject () const |
| Conversation * | ToConversation () |
| Conversation const * | ToConversation () const |
| Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
| virtual void | BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const |
Public Member Functions inherited from BaseEntity | |
| virtual | ~BaseEntity () |
| bool | IsInWorld () const |
| ObjectGuid const & | GetGUID () const |
| TypeID | GetTypeId () const |
| bool | isType (TypeMask mask) const |
| bool | IsWorldObject () const |
| bool | IsItem () const |
| bool | IsUnit () const |
| bool | IsCreature () const |
| bool | IsPlayer () const |
| bool | IsGameObject () const |
| bool | IsDynObject () const |
| bool | IsCorpse () const |
| bool | IsAreaTrigger () const |
| bool | IsSceneObject () const |
| bool | IsConversation () const |
| bool | IsMeshObject () const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | SendUpdateToPlayer (Player *player) const |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
| void | BuildDestroyUpdateBlock (UpdateData *data) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| ByteBuffer & | PrepareValuesUpdateBuffer (UpdateData *data) const |
| virtual void | DestroyForPlayer (Player const *target) const |
| void | SendOutOfRangeForPlayer (Player const *target) const |
| void | ClearUpdateMask (bool remove) |
| void | SetIsNewObject (bool enable) |
| bool | IsDestroyedObject () const |
| void | SetDestroyedObject (bool destroyed) |
| void | BuildUpdateChangesMask () |
| void | BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const |
| template<typename T > | |
| void | ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &) |
Public Member Functions inherited from WorldLocation | |
| constexpr | WorldLocation () |
| constexpr | WorldLocation (uint32 mapId, float x, float y) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z, float o) |
| constexpr | WorldLocation (uint32 mapId, Position const &position) |
| constexpr void | WorldRelocate (WorldLocation const &loc) |
| constexpr void | WorldRelocate (WorldLocation const *loc) |
| constexpr void | WorldRelocate (uint32 mapId, Position const &pos) |
| constexpr void | WorldRelocate (uint32 mapId, float x, float y, float z, float o) |
| constexpr WorldLocation | GetWorldLocation () const |
| constexpr uint32 | GetMapId () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| constexpr | Position () |
| constexpr | Position (float x, float y) |
| constexpr | Position (float x, float y, float z) |
| constexpr | Position (float x, float y, float z, float o) |
| bool | operator== (Position const &a) const |
| constexpr void | Relocate (float x, float y) |
| constexpr void | Relocate (float x, float y, float z) |
| constexpr void | Relocate (float x, float y, float z, float o) |
| constexpr void | Relocate (Position const &pos) |
| constexpr void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| constexpr void | SetOrientation (float orientation) |
| constexpr float | GetPositionX () const |
| constexpr float | GetPositionY () const |
| constexpr float | GetPositionZ () const |
| constexpr float | GetOrientation () const |
| constexpr void | GetPosition (float &x, float &y) const |
| constexpr void | GetPosition (float &x, float &y, float &z) const |
| constexpr void | GetPosition (float &x, float &y, float &z, float &o) const |
| constexpr Position | GetPosition () const |
| Streamer< XY > | PositionXYStream () |
| ConstStreamer< XY > | PositionXYStream () const |
| Streamer< XYZ > | PositionXYZStream () |
| ConstStreamer< XYZ > | PositionXYZStream () const |
| Streamer< XYZO > | PositionXYZOStream () |
| ConstStreamer< XYZO > | PositionXYZOStream () const |
| Streamer< PackedXYZ > | PositionPackedXYZStream () |
| ConstStreamer< PackedXYZ > | PositionPackedXYZStream () const |
| bool | IsPositionValid () const |
| constexpr float | GetExactDist2dSq (const float x, const float y) const |
| constexpr float | GetExactDist2dSq (Position const &pos) const |
| constexpr float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const &pos) const |
| float | GetExactDist2d (Position const *pos) const |
| constexpr float | GetExactDistSq (float x, float y, float z) const |
| constexpr float | GetExactDistSq (Position const &pos) const |
| constexpr float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| Position | GetPositionOffsetTo (Position const &endPos) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | ToAbsoluteAngle (float relAngle) const |
| float | ToRelativeAngle (float absAngle) const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const &pos) const |
| float | GetRelativeAngle (Position const *pos) const |
| constexpr bool | IsInDist2d (float x, float y, float dist) const |
| constexpr bool | IsInDist2d (Position const &pos, float dist) const |
| constexpr bool | IsInDist2d (Position const *pos, float dist) const |
| constexpr bool | IsInDist (float x, float y, float z, float dist) const |
| constexpr bool | IsInDist (Position const &pos, float dist) const |
| constexpr bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const &boxOrigin, float length, float width, float height) const |
| bool | IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const |
| bool | IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Public Member Functions inherited from GridObject< GameObject > | |
| virtual | ~GridObject () |
| bool | IsInGrid () const |
| void | AddToGrid (GridRefManager< GameObject > &m) |
| void | RemoveFromGrid () |
Public Member Functions inherited from TransportBase | |
| void | UpdatePassengerPosition (Map *map, WorldObject *passenger, Position const &position, bool setHomePosition) |
Private Member Functions | |
| Transport () | |
| bool | TeleportTransport (uint32 oldMapId, uint32 newMapId, float x, float y, float z, float o) |
| void | TeleportPassengersAndHideTransport (uint32 newMapid) |
| void | UpdatePassengerPositions (PassengerSet const &passengers) |
Private Attributes | |
| TransportTemplate const * | _transportInfo |
| TransportMovementState | _movementState |
| std::unique_ptr< boost::dynamic_bitset< uint8 > > | _eventsToTrigger |
| size_t | _currentPathLeg |
| Optional< uint32 > | _requestStopTimestamp |
| uint32 | _pathProgress |
| TimeTracker | _positionChangeTimer |
| PassengerSet | _passengers |
| PassengerSet | _staticPassengers |
| bool | _delayedAddModel |
Friends | |
| Transport * | TransportMgr::CreateTransport (uint32, Map *, ObjectGuid::LowType, uint8, uint32, uint32) |
Definition at line 29 of file Transport.h.
| typedef std::set<WorldObject*> Transport::PassengerSet |
Definition at line 35 of file Transport.h.
|
private |
Definition at line 86 of file Transport.cpp.
References CreateObjectBits::GameObject, BaseEntity::m_updateFlag, CreateObjectBits::Rotation, CreateObjectBits::ServerTime, and CreateObjectBits::Stationary.
| Transport::~Transport | ( | ) |
Definition at line 96 of file Transport.cpp.
References _passengers, ASSERT, and UnloadStaticPassengers().
|
overridevirtual |
Implements TransportBase.
Definition at line 278 of file Transport.cpp.
References _passengers, BaseEntity::GetGUID(), WorldObject::GetName(), MovementInfo::TransportInfo::guid, BaseEntity::IsInWorld(), WorldObject::m_movementInfo, MovementInfo::TransportInfo::pos, WorldObject::SetTransport(), sScriptMgr, TC_LOG_DEBUG, Object::ToPlayer(), and MovementInfo::transport.
Referenced by Player::LoadFromDB().
|
overridevirtual |
Reimplemented from BaseEntity.
Definition at line 694 of file Transport.cpp.
References BaseEntity::BuildFieldsUpdate(), BaseEntity::BuildUpdateChangesMask(), BaseEntity::ClearUpdateMask(), WorldObject::GetMap(), and Map::GetPlayers().
|
overridevirtual |
Reimplemented from GameObject.
Definition at line 164 of file Transport.cpp.
References _passengers, GameObject::CleanupsBeforeDelete(), RemovePassenger(), and UnloadStaticPassengers().
| bool Transport::Create | ( | ObjectGuid::LowType | guidlow, |
| uint32 | entry, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | ang | ||
| ) |
Definition at line 102 of file Transport.cpp.
References BaseEntity::_Create(), _currentPathLeg, _eventsToTrigger, _pathProgress, _transportInfo, GameObjectTemplate::allowstopping, TransportTemplate::ComputePosition(), GameObject::CreateModel(), GameObjectTemplate::displayId, GameObjectTemplate::entry, TransportTemplate::Events, GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, GameObject::GetGameObjectOverride(), getMSTime(), GO_STATE_ACTIVE, GO_STATE_READY, Position::IsPositionValid(), GameObject::m_goInfo, GameObject::m_goTemplateAddon, GameObjectTemplate::moTransport, GameObjectTemplate::name, Position::Relocate(), GameObject::ReplaceAllFlags(), GameObject::SetDisplayId(), Object::SetEntry(), GameObject::SetFaction(), GameObject::SetGoAnimProgress(), GameObject::SetGoState(), GameObject::SetGoType(), GameObject::SetLocalRotation(), WorldObject::SetName(), Object::SetObjectScale(), GameObject::SetParentRotation(), SetPeriod(), GameObjectTemplate::size, sObjectMgr, sTransportMgr, TC_LOG_ERROR, and TransportTemplate::TotalPathTime.
Referenced by TransportMgr::CreateTransport().
| GameObject * Transport::CreateGOPassenger | ( | ObjectGuid::LowType | guid, |
| GameObjectData const * | data | ||
| ) |
Definition at line 358 of file Transport.cpp.
References _staticPassengers, Map::AddToMap(), ASSERT, GameObject::CreateGameObjectFromDB(), Map::GetGORespawnTime(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldObject::GetPhaseShift(), Position::GetPosition(), GetPositionWithOffset(), Position::GetPositionX(), Position::GetPositionY(), MovementInfo::TransportInfo::guid, PhasingHandler::InitDbPhaseShift(), PhasingHandler::InitDbVisibleMapId(), Position::IsPositionValid(), WorldObject::m_movementInfo, SpawnData::phaseGroup, SpawnData::phaseId, SpawnData::phaseUseFlags, MovementInfo::TransportInfo::pos, Position::Relocate(), GameObject::RelocateStationaryPosition(), MovementInfo::TransportInfo::seat, WorldObject::SetTransport(), SpawnData::spawnPoint, TC_LOG_ERROR, SpawnData::terrainSwapMap, ObjectGuid::ToString(), and MovementInfo::transport.
Referenced by LoadStaticPassengers().
| Creature * Transport::CreateNPCPassenger | ( | ObjectGuid::LowType | guid, |
| CreatureData const * | data | ||
| ) |
@HACK - transport models are not added to map's dynamic LoS calculations because the current GameObjectModel cannot be moved without recreating
Definition at line 313 of file Transport.cpp.
References _staticPassengers, Map::AddToMap(), Unit::AddUnitState(), ASSERT, Creature::CreateCreatureFromDB(), Map::GetCreatureRespawnTime(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldObject::GetPhaseShift(), Position::GetPosition(), GetPositionWithOffset(), Position::GetPositionX(), Position::GetPositionY(), MovementInfo::TransportInfo::guid, PhasingHandler::InitDbPhaseShift(), PhasingHandler::InitDbVisibleMapId(), Position::IsPositionValid(), WorldObject::m_movementInfo, SpawnData::phaseGroup, SpawnData::phaseId, SpawnData::phaseUseFlags, MovementInfo::TransportInfo::pos, Position::Relocate(), MovementInfo::TransportInfo::seat, Creature::SetHomePosition(), WorldObject::SetTransport(), Creature::SetTransportHomePosition(), SpawnData::spawnPoint, sScriptMgr, TC_LOG_ERROR, SpawnData::terrainSwapMap, ObjectGuid::ToString(), MovementInfo::transport, and UNIT_STATE_IGNORE_PATHFINDING.
Referenced by LoadStaticPassengers().
| void Transport::EnableMovement | ( | bool | enabled | ) |
Definition at line 580 of file Transport.cpp.
References _pathProgress, _requestStopTimestamp, _transportInfo, GameObjectTemplate::allowstopping, GameObject::GetGOInfo(), TransportTemplate::GetNextPauseWaypointTimestamp(), GetTransportPeriod(), GO_DYNFLAG_LO_STOPPED, GO_STATE_ACTIVE, Object::RemoveDynamicFlag(), and GameObject::SetGoState().
Referenced by debug_commandscript::HandleDebugTransportCommand().
|
overridevirtual |
Reimplemented from GameObject.
Definition at line 705 of file Transport.cpp.
References GameObject::GetDebugInfo().
| uint32 Transport::GetExpectedMapId | ( | ) | const |
Returns id of the map that transport is expected to be on, according to current path progress.
Definition at line 712 of file Transport.cpp.
References _currentPathLeg, _transportInfo, and TransportTemplate::PathLegs.
Referenced by Map::AddToMap(), Player::LoadFromDB(), and Update().
|
overridevirtual |
Implements TransportBase.
Definition at line 515 of file Transport.cpp.
References GameObject::GetGOInfo(), GameObjectTemplate::moTransport, and GameObjectTemplate::SpawnMap.
Definition at line 86 of file Transport.h.
Referenced by BaseEntity::BuildMovementUpdate().
|
inline |
Definition at line 48 of file Transport.h.
This method transforms supplied global coordinates into local offsets.
Implements TransportBase.
Definition at line 79 of file Transport.h.
References Position::GetPositionOffsetTo().
This method transforms supplied transport offsets into global coordinates.
Implements TransportBase.
Definition at line 76 of file Transport.h.
References Position::GetPositionWithOffset().
Referenced by CreateGOPassenger(), CreateNPCPassenger(), Player::LoadFromDB(), Unit::SendTeleportPacket(), SummonPassenger(), TeleportTransport(), and UpdatePassengerPositions().
|
inline |
Definition at line 85 of file Transport.h.
Referenced by BaseEntity::BuildMovementUpdate().
|
inlineoverridevirtual |
Implements TransportBase.
Definition at line 71 of file Transport.h.
References BaseEntity::GetGUID().
Referenced by TeleportPassengersAndHideTransport().
|
inlineoverridevirtual |
Implements TransportBase.
Definition at line 73 of file Transport.h.
References Position::GetOrientation().
|
inline |
Definition at line 83 of file Transport.h.
Referenced by BaseEntity::BuildMovementUpdate(), EnableMovement(), and Update().
|
inline |
Definition at line 87 of file Transport.h.
References GO_DYNFLAG_LO_STOPPED, and Object::HasDynamicFlag().
Referenced by BaseEntity::BuildMovementUpdate().
| void Transport::LoadStaticPassengers | ( | ) |
Needed when transport moves from inactive to active grid.
Definition at line 549 of file Transport.cpp.
References CreateGOPassenger(), CreateNPCPassenger(), GameObject::GetGOInfo(), WorldObject::GetMap(), GameObjectTemplate::moTransport, sObjectMgr, and GameObjectTemplate::SpawnMap.
Referenced by Update(), and UpdatePosition().
|
overridevirtual |
Implements TransportBase.
Definition at line 295 of file Transport.cpp.
References _passengers, _staticPassengers, WorldObject::GetName(), WorldObject::m_movementInfo, MovementInfo::TransportInfo::Reset(), WorldObject::SetTransport(), sScriptMgr, TC_LOG_DEBUG, Object::ToPlayer(), and MovementInfo::transport.
Referenced by CleanupsBeforeDelete(), and TeleportPassengersAndHideTransport().
|
inline |
Definition at line 99 of file Transport.h.
|
inline |
Definition at line 84 of file Transport.h.
References GameObject::SetLevel().
Referenced by Create().
| bool Transport::SummonPassenger | ( | uint32 | entry, |
| Position const & | pos, | ||
| TempSummonType | summonType, | ||
| SummonPropertiesEntry const * | properties = nullptr, |
||
| Milliseconds | duration = 0ms, |
||
| Unit * | summoner = nullptr, |
||
| uint32 | spellId = 0, |
||
| uint32 | vehId = 0 |
||
| ) |
Temporarily summons a creature as passenger on this transport.
| entry | Id of the creature from creature_template table |
| pos | Initial position of the creature (transport offsets) |
| summonType | |
| properties | |
| duration | Determines how long the creauture will exist in world depending on @summonType (in milliseconds) |
| summoner | Summoner of the creature (for AI purposes) |
| spellId | |
| vehId | If set, this value overrides vehicle id from creature_template that the creature will use |
@HACK - transport models are not added to map's dynamic LoS calculations because the current GameObjectModel cannot be moved without recreating
Definition at line 397 of file Transport.cpp.
References _staticPassengers, Map::AddToMap(), Unit::AddUnitState(), Companion, SummonPropertiesEntry::Control, Creature::Create(), Creature, WorldObject::FindMap(), Map::GenerateLowGuid(), SummonPropertiesEntry::GetFlags(), BaseEntity::GetGUID(), GetPositionWithOffset(), Guardian, MovementInfo::TransportInfo::guid, IgnoreSummonerPhase, PhasingHandler::InheritPhaseShift(), TempSummon::InitStats(), TempSummon::InitSummon(), JoinSummonerSpawnGroup, Lightwell, WorldObject::m_movementInfo, Minion, Mount, MovementInfo::TransportInfo::pos, Position::Relocate(), Runeblade, Unit::SetCreatedBySpell(), Creature::SetHomePosition(), TempSummon::SetTempSummonType(), WorldObject::SetTransport(), Creature::SetTransportHomePosition(), SUMMON_CATEGORY_ALLY, SUMMON_CATEGORY_PET, SUMMON_CATEGORY_POSSESSED_VEHICLE, SUMMON_CATEGORY_PUPPET, SUMMON_CATEGORY_VEHICLE, SUMMON_CATEGORY_WILD, SummonPropertiesEntry::Title, Totem, MovementInfo::transport, UNIT_MASK_GUARDIAN, UNIT_MASK_MINION, UNIT_MASK_PUPPET, UNIT_MASK_SUMMON, UNIT_MASK_TOTEM, UNIT_STATE_IGNORE_PATHFINDING, and Vehicle.
Referenced by PassengerController::SummonCreatures().
|
private |
Definition at line 627 of file Transport.cpp.
References _passengers, GameObject::AddToWorld(), BaseEntity::BuildCreateUpdateBlockForPlayer(), BaseEntity::BuildOutOfRangeUpdateBlock(), UpdateData::BuildPacket(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldLocation::GetMapId(), Map::GetPlayers(), GetTransportGUID(), GameObject::RemoveFromWorld(), RemovePassenger(), TELE_TO_NOT_LEAVE_TRANSPORT, TYPEID_AREATRIGGER, TYPEID_DYNAMICOBJECT, TYPEID_PLAYER, and WorldLocation::WorldLocation().
Referenced by TeleportTransport().
|
private |
Definition at line 597 of file Transport.cpp.
References _passengers, GetPositionWithOffset(), Unit::GetVehicleBase(), TeleportPassengersAndHideTransport(), Object::ToUnit(), TYPEID_PLAYER, UnloadStaticPassengers(), and UpdatePosition().
Referenced by Update().
| void Transport::UnloadStaticPassengers | ( | ) |
Needed when transport enters inactive grid.
Definition at line 571 of file Transport.cpp.
References _staticPassengers, and WorldObject::AddObjectToRemoveList().
Referenced by CleanupsBeforeDelete(), TeleportTransport(), Update(), UpdatePosition(), and ~Transport().
|
overridevirtual |
Reimplemented from GameObject.
Definition at line 176 of file Transport.cpp.
References _currentPathLeg, _delayedAddModel, _eventsToTrigger, _movementState, _pathProgress, _positionChangeTimer, _requestStopTimestamp, _staticPassengers, _transportInfo, GameObject::AI(), GameObject::AIM_Initialize(), GameObjectTemplate::allowstopping, TransportTemplate::ComputePosition(), TransportTemplate::Events, GetExpectedMapId(), GameTime::GetGameTimeMS(), GameObject::GetGOInfo(), GameObject::GetGoState(), TransportTemplate::GetLegForTime(), WorldObject::GetMap(), WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), GetTransportPeriod(), GO_DYNFLAG_LO_STOPPED, GO_STATE_READY, Map::InsertGameObjectModel(), Map::IsGridLoaded(), LoadStaticPassengers(), GameObject::m_model, Moving, TimeTracker::Passed(), TransportTemplate::PathLegs, TimeTracker::Reset(), Object::SetDynamicFlag(), GameObject::SetGoState(), sScriptMgr, TC_LOG_ERROR, TeleportTransport(), GameEvents::Trigger(), UnloadStaticPassengers(), TimeTracker::Update(), GameObjectAI::UpdateAI(), and UpdatePosition().
|
private |
Definition at line 688 of file Transport.cpp.
References WorldObject::GetMap(), GetPositionWithOffset(), and TransportBase::UpdatePassengerPosition().
Referenced by UpdatePosition().
| void Transport::UpdatePosition | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | o | ||
| ) |
Definition at line 520 of file Transport.cpp.
References _passengers, _staticPassengers, Cell::DiffGrid(), WorldObject::GetMap(), WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Map::IsGridLoaded(), LoadStaticPassengers(), GameObject::m_stationaryPosition, Position::Relocate(), GameObject::SetLocalRotationAngles(), Position::SetOrientation(), sScriptMgr, UnloadStaticPassengers(), GameObject::UpdateModelPosition(), and UpdatePassengerPositions().
Referenced by TeleportTransport(), and Update().
|
friend |
|
private |
Definition at line 114 of file Transport.h.
Referenced by Create(), GetExpectedMapId(), and Update().
|
private |
Definition at line 122 of file Transport.h.
Referenced by Update().
|
private |
Definition at line 113 of file Transport.h.
|
private |
Definition at line 112 of file Transport.h.
Referenced by Update().
|
private |
Definition at line 119 of file Transport.h.
Referenced by AddPassenger(), CleanupsBeforeDelete(), RemovePassenger(), TeleportPassengersAndHideTransport(), TeleportTransport(), UpdatePosition(), and ~Transport().
|
private |
Definition at line 116 of file Transport.h.
Referenced by Create(), EnableMovement(), and Update().
|
private |
Definition at line 117 of file Transport.h.
Referenced by Update().
Definition at line 115 of file Transport.h.
Referenced by EnableMovement(), and Update().
|
private |
Definition at line 120 of file Transport.h.
Referenced by CreateGOPassenger(), CreateNPCPassenger(), RemovePassenger(), SummonPassenger(), UnloadStaticPassengers(), Update(), and UpdatePosition().
|
private |
Definition at line 111 of file Transport.h.
Referenced by Create(), EnableMovement(), GetExpectedMapId(), and Update().