|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <TransportMgr.h>
Public Member Functions | |
| void | AddLocalTransportSpawn (uint16 mapId, uint32 spawnMask, uint32 guid) |
| void | CreateInstanceTransports (Map *map) |
| Transport * | CreateLocalTransport (uint32 entry, Map *map, float x, float y, float z, float o, uint32 animprogress) |
| Transport * | CreateLocalTransport (uint32 guid, Map *map) |
| Transport * | CreateTransport (uint32 entry, uint32 guid=0, Map *map=NULL) |
| uint32 | GetLocalTransportEntry (uint32 entry) const |
| TransportAnimation const * | GetTransportAnimInfo (uint32 entry) const |
| TransportTemplate const * | GetTransportTemplate (uint32 entry) const |
| void | LoadTransportTemplates () |
| void | SpawnContinentTransports () |
| void | SpawnLocalTransports (Map *map) |
| void | Unload () |
Private Member Functions | |
| void | AddPathNodeToTransport (uint32 transportEntry, uint32 timeSeg, TransportAnimationEntry const *node) |
| void | AddPathRotationToTransport (uint32 transportEntry, uint32 timeSeg, TransportRotationEntry const *node) |
| void | GeneratePath (GameObjectTemplate const *goInfo, TransportTemplate *transport) |
| TransportMgr & | operator= (TransportMgr const &) |
| TransportMgr () | |
| TransportMgr (TransportMgr const &) | |
| ~TransportMgr () | |
Private Attributes | |
| TransportInstanceMap | _instanceTransports |
| TransportInstanceMap | _localTransportSpawns |
| TransportAnimationContainer | _transportAnimations |
| TransportTemplates | _transportTemplates |
Friends | |
| void | LoadDBCStores (std::string const &dataPath) |
| class | Skyfire::Singleton< TransportMgr, Skyfire::Mutex > |
Definition at line 88 of file TransportMgr.h.
|
private |
Definition at line 26 of file TransportMgr.cpp.
Referenced by operator=(), and TransportMgr().
|
private |
Definition at line 28 of file TransportMgr.cpp.
|
private |
References TransportMgr().
Definition at line 115 of file TransportMgr.h.
References _localTransportSpawns, AddLocalTransportSpawn(), and MAKE_PAIR32().
Referenced by AddLocalTransportSpawn().
|
private |
Definition at line 327 of file TransportMgr.cpp.
References _transportAnimations, TransportAnimation::Path, and TransportAnimation::TotalTime.
|
inlineprivate |
Definition at line 150 of file TransportMgr.h.
References _transportAnimations.
| void TransportMgr::CreateInstanceTransports | ( | Map * | map | ) |
Definition at line 481 of file TransportMgr.cpp.
References _instanceTransports, CreateTransport(), and Map::GetId().
| Transport * TransportMgr::CreateLocalTransport | ( | uint32 | entry, |
| Map * | map, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | o, | ||
| uint32 | animprogress ) |
Definition at line 379 of file TransportMgr.cpp.
References Map::AddToMap(), ASSERT, Transport::CreateLocal(), and WorldObject::GetMap().
Definition at line 336 of file TransportMgr.cpp.
References Map::AddToMap(), LegacyTransport::LegacyTransportSpawnDiagnostic::AnimNodes, GameObjectData::animprogress, LegacyTransport::LegacyTransportSpawnDiagnostic::AnimTime, ASSERT, Transport::CreateLocal(), GameObject::GetGoState(), GameObject::GetGoType(), Object::GetGUID(), Map::GetId(), GetLocalTransportEntry(), WorldObject::GetMap(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Map::GetSpawnMode(), Transport::GetTimer(), GetTransportAnimInfo(), GameObject::GetTransportPeriod(), Object::GetUInt32Value(), GUID_HIPART(), GUID_LOPART(), GameObjectData::id, LegacyTransport::IsAllowedOnMap(), LegacyTransport::LogCreateAttempt(), LegacyTransport::LogCreateFailure(), LegacyTransport::LogCreateSuccess(), LegacyTransport::LogMissingCreateAnimationData(), LegacyTransport::LegacyTransportSpawnDiagnostic::O, OBJECT_FIELD_DYNAMIC_FLAGS, GameObjectData::orientation, GameObjectData::posX, GameObjectData::posY, GameObjectData::posZ, GameObjectData::rotation0, GameObjectData::rotation1, GameObjectData::rotation2, GameObjectData::rotation3, SF_LOG_ERROR, sObjectMgr, LegacyTransport::LegacyTransportSpawnDiagnostic::X, LegacyTransport::LegacyTransportSpawnDiagnostic::Y, and LegacyTransport::LegacyTransportSpawnDiagnostic::Z.
Referenced by SpawnLocalTransports().
Definition at line 392 of file TransportMgr.cpp.
References Map::AddToMap(), Transport::Create(), InstanceMap::GetInstanceScript(), WorldObject::GetMap(), WorldObject::GetName(), GetTransportTemplate(), HIGHGUID_MO_TRANSPORT, TransportTemplate::inInstance, Map::IsInstance(), TransportTemplate::keyFrames, WorldObject::m_zoneScript, TaxiPathNodeEntry::mapid, WorldObject::SetMap(), SF_LOG_ERROR, sMapMgr, sMapStore, sObjectMgr, Map::ToInstanceMap(), TaxiPathNodeEntry::x, TaxiPathNodeEntry::y, and TaxiPathNodeEntry::z.
Referenced by CreateInstanceTransports(), and SpawnContinentTransports().
|
private |
Definition at line 80 of file TransportMgr.cpp.
References TransportTemplate::accelDist, GameObjectTemplate::accelRate, TransportTemplate::accelTime, TaxiPathNodeEntry::actionFlag, ASSERT, GameObjectTemplate::canBeStopped, IN_MILLISECONDS, TransportTemplate::inInstance, Movement::Spline< length_type >::init_cyclic_spline(), Movement::Spline< length_type >::init_spline(), Movement::Spline< length_type >::initLengths(), TransportTemplate::keyFrames, Movement::SplineBase::last(), Movement::Spline< length_type >::length(), TaxiPathNodeEntry::mapid, TransportTemplate::mapsUsed, Movement::SplineBase::ModeCatmullrom, GameObjectTemplate::moTransport, GameObjectTemplate::moveSpeed, KeyFrame::Node, TransportTemplate::pathTime, Path< PathElem, PathNode >::size(), sMapStore, sTaxiPathNodesByPath, GameObjectTemplate::taxiPathId, TaxiPathNodeEntry::x, TaxiPathNodeEntry::y, and TaxiPathNodeEntry::z.
Referenced by LoadTransportTemplates().
Definition at line 35 of file TransportMgr.cpp.
References LegacyTransport::GetClientEntryForDbEntry().
Referenced by CreateLocalTransport().
|
inline |
Definition at line 130 of file TransportMgr.h.
References _transportAnimations.
Referenced by CreateLocalTransport().
|
inline |
Definition at line 122 of file TransportMgr.h.
References _transportTemplates.
Referenced by CreateTransport(), and SpawnContinentTransports().
| void TransportMgr::LoadTransportTemplates | ( | ) |
Definition at line 40 of file TransportMgr.cpp.
References _instanceTransports, _transportTemplates, TransportTemplate::entry, GeneratePath(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), TransportTemplate::inInstance, TransportTemplate::mapsUsed, GameObjectTemplate::moTransport, GameObjectTemplate::name, SF_LOG_ERROR, SF_LOG_INFO, sObjectMgr, sTaxiPathNodesByPath, GameObjectTemplate::taxiPathId, and WorldDatabase.
|
private |
References TransportMgr().
| void TransportMgr::SpawnContinentTransports | ( | ) |
Definition at line 453 of file TransportMgr.cpp.
References _transportTemplates, CreateTransport(), getMSTime(), GetMSTimeDiffToNow(), GetTransportTemplate(), Field::GetUInt32(), SF_LOG_INFO, and WorldDatabase.
| void TransportMgr::SpawnLocalTransports | ( | Map * | map | ) |
Definition at line 494 of file TransportMgr.cpp.
References _localTransportSpawns, CreateLocalTransport(), Map::GetId(), Map::GetSpawnMode(), LegacyTransport::LogNoRegisteredSpawns(), LegacyTransport::LogSpawnCount(), and MAKE_PAIR32().
| void TransportMgr::Unload | ( | ) |
Definition at line 30 of file TransportMgr.cpp.
References _transportTemplates.
|
friend |
Definition at line 318 of file DBCStores.cpp.
References ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL, ASSERT, SkillLineEntry::categoryId, ChrSpecializationEntry::classId, DBCFileCount, DIFFICULTY_NONE, DIFFICULTY_SCE_HEROIC, DIFFICULTY_SCE_NORMAL, GetClassBySkillId(), getMSTime(), GetMSTimeDiffToNow(), SpellDifficultyEntry::ID, SpellEntry::Id, SkillLineAbilityEntry::learnOnGetSkill, LoadDBC(), TaxiNodesEntry::map_id, MAX_BATTLEGROUND_BRACKETS, MAX_CLASSES, MAX_POWERS, MAX_TALENT_RANK, TaxiNodesEntry::MountCreatureID, ChrClassesEntry::name, SkillLineEntry::name, PowersByClass, sAchievementStore, sAllianceTaxiNodesMask, sAreaFlagByAreaID, sAreaFlagByMapID, sAreaGroupStore, sAreaStore, sAreaTriggerStore, sArmorLocationStore, sAuctionHouseStore, sBankBagSlotPricesStore, sBannedAddOnsStore, sBarberShopStyleStore, sBattlemasterListStore, sCharStartOutfitMap, sCharStartOutfitStore, sCharTitlesStore, sChatChannelsStore, sChrClassesStore, sChrPowerTypesStore, sChrRacesStore, sChrSpecializationStore, sCinematicCameraStore, sCinematicSequencesStore, sClassBySkillIdStore, sCreatureDisplayInfoStore, sCreatureFamilyStore, sCreatureModelDataStore, sCreatureSpellDataStore, sCreatureTypeStore, sCriteriaStore, sCriteriaTreeStore, sCurrencyTypesStore, sDeathKnightTaxiNodesMask, sDestructibleModelDataStore, sDifficultyStore, sDigsitePOIPolygons, sDungeonEncounterStore, sDurabilityCostsStore, sDurabilityQualityStore, sEmotesStore, sEmotesTextStore, SF_LOG_ERROR, SF_LOG_INFO, sFactionStore, sFactionTeamMap, sFactionTemplateStore, sGameObjectDisplayInfoStore, sGemPropertiesStore, sGenNameVectoArraysMap, sGlyphPropertiesStore, sGlyphSlotStore, sGtBarberShopCostBaseStore, sGtBattlePetXpStore, sGtChanceToMeleeCritBaseStore, sGtChanceToMeleeCritStore, sGtChanceToSpellCritBaseStore, sGtChanceToSpellCritStore, sGtCombatRatingsStore, sGtNPCManaCostScalerStore, sGtOCTBaseHPByClassStore, sGtOCTBaseMPByClassStore, sGtOCTClassCombatRatingScalarStore, sGtOCTHpPerStaminaStore, sGtRegenMPPerSptStore, sGtSpellScalingStore, sGuildPerkSpellsStore, sHolidaysStore, sHordeTaxiNodesMask, sImportPriceArmorStore, sImportPriceQualityStore, sImportPriceShieldStore, sImportPriceWeaponStore, sItemArmorQualityStore, sItemArmorShieldStore, sItemArmorTotalStore, sItemClassStore, sItemDamageAmmoStore, sItemDamageOneHandCasterStore, sItemDamageOneHandStore, sItemDamageRangedStore, sItemDamageThrownStore, sItemDamageTwoHandCasterStore, sItemDamageTwoHandStore, sItemDamageWandStore, sItemDisenchantLootStore, sItemLimitCategoryStore, sItemPriceBaseStore, sItemRandomPropertiesStore, sItemRandomSuffixStore, sItemReforgeStore, sItemSetStore, SKILL_CATEGORY_CLASS, SkillLineAbilityEntry::skillId, CreatureFamilyEntry::skillLine, sLFGDungeonStore, sLiquidTypeStore, sLockStore, sMailTemplateStore, sMapDifficultyMap, sMapDifficultyStore, sMapStore, sModifierTreeStore, sMountCapabilityStore, sMountTypeStore, sMovieStore, sNameGenStore, sOldContinentsNodesMask, sOverrideSpellDataStore, SPELL_ATTR0_PASSIVE, SPELL_EFFECT_SEND_TAXI, SpellEntry::SpellCategoriesId, SpellEffectScalingEntry::SpellEffectId, SpellDifficultyEntry::SpellID, TalentEntry::SpellId, SkillLineAbilityEntry::spellId, SpellLevelsEntry::spellLevel, SpellEntry::SpellLevelsId, SpellEntry::SpellMiscId, sPetFamilySpellsStore, sPhaseGroupStore, sPhasesByGroup, sPhaseStore, sPvPDifficultyStore, sQuestFactionRewardStore, sQuestPOIPointStore, sQuestSortStore, sQuestXPStore, sRandomPropertiesPointsStore, sResearchBranchStore, sResearchProjectStore, sResearchSiteStore, sScalingStatDistributionStore, sScalingStatValuesStore, sSkillLineAbilityStore, sSkillLineStore, sSoundEntriesStore, sSpecializationClassStore, sSpecializationSpellsMap, sSpecializationSpellsStore, sSpellAuraOptionsStore, sSpellAuraRestrictionsStore, sSpellCastingRequirementsStore, sSpellCastTimesStore, sSpellCategoriesStore, sSpellCategoryStore, sSpellClassOptionsStore, sSpellCooldownsStore, sSpellDifficultyStore, sSpellDurationStore, sSpellEffectScalingStore, sSpellEffectScallingByEffectId, sSpellEffectStore, sSpellEquippedItemsStore, sSpellFocusObjectStore, sSpellInterruptsStore, sSpellItemEnchantmentConditionStore, sSpellItemEnchantmentStore, sSpellLevelsStore, sSpellMgr, sSpellMiscStore, sSpellPowerStore, sSpellRadiusStore, sSpellRangeStore, sSpellRuneCostStore, sSpellsByCategoryStore, sSpellScalingStore, sSpellShapeshiftFormStore, sSpellShapeshiftStore, sSpellsPerClassStore, sSpellStore, sSpellTargetRestrictionsStore, sSpellTotemsStore, sSummonPropertiesStore, sTalentSpellPosMap, sTalentStore, sTaxiNodesMask, sTaxiNodesStore, sTaxiPathNodesByPath, sTaxiPathNodeStore, sTaxiPathSetBySource, sTaxiPathStore, sTotemCategoryStore, sTransportAnimationStore, sTransportMgr, sTransportRotationStore, sUnitPowerBarStore, sVehicleSeatStore, sVehicleStore, sWMOAreaInfoByTripple, sWMOAreaTableStore, sWorldMapAreaStore, sWorldMapOverlayStore, sWorldSafeLocsStore, ChrSpecializationEntry::TabPage, FactionEntry::team, TransportAnimationEntry::TimeSeg, TransportRotationEntry::TimeSeg, TransportAnimationEntry::TransportEntry, and TransportRotationEntry::TransportEntry.
|
friend |
Definition at line 83 of file TransportMgr.h.
|
private |
Definition at line 159 of file TransportMgr.h.
Referenced by CreateInstanceTransports(), and LoadTransportTemplates().
|
private |
Definition at line 163 of file TransportMgr.h.
Referenced by AddLocalTransportSpawn(), and SpawnLocalTransports().
|
private |
Definition at line 161 of file TransportMgr.h.
Referenced by AddPathNodeToTransport(), AddPathRotationToTransport(), and GetTransportAnimInfo().
|
private |
Definition at line 156 of file TransportMgr.h.
Referenced by GetTransportTemplate(), LoadTransportTemplates(), SpawnContinentTransports(), and Unload().