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

#include <GameClient.h>

Public Member Functions

 GameClient (WorldSession *sessionToServer)
 
void AddAllowedMover (Unit *unit)
 
void RemoveAllowedMover (Unit *unit)
 
bool IsAllowedToMove (Unit *unit) const
 
bool IsAllowedToMove (ObjectGuid guid) const
 
void SetMovedUnit (Unit *target, bool allowMove)
 
Unit * GetActivelyMovedUnit () const
 
void SetActivelyMovedUnit (Unit *activelyMovedUnit)
 
Player * GetBasePlayer () const
 
WorldSession * GetWorldSession () const
 
void SendDirectMessage (WorldPacket const *data) const
 
std::string GetDebugInfo () const
 

Private Attributes

GuidUnorderedSet _allowedMovers
 
Unit * _activelyMovedUnit
 
WorldSession * _sessionToServer
 

Detailed Description

Definition at line 26 of file GameClient.h.

Constructor & Destructor Documentation

◆ GameClient()

GameClient::GameClient ( WorldSession *  sessionToServer)

Definition at line 23 of file GameClient.cpp.

References _activelyMovedUnit, and _sessionToServer.

Member Function Documentation

◆ AddAllowedMover()

void GameClient::AddAllowedMover ( Unit *  unit)

◆ GetActivelyMovedUnit()

Unit * GameClient::GetActivelyMovedUnit ( ) const
inline

◆ GetBasePlayer()

◆ GetDebugInfo()

std::string GameClient::GetDebugInfo ( ) const

Definition at line 71 of file GameClient.cpp.

References GetBasePlayer(), Object::GetGUID(), and ObjectGuid::ToString().

Referenced by Unit::GetDebugInfo().

◆ GetWorldSession()

WorldSession * GameClient::GetWorldSession ( ) const
inline

Definition at line 41 of file GameClient.h.

Referenced by Unit::CheckPendingMovementAcks().

◆ IsAllowedToMove() [1/2]

bool GameClient::IsAllowedToMove ( ObjectGuid  guid) const

Definition at line 53 of file GameClient.cpp.

References _allowedMovers.

◆ IsAllowedToMove() [2/2]

◆ RemoveAllowedMover()

◆ SendDirectMessage()

void GameClient::SendDirectMessage ( WorldPacket const *  data) const

◆ SetActivelyMovedUnit()

void GameClient::SetActivelyMovedUnit ( Unit *  activelyMovedUnit)
inline

◆ SetMovedUnit()

void GameClient::SetMovedUnit ( Unit *  target,
bool  allowMove 
)

Member Data Documentation

◆ _activelyMovedUnit

Unit* GameClient::_activelyMovedUnit
private

Definition at line 52 of file GameClient.h.

Referenced by GameClient().

◆ _allowedMovers

GuidUnorderedSet GameClient::_allowedMovers
private

Definition at line 48 of file GameClient.h.

Referenced by AddAllowedMover(), IsAllowedToMove(), IsAllowedToMove(), and RemoveAllowedMover().

◆ _sessionToServer

WorldSession* GameClient::_sessionToServer
private

Definition at line 54 of file GameClient.h.

Referenced by GameClient().


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