Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
PlayerTaxi Class Reference

#include <PlayerTaxi.h>

Public Member Functions

void AddTaxiDestination (uint32 dest)
void AppendTaximaskTo (ByteBuffer &data, bool all)
void ClearTaxiDestinations ()
bool empty () const
uint32 GetCurrentTaxiPath () const
uint32 GetTaxiDestination () const
uint32 GetTaxiSource () const
void InitTaxiNodes (uint32 race, uint32 chrClass, uint8 level)
void InitTaxiNodesForClass (uint32 chrClass)
void InitTaxiNodesForFaction (uint32 faction)
void InitTaxiNodesForLvl (uint8 level)
void InitTaxiNodesForRace (uint32 race)
bool IsTaximaskNodeKnown (uint32 nodeidx) const
bool LoadTaxiDestinationsFromString (std::string const &values, uint32 team)
void LoadTaxiMask (std::string const &data)
uint32 NextTaxiDestination ()
 PlayerTaxi ()
std::string SaveTaxiDestinationsToString ()
bool SetTaximaskNode (uint32 nodeidx)
 ~PlayerTaxi ()

Private Attributes

std::deque< uint32m_TaxiDestinations
TaxiMask m_taximask

Friends

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

Detailed Description

Definition at line 9 of file PlayerTaxi.h.

Constructor & Destructor Documentation

◆ PlayerTaxi()

PlayerTaxi::PlayerTaxi ( )

Definition at line 11 of file PlayerTaxi.cpp.

References m_taximask.

Referenced by operator<<.

◆ ~PlayerTaxi()

PlayerTaxi::~PlayerTaxi ( )
inline

Definition at line 13 of file PlayerTaxi.h.

Member Function Documentation

◆ AddTaxiDestination()

void PlayerTaxi::AddTaxiDestination ( uint32 dest)
inline

Definition at line 52 of file PlayerTaxi.h.

References m_TaxiDestinations.

Referenced by LoadTaxiDestinationsFromString().

◆ AppendTaximaskTo()

void PlayerTaxi::AppendTaximaskTo ( ByteBuffer & data,
bool all )

Definition at line 106 of file PlayerTaxi.cpp.

References m_taximask, sTaxiNodesMask, and TaxiMaskSize.

Referenced by WorldSession::SendTaxiMenu().

◆ ClearTaxiDestinations()

void PlayerTaxi::ClearTaxiDestinations ( )
inline

◆ empty()

bool PlayerTaxi::empty ( ) const
inline

Definition at line 70 of file PlayerTaxi.h.

References m_TaxiDestinations.

Referenced by FlightPathMovementGenerator::DoFinalize().

◆ GetCurrentTaxiPath()

uint32 PlayerTaxi::GetCurrentTaxiPath ( ) const

Definition at line 168 of file PlayerTaxi.cpp.

References m_TaxiDestinations, and sObjectMgr.

◆ GetTaxiDestination()

uint32 PlayerTaxi::GetTaxiDestination ( ) const
inline

Definition at line 60 of file PlayerTaxi.h.

References m_TaxiDestinations.

Referenced by WorldSession::HandleMoveSplineDoneOpcode(), and NextTaxiDestination().

◆ GetTaxiSource()

uint32 PlayerTaxi::GetTaxiSource ( ) const
inline

◆ InitTaxiNodes()

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

◆ InitTaxiNodesForClass()

void PlayerTaxi::InitTaxiNodesForClass ( uint32 chrClass)

Definition at line 24 of file PlayerTaxi.cpp.

References CLASS_DEATH_KNIGHT, m_taximask, sOldContinentsNodesMask, and TaxiMaskSize.

Referenced by InitTaxiNodes().

◆ InitTaxiNodesForFaction()

void PlayerTaxi::InitTaxiNodesForFaction ( uint32 faction)

Definition at line 77 of file PlayerTaxi.cpp.

References ALLIANCE, HORDE, and SetTaximaskNode().

Referenced by InitTaxiNodes().

◆ InitTaxiNodesForLvl()

void PlayerTaxi::InitTaxiNodesForLvl ( uint8 level)

Definition at line 87 of file PlayerTaxi.cpp.

References SetTaximaskNode().

Referenced by InitTaxiNodes().

◆ InitTaxiNodesForRace()

void PlayerTaxi::InitTaxiNodesForRace ( uint32 race)

Definition at line 38 of file PlayerTaxi.cpp.

References ALLIANCE, HORDE, SetTaximaskNode(), and Player::TeamForRace().

Referenced by InitTaxiNodes().

◆ IsTaximaskNodeKnown()

bool PlayerTaxi::IsTaximaskNodeKnown ( uint32 nodeidx) const
inline

Definition at line 24 of file PlayerTaxi.h.

References m_taximask.

◆ LoadTaxiDestinationsFromString()

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

◆ LoadTaxiMask()

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

◆ NextTaxiDestination()

uint32 PlayerTaxi::NextTaxiDestination ( )
inline

Definition at line 65 of file PlayerTaxi.h.

References GetTaxiDestination(), and m_TaxiDestinations.

Referenced by WorldSession::HandleMoveSplineDoneOpcode().

◆ SaveTaxiDestinationsToString()

std::string PlayerTaxi::SaveTaxiDestinationsToString ( )

Definition at line 155 of file PlayerTaxi.cpp.

References m_TaxiDestinations.

◆ SetTaximaskNode()

bool PlayerTaxi::SetTaximaskNode ( uint32 nodeidx)
inline

Definition at line 30 of file PlayerTaxi.h.

References m_taximask.

Referenced by InitTaxiNodesForFaction(), InitTaxiNodesForLvl(), and InitTaxiNodesForRace().

◆ operator<<

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

Definition at line 181 of file PlayerTaxi.cpp.

References m_taximask, PlayerTaxi(), and TaxiMaskSize.

Member Data Documentation

◆ m_TaxiDestinations

◆ m_taximask

TaxiMask PlayerTaxi::m_taximask
private

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