![]() |
TrinityCore
|
#include <PlayerTaxi.h>
Public Member Functions | |
| PlayerTaxi () | |
| ~PlayerTaxi () | |
| void | InitTaxiNodesForLevel (uint32 race, uint32 chrClass, uint8 level) |
| bool | LoadTaxiMask (std::string const &data) |
| bool | IsTaximaskNodeKnown (uint32 nodeidx) const |
| bool | SetTaximaskNode (uint32 nodeidx) |
| void | AppendTaximaskTo (ByteBuffer &data, bool all) |
| bool | LoadTaxiDestinationsFromString (std::string const &values, uint32 team) |
| std::string | SaveTaxiDestinationsToString () |
| void | ClearTaxiDestinations () |
| void | AddTaxiDestination (uint32 dest) |
| uint32 | GetTaxiSource () const |
| uint32 | GetTaxiDestination () const |
| uint32 | GetCurrentTaxiPath () const |
| uint32 | NextTaxiDestination () |
| std::deque< uint32 > const & | GetPath () const |
| bool | empty () const |
| FactionTemplateEntry const * | GetFlightMasterFactionTemplate () const |
| void | SetFlightMasterFactionTemplateId (uint32 factionTemplateId) |
Private Attributes | |
| TaxiMask | m_taximask |
| std::deque< uint32 > | m_TaxiDestinations |
| uint32 | m_flightMasterFactionId |
Friends | |
| std::ostringstream & | operator<< (std::ostringstream &ss, PlayerTaxi const &taxi) |
Definition at line 30 of file PlayerTaxi.h.
|
inline |
Definition at line 33 of file PlayerTaxi.h.
|
inline |
Definition at line 34 of file PlayerTaxi.h.
|
inline |
Definition at line 64 of file PlayerTaxi.h.
Referenced by Player::ActivateTaxiPathTo(), Player::LoadFromDB(), LoadTaxiDestinationsFromString(), and Player::ProcessDelayedOperations().
| void PlayerTaxi::AppendTaximaskTo | ( | ByteBuffer & | data, |
| bool | all | ||
| ) |
Definition at line 87 of file PlayerTaxi.cpp.
References ByteBuffer::append(), TaxiMask::data(), m_taximask, TaxiMask::size(), and sTaxiNodesMask.
Referenced by WorldSession::SendTaxiMenu().
|
inline |
Definition at line 63 of file PlayerTaxi.h.
Referenced by Player::ActivateTaxiPathTo(), Player::CleanupAfterTaxiFlight(), FlightPathMovementGenerator::DoFinalize(), Player::FinishTaxiFlight(), Player::LoadFromDB(), and LoadTaxiDestinationsFromString().
|
inline |
Definition at line 75 of file PlayerTaxi.h.
Referenced by FlightPathMovementGenerator::DoFinalize(), and Player::SetBattlegroundEntryPoint().
| uint32 PlayerTaxi::GetCurrentTaxiPath | ( | ) | const |
Definition at line 158 of file PlayerTaxi.cpp.
References m_TaxiDestinations, and sObjectMgr.
Referenced by Player::ContinueTaxiFlight().
| FactionTemplateEntry const * PlayerTaxi::GetFlightMasterFactionTemplate | ( | ) | const |
Definition at line 178 of file PlayerTaxi.cpp.
References m_flightMasterFactionId, and sFactionTemplateStore.
Referenced by FlightPathMovementGenerator::LoadPath().
|
inline |
Definition at line 74 of file PlayerTaxi.h.
Referenced by FlightPathMovementGenerator::LoadPath().
|
inline |
Definition at line 66 of file PlayerTaxi.h.
Referenced by FlightPathMovementGenerator::DoFinalize(), WorldSession::HandleMoveSplineDoneOpcode(), and Player::SetBattlegroundEntryPoint().
|
inline |
Definition at line 65 of file PlayerTaxi.h.
Referenced by Player::ContinueTaxiFlight(), Player::LoadFromDB(), LoadTaxiDestinationsFromString(), and Player::SetBattlegroundEntryPoint().
Definition at line 25 of file PlayerTaxi.cpp.
References ALLIANCE, CLASS_DEATH_KNIGHT, HORDE, m_taximask, RACE_BLOODELF, RACE_DRAENEI, RACE_DWARF, RACE_GNOME, RACE_HUMAN, RACE_NIGHTELF, RACE_ORC, RACE_TAUREN, RACE_TROLL, RACE_UNDEAD_PLAYER, SetTaximaskNode(), TaxiMask::size(), sOldContinentsNodesMask, and Player::TeamForRace().
Referenced by Player::InitTaxiNodesForLevel().
|
inline |
Definition at line 39 of file PlayerTaxi.h.
Referenced by Player::SendTaxiNodeStatusMultiple(), and WorldSession::SendTaxiStatus().
| bool PlayerTaxi::LoadTaxiDestinationsFromString | ( | std::string const & | values, |
| uint32 | team | ||
| ) |
Definition at line 95 of file PlayerTaxi.cpp.
References AddTaxiDestination(), ClearTaxiDestinations(), GetTaxiSource(), m_flightMasterFactionId, m_TaxiDestinations, sObjectMgr, and Trinity::Tokenize().
Referenced by Player::LoadFromDB().
| bool PlayerTaxi::LoadTaxiMask | ( | std::string const & | data | ) |
Definition at line 65 of file PlayerTaxi.cpp.
References m_taximask, TaxiMask::size(), sTaxiNodesMask, and Trinity::Tokenize().
Referenced by Player::LoadFromDB().
|
inline |
Definition at line 68 of file PlayerTaxi.h.
Referenced by FlightPathMovementGenerator::DoUpdate().
| std::string PlayerTaxi::SaveTaxiDestinationsToString | ( | ) |
Definition at line 142 of file PlayerTaxi.cpp.
References ASSERT, m_flightMasterFactionId, and m_TaxiDestinations.
Referenced by Player::SaveToDB().
|
inline |
Definition at line 77 of file PlayerTaxi.h.
Referenced by Player::ActivateTaxiPathTo().
|
inline |
Definition at line 45 of file PlayerTaxi.h.
Referenced by InitTaxiNodesForLevel().
|
friend |
Definition at line 171 of file PlayerTaxi.cpp.
|
private |
Definition at line 83 of file PlayerTaxi.h.
Referenced by GetFlightMasterFactionTemplate(), LoadTaxiDestinationsFromString(), and SaveTaxiDestinationsToString().
|
private |
Definition at line 82 of file PlayerTaxi.h.
Referenced by GetCurrentTaxiPath(), LoadTaxiDestinationsFromString(), and SaveTaxiDestinationsToString().
|
private |
Definition at line 81 of file PlayerTaxi.h.
Referenced by AppendTaximaskTo(), InitTaxiNodesForLevel(), LoadTaxiMask(), and operator<<().