#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:4369
References SetPointedTo().
◆ SetPointedTo()
| void SafeUnitPointer::SetPointedTo |
( |
Unit * |
u | ) |
|
◆ UnitDeleted()
| void SafeUnitPointer::UnitDeleted |
( |
| ) |
|
4377{
4378 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted !!!");
4380 {
4382 {
4383 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted (A1) - {}, {}, {}, {}, {}, {}, {}, {}",
4384 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);
4386 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted (A2)");
4387
4388 p->GetSession()->KickPlayer("Unit deleted");
4389 }
4390 }
4392 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted (B1)");
4393
4395}
#define LOG_INFO(filterType__,...)
Definition Log.h:166
Player * ToPlayer()
Definition Object.h:202
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