![]() |
TrinityCore
|
#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 GameObjectModel * | Create (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::WorldModel * | iModel |
| std::unique_ptr< GameObjectModelOwnerBase > | owner |
| bool | isWmo |
Definition at line 54 of file GameObjectModel.h.
|
inlineprivate |
Definition at line 56 of file GameObjectModel.h.
Referenced by Create().
| GameObjectModel::~GameObjectModel | ( | ) |
Definition at line 98 of file GameObjectModel.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), iModel, name, and VMAP::VMapManager2::releaseModelInstance().
|
static |
Definition at line 152 of file GameObjectModel.cpp.
References GameObjectModel(), and initialize().
Referenced by GameObject::CreateModel().
|
inline |
Enables\disables collision.
Definition at line 67 of file GameObjectModel.h.
|
inline |
Definition at line 68 of file GameObjectModel.h.
Referenced by GameObject::EnableCollision().
|
inline |
Definition at line 60 of file GameObjectModel.h.
Referenced by BoundsTrait< GameObjectModel >::getBounds(), and BoundsTrait< GameObjectModel >::getBounds2().
| bool GameObjectModel::GetLiquidLevel | ( | G3D::Vector3 const & | point, |
| VMAP::LocationInfo & | info, | ||
| float & | liqHeight | ||
| ) | const |
Definition at line 214 of file GameObjectModel.cpp.
References VMAP::GroupModel::GetLiquidLevel(), VMAP::LocationInfo::hitModel, iInvRot, iInvScale, iPos, and iScale.
Referenced by DynamicMapTree::getAreaAndLiquidData().
| bool GameObjectModel::GetLocationInfo | ( | G3D::Vector3 const & | point, |
| VMAP::LocationInfo & | info, | ||
| uint32 | ph_mask | ||
| ) | const |
Definition at line 186 of file GameObjectModel.cpp.
References VMAP::WorldModel::GetLocationInfo(), VMAP::LocationInfo::ground_Z, iBound, iInvRot, iInvScale, iModel, iPos, iScale, isMapObject(), owner, and phasemask.
Referenced by DynamicTreeLocationInfoCallback::operator()().
|
inline |
Definition at line 64 of file GameObjectModel.h.
Referenced by PositionTrait< GameObjectModel >::getPosition().
|
private |
Definition at line 104 of file GameObjectModel.cpp.
References VMAP::VMapManager2::acquireModelInstance(), VMAP::VMapFactory::createOrGetVMapManager(), iBound, iInvRot, iInvScale, iModel, iPos, iScale, isWmo, model_list, name, owner, phasemask, and TC_LOG_ERROR.
Referenced by Create().
| 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.
References iBound, iInvRot, iInvScale, iModel, VMAP::WorldModel::IntersectRay(), iPos, iScale, owner, and phasemask.
Referenced by DynamicTreeIntersectionCallback::operator()().
|
inline |
Definition at line 70 of file GameObjectModel.h.
Referenced by GameObject::SetPhaseMask().
|
inline |
Definition at line 71 of file GameObjectModel.h.
Referenced by GetLocationInfo().
| bool GameObjectModel::UpdatePosition | ( | ) |
Definition at line 230 of file GameObjectModel.cpp.
References iBound, iInvRot, iModel, iPos, iScale, model_list, owner, and TC_LOG_ERROR.
Referenced by GameObject::UpdateModelPosition().
|
private |
Definition at line 85 of file GameObjectModel.h.
Referenced by GetLocationInfo(), initialize(), intersectRay(), and UpdatePosition().
|
private |
Definition at line 86 of file GameObjectModel.h.
Referenced by GetLiquidLevel(), GetLocationInfo(), initialize(), intersectRay(), and UpdatePosition().
|
private |
Definition at line 88 of file GameObjectModel.h.
Referenced by GetLiquidLevel(), GetLocationInfo(), initialize(), and intersectRay().
|
private |
Definition at line 90 of file GameObjectModel.h.
Referenced by GetLocationInfo(), initialize(), intersectRay(), UpdatePosition(), and ~GameObjectModel().
|
private |
Definition at line 87 of file GameObjectModel.h.
Referenced by GetLiquidLevel(), GetLocationInfo(), initialize(), intersectRay(), and UpdatePosition().
|
private |
Definition at line 89 of file GameObjectModel.h.
Referenced by GetLiquidLevel(), GetLocationInfo(), initialize(), intersectRay(), and UpdatePosition().
|
private |
Definition at line 92 of file GameObjectModel.h.
Referenced by initialize().
| std::string GameObjectModel::name |
Definition at line 58 of file GameObjectModel.h.
Referenced by initialize(), and ~GameObjectModel().
|
private |
Definition at line 91 of file GameObjectModel.h.
Referenced by GetLocationInfo(), initialize(), intersectRay(), and UpdatePosition().
|
private |
Definition at line 84 of file GameObjectModel.h.
Referenced by GetLocationInfo(), initialize(), and intersectRay().