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

#include "Object.h"

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

Protected Member Functions

 MovableMapObject ()=default
 

Private Member Functions

Cell const & GetCurrentCell () const
 
void SetCurrentCell (Cell const &cell)
 

Private Attributes

Cell _currentCell
 
MapObjectCellMoveState _moveState {MAP_OBJECT_CELL_MOVE_NONE}
 

Friends

class Map
 
class ObjectGridLoader
 
template<class T >
class RandomMovementGenerator
 

Detailed Description

Constructor & Destructor Documentation

◆ MovableMapObject()

MovableMapObject::MovableMapObject ( )
protecteddefault

Member Function Documentation

◆ GetCurrentCell()

Cell const & MovableMapObject::GetCurrentCell ( ) const
inlineprivate

◆ SetCurrentCell()

void MovableMapObject::SetCurrentCell ( Cell const &  cell)
inlineprivate
403{ _currentCell = cell; }

References _currentCell.

Referenced by Map::AddToGrid(), and ObjectGridLoader::SetObjectCell().

Friends And Related Function Documentation

◆ Map

friend class Map
friend

◆ ObjectGridLoader

friend class ObjectGridLoader
friend

◆ RandomMovementGenerator

template<class T >
friend class RandomMovementGenerator
friend

Member Data Documentation

◆ _currentCell

Cell MovableMapObject::_currentCell
private

Referenced by GetCurrentCell(), and SetCurrentCell().

◆ _moveState