TrinityCore
Loading...
Searching...
No Matches
GameObjectModel Class Reference

#include <GameObjectModel.h>

Public Member Functions

const G3D::AABox & getBounds () const
 
 ~GameObjectModel ()
 
const G3D::Vector3 & getPosition () const
 
void disable ()
 
void enable (uint32 ph_mask)
 
bool isEnabled () const
 
bool isMapObject () const
 
bool intersectRay (const G3D::Ray &Ray, float &MaxDist, bool StopAtFirstHit, uint32 ph_mask, VMAP::ModelIgnoreFlags ignoreFlags) const
 
bool GetLocationInfo (G3D::Vector3 const &point, VMAP::LocationInfo &info, uint32 ph_mask) 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)
 

Public Attributes

std::string name
 

Private Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 54 of file GameObjectModel.h.

Constructor & Destructor Documentation

◆ GameObjectModel()

GameObjectModel::GameObjectModel ( )
inlineprivate

Definition at line 56 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ ~GameObjectModel()

GameObjectModel::~GameObjectModel ( )

Definition at line 98 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 152 of file GameObjectModel.cpp.

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

◆ disable()

void GameObjectModel::disable ( )
inline

Enables\disables collision.

Definition at line 67 of file GameObjectModel.h.

◆ enable()

void GameObjectModel::enable ( uint32  ph_mask)
inline

Definition at line 68 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ getBounds()

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

Definition at line 60 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 214 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,
uint32  ph_mask 
) const

Definition at line 186 of file GameObjectModel.cpp.

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

◆ getPosition()

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

Definition at line 64 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 104 of file GameObjectModel.cpp.

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

◆ intersectRay()

bool GameObjectModel::intersectRay ( const G3D::Ray &  Ray,
float &  MaxDist,
bool  StopAtFirstHit,
uint32  ph_mask,
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:

◆ isEnabled()

bool GameObjectModel::isEnabled ( ) const
inline

Definition at line 70 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ isMapObject()

bool GameObjectModel::isMapObject ( ) const
inline

Definition at line 71 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ UpdatePosition()

bool GameObjectModel::UpdatePosition ( )

Definition at line 230 of file GameObjectModel.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ iBound

G3D::AABox GameObjectModel::iBound
private

Definition at line 85 of file GameObjectModel.h.

◆ iInvRot

G3D::Matrix3 GameObjectModel::iInvRot
private

Definition at line 86 of file GameObjectModel.h.

◆ iInvScale

float GameObjectModel::iInvScale
private

Definition at line 88 of file GameObjectModel.h.

◆ iModel

VMAP::WorldModel* GameObjectModel::iModel
private

Definition at line 90 of file GameObjectModel.h.

◆ iPos

G3D::Vector3 GameObjectModel::iPos
private

Definition at line 87 of file GameObjectModel.h.

◆ iScale

float GameObjectModel::iScale
private

Definition at line 89 of file GameObjectModel.h.

◆ isWmo

bool GameObjectModel::isWmo
private

Definition at line 92 of file GameObjectModel.h.

◆ name

std::string GameObjectModel::name

Definition at line 58 of file GameObjectModel.h.

◆ owner

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

Definition at line 91 of file GameObjectModel.h.

◆ phasemask

uint32 GameObjectModel::phasemask
private

Definition at line 84 of file GameObjectModel.h.


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