TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MapObject Class Reference

#include <Object.h>

Protected Member Functions

 MapObject ()
 

Private Member Functions

Cell constGetCurrentCell () const
 
void SetCurrentCell (Cell const &cell)
 
void SetNewCellPosition (float x, float y, float z, float o)
 

Private Attributes

Cell _currentCell
 
MapObjectCellMoveState _moveState
 
Position _newPosition
 

Friends

class Map
 
class ObjectGridLoader
 

Constructor & Destructor Documentation

MapObject::MapObject ( )
inlineprotected
405  {
406  _newPosition.Relocate(0.0f, 0.0f, 0.0f, 0.0f);
407  }
Position _newPosition
Definition: Object.h:415
Definition: Object.h:393
MapObjectCellMoveState _moveState
Definition: Object.h:414
void Relocate(float x, float y)
Definition: Position.h:67

Member Function Documentation

Cell const& MapObject::GetCurrentCell ( ) const
inlineprivate
411 { return _currentCell; }
Cell _currentCell
Definition: Object.h:410
void MapObject::SetCurrentCell ( Cell const cell)
inlineprivate
412 { _currentCell = cell; }
Cell _currentCell
Definition: Object.h:410
void MapObject::SetNewCellPosition ( float  x,
float  y,
float  z,
float  o 
)
inlineprivate
417  {
419  _newPosition.Relocate(x, y, z, o);
420  }
Position _newPosition
Definition: Object.h:415
MapObjectCellMoveState _moveState
Definition: Object.h:414
void Relocate(float x, float y)
Definition: Position.h:67
G3D::int16 z
Definition: Vector3int16.h:46
G3D::int16 y
Definition: Vector2int16.h:38
Definition: Object.h:394
G3D::int16 x
Definition: Vector2int16.h:37

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class Map
friend
friend class ObjectGridLoader
friend

Member Data Documentation

Cell MapObject::_currentCell
private
MapObjectCellMoveState MapObject::_moveState
private
Position MapObject::_newPosition
private

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