AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "PlayerTaxi.h"
Public Member Functions | |
PlayerTaxi () | |
~PlayerTaxi ()=default | |
void | InitTaxiNodesForLevel (uint32 race, uint32 chrClass, uint8 level) |
bool | LoadTaxiMask (std::string_view data) |
bool | IsTaximaskNodeKnown (uint32 nodeidx) const |
bool | SetTaximaskNode (uint32 nodeidx) |
void | AppendTaximaskTo (ByteBuffer &data, bool all) |
bool | LoadTaxiDestinationsFromString (std::string const &values, TeamId teamId) |
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) |
|
inline |
|
default |
|
inline |
Referenced by Player::ActivateTaxiPathTo(), Player::LoadFromDB(), LoadTaxiDestinationsFromString(), and Player::ProcessDelayedOperations().
void PlayerTaxi::AppendTaximaskTo | ( | ByteBuffer & | data, |
bool | all | ||
) |
References m_taximask, sTaxiNodesMask, and TaxiMaskSize.
Referenced by WorldSession::SendTaxiMenu().
|
inline |
|
inline |
Referenced by FlightPathMovementGenerator::DoFinalize(), and Player::SetEntryPoint().
uint32 PlayerTaxi::GetCurrentTaxiPath | ( | ) | const |
References m_TaxiDestinations, and sObjectMgr.
Referenced by Player::ContinueTaxiFlight().
FactionTemplateEntry const * PlayerTaxi::GetFlightMasterFactionTemplate | ( | ) | const |
References m_flightMasterFactionId, and sFactionTemplateStore.
Referenced by FlightPathMovementGenerator::LoadPath().
|
inline |
Referenced by FlightPathMovementGenerator::LoadPath().
|
inline |
Referenced by WorldSession::HandleMoveSplineDoneOpcode(), and Player::SetEntryPoint().
|
inline |
Referenced by Player::ContinueTaxiFlight(), LoadTaxiDestinationsFromString(), and Player::SetEntryPoint().
References CLASS_DEATH_KNIGHT, m_taximask, RACE_BLOODELF, RACE_DRAENEI, RACE_DWARF, RACE_GNOME, RACE_HUMAN, RACE_NIGHTELF, RACE_ORC, RACE_TAUREN, RACE_TROLL, RACE_UNDEAD_PLAYER, SetTaximaskNode(), sOldContinentsNodesMask, TaxiMaskSize, TEAM_ALLIANCE, TEAM_HORDE, and Player::TeamIdForRace().
Referenced by Player::InitTaxiNodesForLevel().
|
inline |
Referenced by Player::SendTaxiNodeStatusMultiple(), and WorldSession::SendTaxiStatus().
bool PlayerTaxi::LoadTaxiDestinationsFromString | ( | std::string const & | values, |
TeamId | teamId | ||
) |
References AddTaxiDestination(), ClearTaxiDestinations(), GetTaxiSource(), m_flightMasterFactionId, m_TaxiDestinations, sObjectMgr, and Acore::Tokenize().
Referenced by Player::LoadFromDB().
bool PlayerTaxi::LoadTaxiMask | ( | std::string_view | data | ) |
References m_taximask, sTaxiNodesMask, TaxiMaskSize, and Acore::Tokenize().
Referenced by Player::LoadFromDB().
|
inline |
Referenced by FlightPathMovementGenerator::DoUpdate().
std::string PlayerTaxi::SaveTaxiDestinationsToString | ( | ) |
References ASSERT, m_flightMasterFactionId, and m_TaxiDestinations.
Referenced by Player::_SaveCharacter().
|
inline |
Referenced by Player::ActivateTaxiPathTo().
|
inline |
Referenced by InitTaxiNodesForLevel().
|
friend |
|
private |
|
private |
Referenced by GetCurrentTaxiPath(), LoadTaxiDestinationsFromString(), and SaveTaxiDestinationsToString().
|
private |
Referenced by AppendTaximaskTo(), InitTaxiNodesForLevel(), and LoadTaxiMask().