TrinityCore
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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)
 
UnitGetActivelyMovedUnit () const
 
void SetActivelyMovedUnit (Unit *activelyMovedUnit)
 
PlayerGetBasePlayer () const
 
WorldSessionGetWorldSession () 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.

Member Function Documentation

◆ AddAllowedMover()

void GameClient::AddAllowedMover ( Unit unit)

Definition at line 29 of file GameClient.cpp.

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

◆ GetActivelyMovedUnit()

Unit * GameClient::GetActivelyMovedUnit ( ) const
inline

Definition at line 37 of file GameClient.h.

+ Here is the caller graph for this function:

◆ GetBasePlayer()

Player * GameClient::GetBasePlayer ( ) const
inline

Definition at line 40 of file GameClient.h.

+ Here is the caller graph for this function:

◆ GetDebugInfo()

std::string GameClient::GetDebugInfo ( ) const

Definition at line 71 of file GameClient.cpp.

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

◆ GetWorldSession()

WorldSession * GameClient::GetWorldSession ( ) const
inline

Definition at line 41 of file GameClient.h.

+ Here is the caller graph for this function:

◆ IsAllowedToMove() [1/2]

bool GameClient::IsAllowedToMove ( ObjectGuid  guid) const

Definition at line 53 of file GameClient.cpp.

◆ IsAllowedToMove() [2/2]

bool GameClient::IsAllowedToMove ( Unit unit) const

Definition at line 48 of file GameClient.cpp.

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

◆ RemoveAllowedMover()

void GameClient::RemoveAllowedMover ( Unit unit)

Definition at line 37 of file GameClient.cpp.

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

◆ SendDirectMessage()

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

Definition at line 66 of file GameClient.cpp.

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

◆ SetActivelyMovedUnit()

void GameClient::SetActivelyMovedUnit ( Unit activelyMovedUnit)
inline

Definition at line 38 of file GameClient.h.

+ Here is the caller graph for this function:

◆ SetMovedUnit()

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

Definition at line 58 of file GameClient.cpp.

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

Member Data Documentation

◆ _activelyMovedUnit

Unit* GameClient::_activelyMovedUnit
private

Definition at line 52 of file GameClient.h.

◆ _allowedMovers

GuidUnorderedSet GameClient::_allowedMovers
private

Definition at line 48 of file GameClient.h.

◆ _sessionToServer

WorldSession* GameClient::_sessionToServer
private

Definition at line 54 of file GameClient.h.


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