#include "UnitUtils.h"
◆ SafeUnitPointer() [1/2]
SafeUnitPointer::SafeUnitPointer |
( |
Unit * |
defVal | ) |
|
|
inlineexplicit |
Unit * defaultValue
Definition UnitUtils.h:60
Unit * ptr
Definition UnitUtils.h:59
◆ SafeUnitPointer() [2/2]
#define ABORT
Definition Errors.h:76
References ABORT.
◆ ~SafeUnitPointer()
SafeUnitPointer::~SafeUnitPointer |
( |
| ) |
|
◆ Initialize()
void SafeUnitPointer::Initialize |
( |
Unit * |
defVal | ) |
|
|
inline |
◆ operator Unit *()
SafeUnitPointer::operator Unit * |
( |
| ) |
const |
|
inline |
◆ operator->()
Unit * SafeUnitPointer::operator-> |
( |
| ) |
const |
|
inline |
◆ operator=()
void SafeUnitPointer::operator= |
( |
Unit * |
u | ) |
|
|
inline |
void SetPointedTo(Unit *u)
Definition Unit.cpp:4333
References SetPointedTo().
◆ SetPointedTo()
void SafeUnitPointer::SetPointedTo |
( |
Unit * |
u | ) |
|
◆ UnitDeleted()
void SafeUnitPointer::UnitDeleted |
( |
| ) |
|
4341{
4342 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted !!!");
4344 {
4346 {
4347 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted (A1) - {}, {}, {}, {}, {}, {}, {}, {}",
4348 p->GetGUID().ToString(), p->GetMapId(), p->GetInstanceId(), p->FindMap()->GetId(), p->IsInWorld() ? 1 : 0, p->IsDuringRemoveFromWorld() ? 1 : 0, p->IsBeingTeleported() ? 1 : 0, p->isBeingLoaded() ? 1 : 0);
4350 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted (A2)");
4351
4352 p->GetSession()->KickPlayer("Unit deleted");
4353 }
4354 }
4356 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted (B1)");
4357
4359}
#define LOG_INFO(filterType__,...)
Definition Log.h:165
Player * ToPlayer()
Definition Object.h:201
References defaultValue, LOG_INFO, ptr, and Object::ToPlayer().
◆ defaultValue
Unit* SafeUnitPointer::defaultValue |
|
private |
◆ ptr
Unit* SafeUnitPointer::ptr |
|
private |
The documentation for this class was generated from the following files:
- azerothcore-wotlk/src/server/game/Entities/Unit/UnitUtils.h
- azerothcore-wotlk/src/server/game/Entities/Unit/Unit.cpp