AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
UpdatableMapObject Class Reference

#include "Object.h"

Inheritance diagram for UpdatableMapObject:
Creature DynamicObject GameObject TempSummon Transport Minion MotionTransport StaticTransport Guardian Puppet Totem Pet

Public Types

enum  UpdateState : uint8 {
  NotUpdating ,
  PendingAdd ,
  Updating
}
 

Protected Member Functions

 UpdatableMapObject ()
 

Private Member Functions

void SetMapUpdateListOffset (std::size_t const offset)
 
size_t GetMapUpdateListOffset () const
 
void SetUpdateState (UpdateState state)
 
UpdateState GetUpdateState () const
 

Private Attributes

std::size_t _mapUpdateListOffset
 
UpdateState _mapUpdateState
 

Friends

class Map
 

Detailed Description

Member Enumeration Documentation

◆ UpdateState

Enumerator
NotUpdating 
PendingAdd 
Updating 
423 {
427 };
@ NotUpdating
Definition Object.h:424
@ PendingAdd
Definition Object.h:425
@ Updating
Definition Object.h:426

Constructor & Destructor Documentation

◆ UpdatableMapObject()

UpdatableMapObject::UpdatableMapObject ( )
inlineprotected
UpdateState _mapUpdateState
Definition Object.h:457
std::size_t _mapUpdateListOffset
Definition Object.h:456

Member Function Documentation

◆ GetMapUpdateListOffset()

size_t UpdatableMapObject::GetMapUpdateListOffset ( ) const
inlineprivate
440 {
441 ASSERT(_mapUpdateState == Updating, "Attempted to get update list offset when object is not in map update list");
443 }
#define ASSERT
Definition Errors.h:68

References _mapUpdateListOffset, _mapUpdateState, ASSERT, and Updating.

Referenced by Map::_RemoveObjectFromUpdateList().

◆ GetUpdateState()

UpdateState UpdatableMapObject::GetUpdateState ( ) const
inlineprivate

◆ SetMapUpdateListOffset()

void UpdatableMapObject::SetMapUpdateListOffset ( std::size_t const  offset)
inlineprivate
434 {
435 ASSERT(_mapUpdateState == Updating, "Attempted to set update list offset when object is not in map update list");
436 _mapUpdateListOffset = offset;
437 }

References _mapUpdateListOffset, _mapUpdateState, ASSERT, and Updating.

Referenced by Map::_AddObjectToUpdateList().

◆ SetUpdateState()

void UpdatableMapObject::SetUpdateState ( UpdateState  state)
inlineprivate

Friends And Related Symbol Documentation

◆ Map

friend class Map
friend

Member Data Documentation

◆ _mapUpdateListOffset

std::size_t UpdatableMapObject::_mapUpdateListOffset
private

◆ _mapUpdateState

UpdateState UpdatableMapObject::_mapUpdateState
private

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