TrinityCore
PlayerTaxi Class Reference

#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 (WorldPackets::Taxi::ShowTaxiNodes &data, bool all)
 
TaxiMask const & GetTaxiMask () const
 
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 ()
 
bool RequestEarlyLanding ()
 
std::deque< uint32 > const & GetPath () const
 
bool empty () const
 
FactionTemplateEntry const * GetFlightMasterFactionTemplate () const
 
void SetFlightMasterFactionTemplateId (uint32 factionTemplateId)
 

Private Attributes

TaxiMask m_taximask
 
std::deque< uint32m_TaxiDestinations
 
uint32 m_flightMasterFactionId
 

Friends

std::ostringstream & operator<< (std::ostringstream &ss, PlayerTaxi const &taxi)
 

Detailed Description

Definition at line 36 of file PlayerTaxi.h.

Constructor & Destructor Documentation

◆ PlayerTaxi()

PlayerTaxi::PlayerTaxi ( )
inline

Definition at line 39 of file PlayerTaxi.h.

◆ ~PlayerTaxi()

PlayerTaxi::~PlayerTaxi ( )
inline

Definition at line 40 of file PlayerTaxi.h.

Member Function Documentation

◆ AddTaxiDestination()

void PlayerTaxi::AddTaxiDestination ( uint32  dest)
inline

Definition at line 71 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ AppendTaximaskTo()

void PlayerTaxi::AppendTaximaskTo ( WorldPackets::Taxi::ShowTaxiNodes data,
bool  all 
)

Definition at line 122 of file PlayerTaxi.cpp.

+ Here is the caller graph for this function:

◆ ClearTaxiDestinations()

void PlayerTaxi::ClearTaxiDestinations ( )
inline

Definition at line 70 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ empty()

bool PlayerTaxi::empty ( ) const
inline

Definition at line 82 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ GetCurrentTaxiPath()

uint32 PlayerTaxi::GetCurrentTaxiPath ( ) const

Definition at line 199 of file PlayerTaxi.cpp.

+ Here is the caller graph for this function:

◆ GetFlightMasterFactionTemplate()

FactionTemplateEntry const * PlayerTaxi::GetFlightMasterFactionTemplate ( ) const

Definition at line 240 of file PlayerTaxi.cpp.

+ Here is the caller graph for this function:

◆ GetPath()

std::deque< uint32 > const & PlayerTaxi::GetPath ( ) const
inline

Definition at line 81 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ GetTaxiDestination()

uint32 PlayerTaxi::GetTaxiDestination ( ) const
inline

Definition at line 73 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ GetTaxiMask()

TaxiMask const & PlayerTaxi::GetTaxiMask ( ) const
inline

Definition at line 64 of file PlayerTaxi.h.

◆ GetTaxiSource()

uint32 PlayerTaxi::GetTaxiSource ( ) const
inline

Definition at line 72 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ InitTaxiNodesForLevel()

void PlayerTaxi::InitTaxiNodesForLevel ( uint32  race,
uint32  chrClass,
uint8  level 
)

Definition at line 26 of file PlayerTaxi.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsTaximaskNodeKnown()

bool PlayerTaxi::IsTaximaskNodeKnown ( uint32  nodeidx) const
inline

Definition at line 45 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ LoadTaxiDestinationsFromString()

bool PlayerTaxi::LoadTaxiDestinationsFromString ( std::string const &  values,
uint32  team 
)

Definition at line 136 of file PlayerTaxi.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadTaxiMask()

bool PlayerTaxi::LoadTaxiMask ( std::string const &  data)

Definition at line 100 of file PlayerTaxi.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NextTaxiDestination()

uint32 PlayerTaxi::NextTaxiDestination ( )
inline

Definition at line 75 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ RequestEarlyLanding()

bool PlayerTaxi::RequestEarlyLanding ( )

Definition at line 219 of file PlayerTaxi.cpp.

+ Here is the call graph for this function:

◆ SaveTaxiDestinationsToString()

std::string PlayerTaxi::SaveTaxiDestinationsToString ( )

Definition at line 183 of file PlayerTaxi.cpp.

+ Here is the caller graph for this function:

◆ SetFlightMasterFactionTemplateId()

void PlayerTaxi::SetFlightMasterFactionTemplateId ( uint32  factionTemplateId)
inline

Definition at line 84 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ SetTaximaskNode()

bool PlayerTaxi::SetTaximaskNode ( uint32  nodeidx)
inline

Definition at line 51 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostringstream & operator<< ( std::ostringstream &  ss,
PlayerTaxi const &  taxi 
)
friend

Definition at line 212 of file PlayerTaxi.cpp.

Member Data Documentation

◆ m_flightMasterFactionId

uint32 PlayerTaxi::m_flightMasterFactionId
private

Definition at line 90 of file PlayerTaxi.h.

◆ m_TaxiDestinations

std::deque<uint32> PlayerTaxi::m_TaxiDestinations
private

Definition at line 89 of file PlayerTaxi.h.

◆ m_taximask

TaxiMask PlayerTaxi::m_taximask
private

Definition at line 88 of file PlayerTaxi.h.


The documentation for this class was generated from the following files: