![]() |
TrinityCore
|
#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 |
Definition at line 26 of file GameClient.h.
| GameClient::GameClient | ( | WorldSession * | sessionToServer | ) |
Definition at line 23 of file GameClient.cpp.
References _activelyMovedUnit, and _sessionToServer.
| void GameClient::AddAllowedMover | ( | Unit * | unit | ) |
Definition at line 29 of file GameClient.cpp.
References _allowedMovers, ASSERT, Unit::GetGameClientMovingMe(), Object::GetGUID(), and Unit::SetGameClientMovingMe().
Referenced by SetMovedUnit().
|
inline |
Definition at line 37 of file GameClient.h.
Referenced by WorldSession::HandleCancelChanneling(), WorldSession::HandleMoveNotActiveMover(), and WorldSession::ValidateAndGetUnitBeingMoved().
|
inline |
Definition at line 40 of file GameClient.h.
Referenced by Unit::CheckPendingMovementAcks(), GetDebugInfo(), WorldSession::HandleMoveKnockBackAck(), SendDirectMessage(), MovementPacketSender::SendSpeedChangeToObservers(), Unit::SendTeleportPacket(), Unit::SetCanFly(), Unit::SetDisableGravity(), Unit::SetFeatherFall(), Unit::SetHover(), Unit::SetRooted(), Unit::SetWaterWalking(), and Unit::~Unit().
| std::string GameClient::GetDebugInfo | ( | ) | const |
Definition at line 71 of file GameClient.cpp.
References GetBasePlayer(), Object::GetGUID(), and ObjectGuid::ToString().
Referenced by Unit::GetDebugInfo().
|
inline |
Definition at line 41 of file GameClient.h.
Referenced by Unit::CheckPendingMovementAcks().
| bool GameClient::IsAllowedToMove | ( | ObjectGuid | guid | ) | const |
Definition at line 53 of file GameClient.cpp.
References _allowedMovers.
| bool GameClient::IsAllowedToMove | ( | Unit * | unit | ) | const |
Definition at line 48 of file GameClient.cpp.
References _allowedMovers, and Object::GetGUID().
Referenced by WorldSession::HandleFeatherFallAck(), WorldSession::HandleForceSpeedChangeAck(), WorldSession::HandleMoveGravityDisableAck(), WorldSession::HandleMoveGravityEnableAck(), WorldSession::HandleMoveHoverAck(), WorldSession::HandleMoveKnockBackAck(), WorldSession::HandleMoveRootAck(), WorldSession::HandleMoveSetCanFlyAckOpcode(), WorldSession::HandleMoveSetCanTransitionBetweenSwinAndFlyAck(), WorldSession::HandleMoveSetCollisionHgtAck(), WorldSession::HandleMoveUnRootAck(), WorldSession::HandleMoveWaterWalkAck(), WorldSession::HandleSetActiveMoverOpcode(), and WorldSession::ValidateAndGetUnitBeingMoved().
| void GameClient::RemoveAllowedMover | ( | Unit * | unit | ) |
Definition at line 37 of file GameClient.cpp.
References _allowedMovers, Unit::GetGameClientMovingMe(), Object::GetGUID(), Unit::PurgeAndApplyPendingMovementChanges(), SetActivelyMovedUnit(), and Unit::SetGameClientMovingMe().
Referenced by SetMovedUnit().
| void GameClient::SendDirectMessage | ( | WorldPacket const * | data | ) | const |
Definition at line 66 of file GameClient.cpp.
References GetBasePlayer(), and Player::SendDirectMessage().
Referenced by MovementPacketSender::SendSpeedChangeToMover().
|
inline |
Definition at line 38 of file GameClient.h.
Referenced by WorldSession::HandleMoveNotActiveMover(), WorldSession::HandleSetActiveMoverOpcode(), and RemoveAllowedMover().
| void GameClient::SetMovedUnit | ( | Unit * | target, |
| bool | allowMove | ||
| ) |
Definition at line 58 of file GameClient.cpp.
References AddAllowedMover(), and RemoveAllowedMover().
Referenced by Player::SendInitialPacketsBeforeAddToMap(), and Player::SetClientControl().
|
private |
Definition at line 52 of file GameClient.h.
Referenced by GameClient().
|
private |
Definition at line 48 of file GameClient.h.
Referenced by AddAllowedMover(), IsAllowedToMove(), IsAllowedToMove(), and RemoveAllowedMover().
|
private |
Definition at line 54 of file GameClient.h.
Referenced by GameClient().