TrinityCore
Loading...
Searching...
No Matches
PlayerTaxi Class Reference

#include <PlayerTaxi.h>

Public Member Functions

 PlayerTaxi ()
 
 PlayerTaxi (PlayerTaxi const &other)
 
 PlayerTaxi (PlayerTaxi &&other) noexcept
 
PlayerTaxioperator= (PlayerTaxi const &other)
 
PlayerTaxioperator= (PlayerTaxi &&other) noexcept
 
 ~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 = 0
 

Friends

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

Detailed Description

Definition at line 36 of file PlayerTaxi.h.

Constructor & Destructor Documentation

◆ PlayerTaxi() [1/3]

PlayerTaxi::PlayerTaxi ( )
default

◆ PlayerTaxi() [2/3]

PlayerTaxi::PlayerTaxi ( PlayerTaxi const &  other)
default

◆ PlayerTaxi() [3/3]

PlayerTaxi::PlayerTaxi ( PlayerTaxi &&  other)
defaultnoexcept

◆ ~PlayerTaxi()

PlayerTaxi::~PlayerTaxi ( )
default

Member Function Documentation

◆ AddTaxiDestination()

void PlayerTaxi::AddTaxiDestination ( uint32  dest)

Definition at line 206 of file PlayerTaxi.cpp.

+ Here is the caller graph for this function:

◆ AppendTaximaskTo()

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

Definition at line 129 of file PlayerTaxi.cpp.

+ Here is the caller graph for this function:

◆ ClearTaxiDestinations()

void PlayerTaxi::ClearTaxiDestinations ( )
inline

Definition at line 75 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ empty()

bool PlayerTaxi::empty ( ) const
inline

Definition at line 87 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ GetCurrentTaxiPath()

uint32 PlayerTaxi::GetCurrentTaxiPath ( ) const

Definition at line 211 of file PlayerTaxi.cpp.

+ Here is the caller graph for this function:

◆ GetFlightMasterFactionTemplate()

FactionTemplateEntry const * PlayerTaxi::GetFlightMasterFactionTemplate ( ) const

Definition at line 252 of file PlayerTaxi.cpp.

+ Here is the caller graph for this function:

◆ GetPath()

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

Definition at line 86 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ GetTaxiDestination()

uint32 PlayerTaxi::GetTaxiDestination ( ) const
inline

Definition at line 78 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ GetTaxiMask()

TaxiMask const & PlayerTaxi::GetTaxiMask ( ) const
inline

Definition at line 69 of file PlayerTaxi.h.

◆ GetTaxiSource()

uint32 PlayerTaxi::GetTaxiSource ( ) const
inline

Definition at line 77 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 33 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 50 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 143 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 107 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 80 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

PlayerTaxi & PlayerTaxi::operator= ( PlayerTaxi &&  other)
defaultnoexcept

◆ operator=() [2/2]

PlayerTaxi & PlayerTaxi::operator= ( PlayerTaxi const &  other)
default

◆ RequestEarlyLanding()

bool PlayerTaxi::RequestEarlyLanding ( )

Definition at line 231 of file PlayerTaxi.cpp.

+ Here is the call graph for this function:

◆ SaveTaxiDestinationsToString()

std::string PlayerTaxi::SaveTaxiDestinationsToString ( )

Definition at line 190 of file PlayerTaxi.cpp.

+ Here is the caller graph for this function:

◆ SetFlightMasterFactionTemplateId()

void PlayerTaxi::SetFlightMasterFactionTemplateId ( uint32  factionTemplateId)
inline

Definition at line 89 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

◆ SetTaximaskNode()

bool PlayerTaxi::SetTaximaskNode ( uint32  nodeidx)
inline

Definition at line 56 of file PlayerTaxi.h.

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 224 of file PlayerTaxi.cpp.

Member Data Documentation

◆ m_flightMasterFactionId

uint32 PlayerTaxi::m_flightMasterFactionId = 0
private

Definition at line 95 of file PlayerTaxi.h.

◆ m_TaxiDestinations

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

Definition at line 94 of file PlayerTaxi.h.

◆ m_taximask

TaxiMask PlayerTaxi::m_taximask
private

Definition at line 93 of file PlayerTaxi.h.


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