|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Transport.h>
Public Member Functions | |
| void | AddPassenger (WorldObject *passenger) |
| void | BuildUpdate (UpdateDataMapType &data_map) |
| void | CalculatePassengerOffset (float &x, float &y, float &z, float *o) const |
| This method transforms supplied global coordinates into local offsets. | |
| void | CalculatePassengerPosition (float &x, float &y, float &z, float *o) const |
| This method transforms supplied transport offsets into global coordinates. | |
| bool | Create (uint32 guidlow, uint32 entry, uint32 mapid, float x, float y, float z, float ang, uint32 animprogress) |
| GameObject * | CreateGOPassenger (uint32 guid, GameObjectData const *data) |
| bool | CreateLocal (uint32 guidlow, uint32 entry, Map *map, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 animprogress) |
| Creature * | CreateNPCPassenger (uint32 guid, CreatureData const *data) |
| void | EnableMovement (bool enabled) |
| KeyFrameVec const & | GetKeyFrames () const |
| std::set< WorldObject * > const & | GetPassengers () const |
| uint32 | GetPeriod () const |
| uint32 | GetTimer () const |
| TransportTemplate const * | GetTransportTemplate () const |
| void | LoadStaticPassengers () |
| Needed when transport moves from inactive to active grid. | |
| void | RemovePassenger (WorldObject *passenger) |
| void | SetPeriod (uint32 period) |
| void | UnloadStaticPassengers () |
| Needed when transport enters inactive grid. | |
| void | Update (uint32 diff) |
| void | UpdatePosition (float x, float y, float z, float o) |
| ~Transport () | |
| Public Member Functions inherited from GameObject | |
| bool | ActivateToQuest (Player *target) const |
| void | AddLootMode (uint16 lootMode) |
| void | AddToSkillupList (uint32 PlayerGuidLow) |
| void | AddToWorld () OVERRIDE |
| void | AddUniqueUse (Player *player) |
| void | AddUse () |
| GameObjectAI * | AI () const |
| void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const OVERRIDE |
| void | CastSpell (Unit *target, uint32 spell) |
| void | CleanupsBeforeDelete (bool finalCleanup=true) OVERRIDE |
| void | ClearSkillupList () |
| bool | Create (uint32 guidlow, uint32 name_id, Map *map, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 animprogress, GOState go_state, uint32 artKit=0) |
| void | Delete () |
| void | DeleteFromDB () |
| void | EnableCollision (bool enable) |
| void | EventInform (uint32 eventId) |
| GameObject () | |
| std::string | GetAIName () const |
| uint32 | GetDBTableGUIDLow () const |
| GameObjectDestructibleState | GetDestructibleState () const |
| uint32 | GetDisplayId () const |
| void | getFishLoot (Loot *loot, Player *loot_owner) |
| uint8 | GetGoAnimProgress () const |
| uint8 | GetGoArtKit () const |
| GameObjectData const * | GetGOData () const |
| GameObjectTemplate const * | GetGOInfo () const |
| GOState | GetGoState () const |
| uint32 | GetGOStateValue (GOState state) |
| GameobjectTypes | GetGoType () const |
| GameObjectValue const * | GetGOValue () const |
| uint8 | getLevelForTarget (WorldObject const *target) const OVERRIDE |
| uint16 | GetLootMode () const |
| Player * | GetLootRecipient () const |
| Group * | GetLootRecipientGroup () const |
| LootState | getLootState () const |
| std::string const & | GetNameForLocaleIdx (LocaleConstant locale_idx) const OVERRIDE |
| Unit * | GetOwner () const |
| uint64 | GetOwnerGUID () const |
| std::vector< uint32 > const * | GetPauseTimes () const |
| uint32 | GetRespawnDelay () const |
| void | GetRespawnPosition (float &x, float &y, float &z, float *ori=NULL) const |
| time_t | GetRespawnTime () const |
| time_t | GetRespawnTimeEx () const |
| uint64 | GetRotation () const |
| virtual uint32 | GetScriptId () const |
| uint32 | GetSpellId () const |
| float | GetStationaryO () const OVERRIDE |
| float | GetStationaryX () const OVERRIDE |
| float | GetStationaryY () const OVERRIDE |
| float | GetStationaryZ () const OVERRIDE |
| uint32 | GetTransportPathProgress () const |
| uint32 | GetTransportPeriod () const |
| uint32 | GetUniqueUseCount () const |
| uint32 | GetUseCount () const |
| bool | hasInvolvedQuest (uint32 quest_id) const OVERRIDE |
| bool | HasLootMode (uint16 lootMode) const |
| bool | HasLootRecipient () const |
| bool | hasQuest (uint32 quest_id) const OVERRIDE |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const OVERRIDE |
| bool | IsDestructibleBuilding () const |
| bool | IsDynTransport () const |
| bool | IsInRange (float x, float y, float z, float radius) const |
| bool | IsInSkillupList (uint32 PlayerGuidLow) const |
| bool | IsInvisibleDueToDespawn () const OVERRIDE |
| bool | IsLootAllowedFor (Player const *player) const |
| bool | isSpawned () const |
| bool | isSpawnedByDefault () const |
| bool | IsTransport () const |
| bool | LoadFromDB (uint32 guid, Map *map) |
| bool | LoadGameObjectFromDB (uint32 guid, Map *map, bool addToMap=true) |
| GameObject * | LookupFishingHoleAround (float range) |
| void | ModifyHealth (int32 change, Unit *attackerOrHealer=NULL, uint32 spellId=0) |
| void | Refresh () |
| void | RemoveFromWorld () OVERRIDE |
| void | RemoveLootMode (uint16 lootMode) |
| void | ResetDoorOrButton () |
| void | ResetLootMode () |
| void | Respawn () |
| void | SaveRespawnTime () OVERRIDE |
| void | SaveToDB () |
| void | SaveToDB (uint32 mapid, uint32 spawnMask) |
| void | SendCustomAnim (uint32 anim) |
| void | SetDestructibleState (GameObjectDestructibleState state, Player *eventInvoker=NULL, bool setHealth=false) |
| void | SetDisplayId (uint32 displayid) |
| void | SetGameobjectTransparence (uint8 transparency) |
| void | SetGoAnimProgress (uint8 animprogress) |
| void | SetGoArtKit (uint8 artkit) |
| void | SetGoHealth (uint8 health) |
| void | SetGoState (GOState state) |
| void | SetGoType (GameobjectTypes type) |
| void | SetLegacyTransportTravelTime (uint32 travelTime) |
| void | SetLootMode (uint16 lootMode) |
| void | SetLootRecipient (Unit *unit) |
| void | SetLootState (LootState s, Unit *unit=NULL) |
| void | SetOwnerGUID (uint64 owner) |
| bool | SetPhased (uint32 id, bool update, bool apply) OVERRIDE |
| void | SetPhaseMask (uint32 newPhaseMask, bool update) OVERRIDE |
| void | SetRespawnTime (int32 respawn) |
| void | SetSpawnedByDefault (bool b) |
| void | SetSpellId (uint32 id) |
| void | SetTransportPathProgress (uint32 pathProgress) |
| void | StartLegacyTransportToFirstStop (uint32 travelTime) |
| void | StopLegacyTransportAtCurrentProgress () |
| void | StopLegacyTransportAtInitialStop () |
| Transport * | ToTransport () |
| Transport const * | ToTransport () const |
| void | TriggeringLinkedGameObject (uint32 trapEntry, Unit *target) |
| void | UpdateModelPosition () |
| void | UpdateRotationFields (float rotation2=0.0f, float rotation3=0.0f) |
| void | UpdateWorldRotationField () |
| void | Use (Unit *user) |
| void | UseDoorOrButton (uint32 time_to_restore=0, bool alternative=false, Unit *user=NULL) |
| ~GameObject () | |
| Public Member Functions inherited from WorldObject | |
| void | _Create (uint32 guidlow, HighGuid guidhigh, uint32 phaseMask) |
| void | AddObjectToRemoveList () |
| void | AddToNotify (uint16 f) |
| void | BuildUpdate (UpdateDataMapType &) |
| bool | CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false) const |
| void | ClearPhases (bool update=false) |
| void | DestroyForNearbyPlayers () |
| Map * | FindMap () const |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| uint32 | GetAreaId () const |
| Map const * | GetBaseMap () const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0) const |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistance2d (WorldObject const *obj) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| void | GetFirstCollisionPosition (Position &pos, float dist, float angle) |
| void | GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| float | GetGridActivationRange () const |
| uint32 | GetInstanceId () const |
| InstanceScript * | GetInstanceScript () |
| Map * | GetMap () const |
| std::string const & | GetName () const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const |
| void | GetNearPoint2D (float &x, float &y, float distance, float absAngle) const |
| void | GetNearPosition (Position &pos, float dist, float angle) |
| uint16 | GetNotifyFlags () const |
| float | GetObjectSize () const |
| uint32 | GetPhaseMask () const |
| std::set< uint32 > const & | GetPhases () const |
| void | GetPlayerListInGrid (std::list< Player * > &lList, float fMaxSearchRange) const |
| void | GetRandomNearPosition (Position &pos, float radius) |
| void | GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| void | GetRandomPoint (Position const &srcPos, float distance, Position &pos) const |
| float | GetSightRange (WorldObject const *target=NULL) const |
| std::set< uint32 > const & | GetTerrainSwaps () const |
| virtual uint64 | GetTransGUID () const |
| float | GetTransOffsetO () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| Transport * | GetTransport () const |
| int8 | GetTransSeat () const |
| uint32 | GetTransTime () const |
| float | GetVisibilityRange () const |
| std::set< uint32 > const & | GetWorldMapSwaps () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| uint32 | GetZoneId () const |
| ZoneScript * | GetZoneScript () const |
| bool | HasPhaseList (uint32 phase) |
| bool | InSamePhase (uint32 phasemask) const |
| bool | InSamePhase (WorldObject const *obj) const |
| bool | isActiveObject () const |
| bool | isInBack (WorldObject const *target, float arc=M_PI) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| bool | isInFront (WorldObject const *target, float arc=M_PI) const |
| bool | IsInMap (WorldObject const *obj) 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 | isNeedNotify (uint16 f) const |
| bool | IsPermanentWorldObject () const |
| bool | IsPhased (uint32 phase) const |
| bool | IsPhased (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsTerrainSwaped (uint32 terrainSwap) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinLOS (float x, float y, float z) const |
| bool | IsWithinLOSInMap (WorldObject const *obj) const |
| bool | IsWorldObject () const |
| void | MonsterSay (const char *text, Language language, WorldObject const *target) |
| void | MonsterSay (int32 textId, Language language, WorldObject const *target) |
| void | MonsterTextEmote (const char *text, WorldObject const *target, bool IsBossEmote=false) |
| void | MonsterTextEmote (int32 textId, WorldObject const *target, bool IsBossEmote=false) |
| void | MonsterWhisper (const char *text, Player const *target, bool IsBossWhisper=false) |
| void | MonsterWhisper (int32 textId, Player const *target, bool IsBossWhisper=false) |
| void | MonsterYell (const char *text, Language language, WorldObject const *target) |
| void | MonsterYell (int32 textId, Language language, WorldObject const *target) |
| void | MovePosition (Position &pos, float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
| bool | NotifyExecuted (uint16 f) const |
| void | PlayDirectSound (uint32 sound_id, Player *target=NULL) |
| void | PlayDistanceSound (uint32 sound_id, Player *target) |
| void | RebuildTerrainSwaps () |
| void | RebuildWorldMapAreaSwaps () |
| void | ResetAllNotifies () |
| virtual void | ResetMap () |
| virtual void | SendMessageToSet (WorldPacket *data, bool self) |
| virtual void | SendMessageToSet (WorldPacket *data, Player const *skipped_rcvr) |
| virtual void | SendMessageToSetInRange (WorldPacket *data, float dist, bool self) |
| void | SendObjectDeSpawnAnim (uint64 guid) |
| void | SendPlaySound (uint32 SoundSound, bool OnlySelf) |
| void | setActive (bool isActiveObject) |
| virtual void | SetMap (Map *map) |
| void | SetName (std::string const &newname) |
| void | SetNotified (uint16 f) |
| void | SetTransport (Transport *t) |
| void | SetWorldObject (bool apply) |
| void | SetZoneScript () |
| TempSummon * | SummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0) const |
| TempSummon * | SummonCreature (uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, uint32 dur, CreatureAI *(*GetAI)(Creature *)=NULL) |
| void | UpdateAllowedPositionZ (float x, float y, float &z) const |
| void | UpdateAreaPhase () |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| virtual void | UpdateObjectVisibility (bool forced=true) |
| template<class NOTIFIER> | |
| void | VisitNearbyGridObject (float const &radius, NOTIFIER ¬ifier) const |
| template<class NOTIFIER> | |
| void | VisitNearbyObject (float const &radius, NOTIFIER ¬ifier) const |
| template<class NOTIFIER> | |
| void | VisitNearbyWorldObject (float const &radius, NOTIFIER ¬ifier) const |
| virtual | ~WorldObject () |
| Public Member Functions inherited from Object | |
| bool | AddUInt64Value (uint16 index, uint64 value) |
| void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
| void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
| void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyPercentModFloatValue (uint16 index, float val, bool apply) |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | ClearUpdateMask (bool remove) |
| virtual void | DestroyForPlayer (Player *target, bool onDeath=false) const |
| void | ForceValuesUpdateAtIndex (uint32) |
| uint8 | GetByteValue (uint16 index, uint8 offset) const |
| uint32 | GetDynamicUInt32Value (uint32 tab, uint16 index) const |
| uint32 | GetEntry () const |
| float | GetFloatValue (uint16 index) const |
| uint64 | GetGUID () const |
| uint32 | GetGUIDHigh () const |
| uint32 | GetGUIDLow () const |
| uint32 | GetGUIDMid () const |
| int32 | GetInt32Value (uint16 index) const |
| ObjectGuid | GetObjectGUID () const |
| float | GetObjectScale () const |
| const ByteBuffer & | GetPackGUID () const |
| TypeID | GetTypeId () const |
| uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
| uint32 | GetUInt32Value (uint16 index) const |
| uint64 | GetUInt64Value (uint16 index) const |
| uint16 | GetValuesCount () const |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| bool | HasFlag (uint16 index, uint32 flag) const |
| bool | HasFlag64 (uint16 index, uint64 flag) const |
| bool | IsInWorld () const |
| bool | isType (uint16 mask) const |
| void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | RemoveFlag (uint16 index, uint32 oldFlag) |
| void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
| bool | RemoveUInt64Value (uint16 index, uint64 value) |
| void | SendDestroyObject (Player *target, ObjectGuid Guid, bool onDeath=false) const |
| void | SendUpdateToPlayer (Player *player) |
| void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
| void | SetDynamicUInt32Value (uint32 tab, uint16 index, uint32 value) |
| void | SetEntry (uint32 entry) |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | SetFlag (uint16 index, uint32 newFlag) |
| void | SetFlag64 (uint16 index, uint64 newFlag) |
| void | SetFloatValue (uint16 index, float value) |
| void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
| void | SetInt32Value (uint16 index, int32 value) |
| virtual void | SetObjectScale (float scale) |
| void | SetStatFloatValue (uint16 index, float value) |
| void | SetStatInt32Value (uint16 index, int32 value) |
| void | SetUInt16Value (uint16 index, uint8 offset, uint16 value) |
| void | SetUInt32Value (uint16 index, uint32 value) |
| void | SetUInt64Value (uint16 index, uint64 value) |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| void | ToggleByteFlag (uint16 index, uint8 offset, uint8 flag) |
| void | ToggleFlag (uint16 index, uint32 flag) |
| void | ToggleFlag64 (uint16 index, uint64 flag) |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| void | UpdateUInt32Value (uint16 index, uint32 value) |
| virtual | ~Object () |
| Public Member Functions inherited from WorldLocation | |
| uint32 | GetMapId () const |
| WorldLocation (const WorldLocation &loc) | |
| WorldLocation (uint32 _mapid=MAPID_INVALID, float _x=0, float _y=0, float _z=0, float _o=0) | |
| void | WorldRelocate (const WorldLocation &loc) |
| Public Member Functions inherited from Position | |
| float | GetAngle (float x, float y) const |
| float | GetAngle (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const *pos) const |
| float | GetExactDist2dSq (float x, float y) const |
| float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const *pos) 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 |
| void | GetPosition (Position *pos) const |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const *pos) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (WorldObject const *target, float width) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsPositionValid () const |
| bool | operator!= (Position const &a) |
| bool | operator== (Position const &a) |
| Position::PositionXYZOStreamer | PositionXYZOStream () |
| Position::PositionXYZStreamer | PositionXYZStream () |
| 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 (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| std::string | ToString () const |
| Public Member Functions inherited from GridObject< GameObject > | |
| void | AddToGrid (GridRefManager< GameObject > &m) |
| bool | IsInGrid () const |
| void | RemoveFromGrid () |
| virtual | ~GridObject () |
Private Member Functions | |
| float | CalculateSegmentPos (float perc) |
| void | DoEventIfAny (KeyFrame const &node, bool departure) |
| bool | IsMoving () const |
| Helpers to know if stop frame was reached. | |
| void | MoveToNextWaypoint () |
| void | SetMoving (bool val) |
| bool | TeleportTransport (uint32 newMapid, float x, float y, float z) |
| Transport () | |
| void | UpdatePassengerPositions (std::set< WorldObject * > &passengers) |
Private Attributes | |
| KeyFrameVec::const_iterator | _currentFrame |
| bool | _isMoving |
| KeyFrameVec::const_iterator | _nextFrame |
| std::set< WorldObject * > | _passengers |
| bool | _pendingStop |
| TimeTrackerSmall | _positionChangeTimer |
| std::set< WorldObject * > | _staticPassengers |
| TransportTemplate const * | _transportInfo |
| bool | _triggeredArrivalEvent |
| These are needed to properly control events triggering only once for each frame. | |
| bool | _triggeredDepartureEvent |
Friends | |
| Transport * | TransportMgr::CreateLocalTransport (uint32, Map *) |
| Transport * | TransportMgr::CreateLocalTransport (uint32, Map *, float, float, float, float, uint32) |
| Transport * | TransportMgr::CreateTransport (uint32, uint32, Map *) |
Definition at line 15 of file Transport.h.
|
private |
Definition at line 24 of file Transport.cpp.
References _isMoving, _pendingStop, _transportInfo, _triggeredArrivalEvent, _triggeredDepartureEvent, GameObject::GameObject(), Object::m_updateFlag, UPDATEFLAG_LOWGUID, UPDATEFLAG_ROTATION, UPDATEFLAG_STATIONARY_POSITION, and UPDATEFLAG_TRANSPORT.
Referenced by TeleportTransport(), TransportMgr::CreateLocalTransport, TransportMgr::CreateLocalTransport, and TransportMgr::CreateTransport.
| Transport::~Transport | ( | ) |
Definition at line 30 of file Transport.cpp.
References _passengers, ASSERT, and UnloadStaticPassengers().
| void Transport::AddPassenger | ( | WorldObject * | passenger | ) |
Definition at line 314 of file Transport.cpp.
References _passengers, GAMEOBJECT_TYPE_TRANSPORT, GameObject::GetGoType(), Object::GetGUID(), WorldObject::GetName(), MovementInfo::TransportInfo::guid, Object::IsInWorld(), WorldObject::m_movementInfo, WorldObject::SetTransport(), SF_LOG_DEBUG, sScriptMgr, Object::ToPlayer(), Object::ToUnit(), MovementInfo::transport, UNIT_STATE_IGNORE_PATHFINDING, and WorldObject::WorldObject().
Referenced by Skyfire::PetTransport::AttachHunterPetToOwnerTransport(), and WorldSession::HandleMovementOpcodes().
|
virtual |
Reimplemented from Object.
Definition at line 709 of file Transport.cpp.
References MapRefManager::begin(), Object::BuildFieldsUpdate(), Object::ClearUpdateMask(), MapRefManager::end(), WorldObject::GetMap(), Map::GetPlayers(), WorldObject::GetTransport(), Player::HaveAtClient(), LinkedListHead::isEmpty(), and Object::IsInWorld().
|
inlinevirtual |
This method transforms supplied global coordinates into local offsets.
Implements TransportBase.
Definition at line 45 of file Transport.h.
References TransportBase::CalculatePassengerOffset(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
|
inlinevirtual |
This method transforms supplied transport offsets into global coordinates.
Implements TransportBase.
Definition at line 39 of file Transport.h.
References TransportBase::CalculatePassengerPosition(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
Referenced by CreateGOPassenger(), CreateNPCPassenger(), Skyfire::PetTransport::RemoveOwnerHunterPet(), and UpdatePassengerPositions().
|
private |
Definition at line 526 of file Transport.cpp.
References _currentFrame, _transportInfo, KeyFrame::DepartureTime, KeyFrame::DistSinceStop, KeyFrame::DistUntilStop, IN_MILLISECONDS, GameObject::m_goInfo, KeyFrame::NextDistFromPrev, KeyFrame::TimeFrom, and KeyFrame::TimeTo.
Referenced by Update().
| bool Transport::Create | ( | uint32 | guidlow, |
| uint32 | entry, | ||
| uint32 | mapid, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | ang, | ||
| uint32 | animprogress ) |
Definition at line 36 of file Transport.cpp.
References Object::_Create(), _currentFrame, _nextFrame, _pendingStop, _transportInfo, _triggeredArrivalEvent, _triggeredDepartureEvent, GameObjectTemplate::canBeStopped, GameObject::CreateModel(), GameObjectTemplate::displayId, GameObjectTemplate::entry, GameObjectTemplate::faction, GameObjectTemplate::flags, GAMEOBJECT_FIELD_FACTION_TEMPLATE, GAMEOBJECT_FIELD_FLAGS, GAMEOBJECT_TYPE_MO_TRANSPORT, GO_STATE_READY, HIGHGUID_MO_TRANSPORT, Position::IsPositionValid(), TransportTemplate::keyFrames, GameObject::m_goInfo, GameObject::m_goValue, GameObject::m_model, GameObjectTemplate::moTransport, GameObjectTemplate::name, OBJECT_FIELD_SCALE, TransportTemplate::pathTime, Position::Relocate(), GameObject::SetDisplayId(), Object::SetEntry(), Object::SetFloatValue(), GameObject::SetGoAnimProgress(), GameObject::SetGoState(), GameObject::SetGoType(), WorldObject::SetName(), SetPeriod(), Object::SetUInt32Value(), SF_LOG_ERROR, GameObjectTemplate::size, sObjectMgr, sTransportMgr, and GameObject::UpdateRotationFields().
Referenced by TransportMgr::CreateTransport().
| GameObject * Transport::CreateGOPassenger | ( | uint32 | guid, |
| GameObjectData const * | data ) |
Definition at line 400 of file Transport.cpp.
References _staticPassengers, Map::AddToMap(), CalculatePassengerPosition(), GameObject::GameObject(), Object::GetEntry(), Object::GetGUID(), Object::GetGUIDLow(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), MovementInfo::TransportInfo::guid, Position::IsPositionValid(), GameObject::LoadGameObjectFromDB(), WorldObject::m_movementInfo, MapObject::Map, GameObjectData::orientation, MovementInfo::TransportInfo::pos, GameObjectData::posX, GameObjectData::posY, GameObjectData::posZ, Position::Relocate(), WorldObject::SetTransport(), SF_LOG_ERROR, and MovementInfo::transport.
Referenced by LoadStaticPassengers().
| bool Transport::CreateLocal | ( | uint32 | guidlow, |
| uint32 | entry, | ||
| Map * | map, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | ang, | ||
| float | rotation0, | ||
| float | rotation1, | ||
| float | rotation2, | ||
| float | rotation3, | ||
| uint32 | animprogress ) |
Definition at line 91 of file Transport.cpp.
References Object::_Create(), _triggeredArrivalEvent, _triggeredDepartureEvent, GameObject::AIM_Initialize(), GameObject::CreateModel(), GameObjectTemplate::displayId, GameObjectTemplate::entry, GameObjectTemplate::faction, GameObjectTemplate::flags, GAMEOBJECT_FIELD_FACTION_TEMPLATE, GAMEOBJECT_FIELD_FLAGS, GAMEOBJECT_FIELD_PARENT_ROTATION, GAMEOBJECT_FIELD_PERCENT_HEALTH, GAMEOBJECT_TYPE_TRANSPORT, GameObject::GetGOInfo(), GameObject::GetGOStateValue(), Map::GetId(), Skyfire::GameObjects::GetInitialLegacyTransportState(), GO_FLAG_NODESPAWN, GO_FLAG_TRANSPORT, HIGHGUID_MO_TRANSPORT, GameObject::InitializeLegacyTransport(), Position::IsPositionValid(), WorldObject::LastUsedScriptID, GameObject::m_goInfo, GameObject::m_goValue, GameObject::m_model, GameObject::m_stationaryPosition, GameObject::m_transportPauseTimes, MapObject::Map, GameObjectTemplate::name, Position::Relocate(), GameObjectTemplate::ScriptId, Object::SetByteValue(), GameObject::SetDisplayId(), Object::SetEntry(), Object::SetFloatValue(), GameObject::SetGoAnimProgress(), GameObject::SetGoType(), GameObject::SetLegacyTransportStopped(), WorldObject::SetMap(), WorldObject::SetName(), Object::SetObjectScale(), Object::SetUInt32Value(), SF_LOG_ERROR, GameObjectTemplate::size, sObjectMgr, GameObjectTemplate::startOpen, sTransportMgr, GameObjectTemplate::transport, GameObjectTemplate::type, and GameObject::UpdateRotationFields().
Referenced by TransportMgr::CreateLocalTransport(), and TransportMgr::CreateLocalTransport().
| Creature * Transport::CreateNPCPassenger | ( | uint32 | 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 353 of file Transport.cpp.
References _staticPassengers, Map::AddToMap(), Unit::AddUnitState(), CalculatePassengerPosition(), Object::GetEntry(), Object::GetGUID(), Object::GetGUIDLow(), WorldObject::GetMap(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), MovementInfo::TransportInfo::guid, Position::IsPositionValid(), Creature::LoadCreatureFromDB(), WorldObject::m_movementInfo, MapObject::Map, CreatureData::orientation, MovementInfo::TransportInfo::pos, CreatureData::posX, CreatureData::posY, CreatureData::posZ, Position::Relocate(), Creature::SetHomePosition(), WorldObject::SetTransport(), Creature::SetTransportHomePosition(), SF_LOG_ERROR, sScriptMgr, MovementInfo::transport, and UNIT_STATE_IGNORE_PATHFINDING.
Referenced by LoadStaticPassengers().
|
private |
Definition at line 699 of file Transport.cpp.
References TaxiPathNodeEntry::arrivalEventID, TaxiPathNodeEntry::departureEventID, GameObject::EventInform(), WorldObject::GetMap(), WorldObject::GetName(), TaxiPathNodeEntry::index, KeyFrame::Node, Map::ScriptsStart(), sEventScripts, and SF_LOG_DEBUG.
Referenced by Update().
| void Transport::EnableMovement | ( | bool | enabled | ) |
Definition at line 500 of file Transport.cpp.
References _pendingStop, GameObjectTemplate::canBeStopped, GAMEOBJECT_TYPE_TRANSPORT, GameObject::GetGOInfo(), GameObject::GetGoType(), GO_STATE_ACTIVE, GO_STATE_READY, and GameObject::SetGoState().
Referenced by debug_commandscript::HandleDebugTransportCommand().
|
inline |
Definition at line 54 of file Transport.h.
References _transportInfo.
Referenced by MoveToNextWaypoint(), and Update().
|
inline |
Definition at line 33 of file Transport.h.
References _passengers.
|
inline |
Definition at line 50 of file Transport.h.
References GAMEOBJECT_FIELD_LEVEL, and Object::GetUInt32Value().
Referenced by Update().
|
inline |
Definition at line 52 of file Transport.h.
References GameObject::GetGOValue(), GameObjectValue::PathProgress, and GameObjectValue::Transport.
Referenced by TransportMgr::CreateLocalTransport(), and Update().
|
inline |
|
inlineprivate |
Helpers to know if stop frame was reached.
Definition at line 76 of file Transport.h.
References _isMoving.
Referenced by Update().
| void Transport::LoadStaticPassengers | ( | ) |
Needed when transport moves from inactive to active grid.
Definition at line 470 of file Transport.cpp.
References CreateGOPassenger(), CreateNPCPassenger(), GameObject::GetGOInfo(), WorldObject::GetMap(), GameObjectTemplate::mapID, and sObjectMgr.
Referenced by UpdatePosition().
|
private |
Definition at line 514 of file Transport.cpp.
References _currentFrame, _nextFrame, _triggeredArrivalEvent, _triggeredDepartureEvent, and GetKeyFrames().
Referenced by Update().
| void Transport::RemovePassenger | ( | WorldObject * | passenger | ) |
Definition at line 335 of file Transport.cpp.
References _passengers, _staticPassengers, GAMEOBJECT_TYPE_TRANSPORT, GameObject::GetGoType(), WorldObject::GetName(), WorldObject::m_movementInfo, MovementInfo::TransportInfo::Reset(), WorldObject::SetTransport(), SF_LOG_DEBUG, sScriptMgr, Object::ToPlayer(), Object::ToUnit(), MovementInfo::transport, UNIT_STATE_IGNORE_PATHFINDING, and WorldObject::WorldObject().
Referenced by GameObject::CleanupsBeforeDelete(), Unit::CleanupsBeforeDelete(), WorldSession::HandleMovementOpcodes(), and Skyfire::PetTransport::RemoveOwnerHunterPet().
|
inlineprivate |
|
inline |
Definition at line 51 of file Transport.h.
References GAMEOBJECT_FIELD_LEVEL, and Object::SetUInt32Value().
Referenced by Create().
|
private |
Definition at line 557 of file Transport.cpp.
References _passengers, Map::AddToMap(), MapRefManager::begin(), Object::BuildCreateUpdateBlockForPlayer(), Object::BuildOutOfRangeUpdateBlock(), UpdateData::BuildPacket(), TransportBase::CalculatePassengerPosition(), MapRefManager::end(), Creature::FarTeleportTo(), GameObject::GameObject(), Map::GetId(), WorldObject::GetMap(), WorldLocation::GetMapId(), Position::GetOrientation(), Map::GetPlayers(), Position::GetPosition(), Object::GetTypeId(), LinkedListHead::isEmpty(), WorldObject::m_movementInfo, MapObject::Map, MovementInfo::TransportInfo::pos, Position::Relocate(), Map::RemoveFromMap(), WorldObject::SetMap(), sMapMgr, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_UNSUMMON_PET, Player::TeleportTo(), Object::ToCreature(), Object::ToGameObject(), Object::ToPlayer(), Transport(), MovementInfo::transport, TYPEID_GAMEOBJECT, TYPEID_PLAYER, TYPEID_UNIT, UnloadStaticPassengers(), GameObject::UpdateModelPosition(), UpdatePosition(), and WorldObject::WorldObject().
Referenced by Update().
| void Transport::UnloadStaticPassengers | ( | ) |
Needed when transport enters inactive grid.
Definition at line 491 of file Transport.cpp.
References _staticPassengers, WorldObject::AddObjectToRemoveList(), and WorldObject::WorldObject().
Referenced by TeleportTransport(), UpdatePosition(), and ~Transport().
|
virtual |
Reimplemented from GameObject.
Definition at line 170 of file Transport.cpp.
References _currentFrame, _nextFrame, _pendingStop, _positionChangeTimer, _triggeredArrivalEvent, _triggeredDepartureEvent, GameObject::AI(), GameObject::AIM_Initialize(), GameObjectValue::AnimationInfo, CalculateSegmentPos(), GameObjectTemplate::canBeStopped, DoEventIfAny(), GAMEOBJECT_FIELD_PARENT_ROTATION, GAMEOBJECT_TYPE_TRANSPORT, Object::GetEntry(), Object::GetFloatValue(), GameObject::GetGOInfo(), GameObject::GetGoState(), GameObject::GetGoType(), GameObject::GetGOValue(), GetKeyFrames(), WorldObject::GetName(), GetPeriod(), GameObject::GetStationaryO(), GameObject::GetStationaryX(), GameObject::GetStationaryY(), GameObject::GetStationaryZ(), GetTimer(), GO_STATE_ACTIVE, GO_STATE_READY, IsMoving(), GameObject::m_goValue, MoveToNextWaypoint(), TransportAnimation::Path, GameObject::SetGoState(), SetMoving(), SF_LOG_DEBUG, SF_LOG_ERROR, sScriptMgr, TeleportTransport(), TransportAnimationEntry::TimeSeg, GameObjectValue::Transport, GameObjectAI::UpdateAI(), GameObject::UpdateLegacyTransportPathProgress(), UpdatePosition(), TransportAnimationEntry::X, TransportAnimationEntry::Y, and TransportAnimationEntry::Z.
|
private |
Definition at line 652 of file Transport.cpp.
References CalculatePassengerPosition(), Map::CreatureRelocation(), Map::GameObjectRelocation(), WorldObject::GetMap(), Position::GetPosition(), Creature::GetTransportHomePosition(), Object::GetTypeId(), WorldObject::m_movementInfo, Map::PlayerRelocation(), MovementInfo::TransportInfo::pos, Creature::SetHomePosition(), Object::ToCreature(), Object::ToGameObject(), Object::ToPlayer(), Object::ToUnit(), MovementInfo::transport, TYPEID_GAMEOBJECT, TYPEID_PLAYER, TYPEID_UNIT, and WorldObject::WorldObject().
Referenced by UpdatePosition().
| void Transport::UpdatePosition | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | o ) |
Definition at line 439 of file Transport.cpp.
References _passengers, _staticPassengers, GAMEOBJECT_TYPE_TRANSPORT, GameObject::GetGoType(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), Map::IsGridLoaded(), LoadStaticPassengers(), Position::Relocate(), UnloadStaticPassengers(), GameObject::UpdateModelPosition(), UpdatePassengerPositions(), GameObject::UpdateRotationFields(), and GameObject::UpdateWorldRotationField().
Referenced by TeleportTransport(), and Update().
|
friend |
References MapObject::Map, and Transport().
|
friend |
References MapObject::Map, and Transport().
|
friend |
References MapObject::Map, Transport(), and WorldObject::WorldObject().
|
private |
Definition at line 81 of file Transport.h.
Referenced by CalculateSegmentPos(), Create(), MoveToNextWaypoint(), and Update().
|
private |
Definition at line 84 of file Transport.h.
Referenced by IsMoving(), SetMoving(), and Transport().
|
private |
Definition at line 82 of file Transport.h.
Referenced by Create(), MoveToNextWaypoint(), and Update().
|
private |
Definition at line 91 of file Transport.h.
Referenced by AddPassenger(), GetPassengers(), RemovePassenger(), TeleportTransport(), UpdatePosition(), and ~Transport().
|
private |
Definition at line 85 of file Transport.h.
Referenced by Create(), EnableMovement(), Transport(), and Update().
|
private |
Definition at line 83 of file Transport.h.
Referenced by Update().
|
private |
Definition at line 92 of file Transport.h.
Referenced by CreateGOPassenger(), CreateNPCPassenger(), RemovePassenger(), UnloadStaticPassengers(), and UpdatePosition().
|
private |
Definition at line 79 of file Transport.h.
Referenced by CalculateSegmentPos(), Create(), GetKeyFrames(), GetTransportTemplate(), and Transport().
|
private |
These are needed to properly control events triggering only once for each frame.
Definition at line 88 of file Transport.h.
Referenced by Create(), CreateLocal(), MoveToNextWaypoint(), Transport(), and Update().
|
private |
Definition at line 89 of file Transport.h.
Referenced by Create(), CreateLocal(), MoveToNextWaypoint(), Transport(), and Update().