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

#include <GameObjectModel.h>

Public Member Functions

const G3D::AABox & getBounds () const
 
 ~GameObjectModel ()
 
uint32 GetDisplayId () const
 
G3D::Vector3 const & GetPosition () const
 
G3D::Quat GetRotation () const
 
G3D::Matrix3 const & GetInvRot () const
 
int64 GetPackedRotation () const
 
float GetScale () const
 
void EnableCollision (bool enable)
 
bool IsCollisionEnabled () const
 
void DisableLosBlocking (bool enable)
 
bool IsLosBlockingDisabled () const
 
void IncludeInNavMesh (bool enable)
 
bool IsIncludedInNavMesh () 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 ()
 
std::shared_ptr< VMAP::WorldModel const > GetWorldModel () const
 

Static Public Member Functions

static std::unique_ptr< 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 iCollisionEnabled
 Is model ignored in all checks.
 
bool iLosBlockingDisabled
 Is model ignored during line of sight checks (but is always included in location/height checks)
 
bool iIncludeInNavMesh
 Is model included when generating navigation mesh.
 
G3D::AABox iBound
 
G3D::Matrix3 iInvRot
 
G3D::Vector3 iPos
 
float iInvScale
 
float iScale
 
std::shared_ptr< VMAP::WorldModeliModel
 
std::unique_ptr< GameObjectModelOwnerBaseowner
 

Detailed Description

Definition at line 57 of file GameObjectModel.h.

Constructor & Destructor Documentation

◆ GameObjectModel()

GameObjectModel::GameObjectModel ( )
inlineprivate

Definition at line 59 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ ~GameObjectModel()

GameObjectModel::~GameObjectModel ( )
default

Member Function Documentation

◆ Create()

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

Definition at line 143 of file GameObjectModel.cpp.

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

◆ DisableLosBlocking()

void GameObjectModel::DisableLosBlocking ( bool  enable)
inline

Definition at line 75 of file GameObjectModel.h.

◆ EnableCollision()

void GameObjectModel::EnableCollision ( bool  enable)
inline

Definition at line 73 of file GameObjectModel.h.

◆ getBounds()

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

Definition at line 61 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ GetDisplayId()

uint32 GameObjectModel::GetDisplayId ( ) const
inline

Definition at line 65 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ GetInvRot()

G3D::Matrix3 const & GameObjectModel::GetInvRot ( ) const
inline

Definition at line 68 of file GameObjectModel.h.

◆ GetLiquidLevel()

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

Definition at line 213 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 182 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 80 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ GetPackedRotation()

int64 GameObjectModel::GetPackedRotation ( ) const
inline

Definition at line 69 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ GetPosition()

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

Definition at line 66 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ GetRotation()

G3D::Quat GameObjectModel::GetRotation ( ) const
inline

Definition at line 67 of file GameObjectModel.h.

◆ GetScale()

float GameObjectModel::GetScale ( ) const
inline

Definition at line 70 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ GetWorldModel()

std::shared_ptr< VMAP::WorldModel const > GameObjectModel::GetWorldModel ( ) const
inline

Definition at line 90 of file GameObjectModel.h.

◆ IncludeInNavMesh()

void GameObjectModel::IncludeInNavMesh ( bool  enable)
inline

Definition at line 77 of file GameObjectModel.h.

◆ initialize()

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

Definition at line 98 of file GameObjectModel.cpp.

+ Here is the call 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 157 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 74 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ IsIncludedInNavMesh()

bool GameObjectModel::IsIncludedInNavMesh ( ) const
inline

Definition at line 78 of file GameObjectModel.h.

◆ IsLosBlockingDisabled()

bool GameObjectModel::IsLosBlockingDisabled ( ) const
inline

Definition at line 76 of file GameObjectModel.h.

+ Here is the caller graph for this function:

◆ IsMapObject()

bool GameObjectModel::IsMapObject ( ) const

Definition at line 152 of file GameObjectModel.cpp.

+ Here is the caller graph for this function:

◆ UpdatePosition()

bool GameObjectModel::UpdatePosition ( )

Definition at line 228 of file GameObjectModel.cpp.

Member Data Documentation

◆ iBound

G3D::AABox GameObjectModel::iBound
private

Definition at line 98 of file GameObjectModel.h.

◆ iCollisionEnabled

bool GameObjectModel::iCollisionEnabled
private

Is model ignored in all checks.

Definition at line 95 of file GameObjectModel.h.

◆ iIncludeInNavMesh

bool GameObjectModel::iIncludeInNavMesh
private

Is model included when generating navigation mesh.

Definition at line 97 of file GameObjectModel.h.

◆ iInvRot

G3D::Matrix3 GameObjectModel::iInvRot
private

Definition at line 99 of file GameObjectModel.h.

◆ iInvScale

float GameObjectModel::iInvScale
private

Definition at line 101 of file GameObjectModel.h.

◆ iLosBlockingDisabled

bool GameObjectModel::iLosBlockingDisabled
private

Is model ignored during line of sight checks (but is always included in location/height checks)

Definition at line 96 of file GameObjectModel.h.

◆ iModel

std::shared_ptr<VMAP::WorldModel> GameObjectModel::iModel
private

Definition at line 103 of file GameObjectModel.h.

◆ iPos

G3D::Vector3 GameObjectModel::iPos
private

Definition at line 100 of file GameObjectModel.h.

◆ iScale

float GameObjectModel::iScale
private

Definition at line 102 of file GameObjectModel.h.

◆ owner

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

Definition at line 104 of file GameObjectModel.h.


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