TrinityCore
GameObjectModel Class Reference

#include <GameObjectModel.h>

Public Member Functions

const G3D::AABox & getBounds () const
 
 ~GameObjectModel ()
 
const G3D::Vector3 & getPosition () const
 
void enableCollision (bool enable)
 
bool isCollisionEnabled () const
 
bool isMapObject () const
 
uint8 GetNameSetId () const
 
bool intersectRay (G3D::Ray const &ray, float &maxDist, bool stopAtFirstHit, PhaseShift const &phaseShift, VMAP::ModelIgnoreFlags ignoreFlags) const
 
bool GetLocationInfo (G3D::Vector3 const &point, VMAP::LocationInfo &info, PhaseShift const &phaseShift) const
 
bool GetLiquidLevel (G3D::Vector3 const &point, VMAP::LocationInfo &info, float &liqHeight) const
 
bool UpdatePosition ()
 

Static Public Member Functions

static GameObjectModelCreate (std::unique_ptr< GameObjectModelOwnerBase > modelOwner, std::string const &dataPath)
 

Private Member Functions

 GameObjectModel ()
 
bool initialize (std::unique_ptr< GameObjectModelOwnerBase > modelOwner, std::string const &dataPath)
 

Private Attributes

bool _collisionEnabled
 
G3D::AABox iBound
 
G3D::Matrix3 iInvRot
 
G3D::Vector3 iPos
 
float iInvScale
 
float iScale
 
VMAP::WorldModeliModel
 
std::unique_ptr< GameObjectModelOwnerBaseowner
 

Detailed Description

Definition at line 61 of file GameObjectModel.h.

Constructor & Destructor Documentation

◆ GameObjectModel()

GameObjectModel::GameObjectModel ( )
inlineprivate

Definition at line 63 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ ~GameObjectModel()

GameObjectModel::~GameObjectModel ( )

Definition at line 96 of file GameObjectModel.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ Create()

GameObjectModel * GameObjectModel::Create ( std::unique_ptr< GameObjectModelOwnerBase modelOwner,
std::string const &  dataPath 
)
static

Definition at line 147 of file GameObjectModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ enableCollision()

void GameObjectModel::enableCollision ( bool  enable)
inline

Definition at line 72 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ getBounds()

const G3D::AABox & GameObjectModel::getBounds ( ) const
inline

Definition at line 65 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ GetLiquidLevel()

bool GameObjectModel::GetLiquidLevel ( G3D::Vector3 const &  point,
VMAP::LocationInfo info,
float &  liqHeight 
) const

Definition at line 220 of file GameObjectModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetLocationInfo()

bool GameObjectModel::GetLocationInfo ( G3D::Vector3 const &  point,
VMAP::LocationInfo info,
PhaseShift const &  phaseShift 
) const

Definition at line 189 of file GameObjectModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetNameSetId()

uint8 GameObjectModel::GetNameSetId ( ) const
inline

Definition at line 75 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ getPosition()

const G3D::Vector3 & GameObjectModel::getPosition ( ) const
inline

Definition at line 69 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ initialize()

bool GameObjectModel::initialize ( std::unique_ptr< GameObjectModelOwnerBase modelOwner,
std::string const &  dataPath 
)
private

Definition at line 102 of file GameObjectModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ intersectRay()

bool GameObjectModel::intersectRay ( G3D::Ray const &  ray,
float &  maxDist,
bool  stopAtFirstHit,
PhaseShift const &  phaseShift,
VMAP::ModelIgnoreFlags  ignoreFlags 
) const

Definition at line 164 of file GameObjectModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isCollisionEnabled()

bool GameObjectModel::isCollisionEnabled ( ) const
inline

Definition at line 73 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ isMapObject()

bool GameObjectModel::isMapObject ( ) const

Definition at line 159 of file GameObjectModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdatePosition()

bool GameObjectModel::UpdatePosition ( )

Definition at line 236 of file GameObjectModel.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _collisionEnabled

bool GameObjectModel::_collisionEnabled
private

Definition at line 88 of file GameObjectModel.h.

◆ iBound

G3D::AABox GameObjectModel::iBound
private

Definition at line 89 of file GameObjectModel.h.

◆ iInvRot

G3D::Matrix3 GameObjectModel::iInvRot
private

Definition at line 90 of file GameObjectModel.h.

◆ iInvScale

float GameObjectModel::iInvScale
private

Definition at line 92 of file GameObjectModel.h.

◆ iModel

VMAP::WorldModel* GameObjectModel::iModel
private

Definition at line 94 of file GameObjectModel.h.

◆ iPos

G3D::Vector3 GameObjectModel::iPos
private

Definition at line 91 of file GameObjectModel.h.

◆ iScale

float GameObjectModel::iScale
private

Definition at line 93 of file GameObjectModel.h.

◆ owner

std::unique_ptr<GameObjectModelOwnerBase> GameObjectModel::owner
private

Definition at line 95 of file GameObjectModel.h.


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