![]() |
TrinityCore
|
#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::GroupModel const *model, float &liqHeight) const |
| bool | UpdatePosition () |
| std::shared_ptr< VMAP::WorldModel const > | GetWorldModel () const |
Static Public Member Functions | |
| static std::unique_ptr< GameObjectModel > | Create (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::WorldModel > | iModel |
| std::unique_ptr< GameObjectModelOwnerBase > | owner |
Definition at line 62 of file GameObjectModel.h.
|
inlineprivate |
Definition at line 64 of file GameObjectModel.h.
Referenced by Create().
|
default |
|
static |
Definition at line 143 of file GameObjectModel.cpp.
References GameObjectModel().
Referenced by GameObject::CreateModel().
|
inline |
Definition at line 80 of file GameObjectModel.h.
|
inline |
Definition at line 78 of file GameObjectModel.h.
|
inline |
Definition at line 66 of file GameObjectModel.h.
Referenced by BoundsTrait< GameObjectModel >::getBounds(), and Map::RequestRebuildNavMeshOnGameObjectModelChange().
|
inline |
Definition at line 70 of file GameObjectModel.h.
Referenced by MMAP::DynamicTileBuilder::BuildTile().
|
inline |
Definition at line 73 of file GameObjectModel.h.
| bool GameObjectModel::GetLiquidLevel | ( | G3D::Vector3 const & | point, |
| VMAP::GroupModel const * | model, | ||
| float & | liqHeight | ||
| ) | const |
Definition at line 214 of file GameObjectModel.cpp.
References VMAP::GroupModel::GetLiquidLevel(), iInvRot, iInvScale, iPos, and iScale.
Referenced by DynamicMapTree::getAreaAndLiquidData().
| bool GameObjectModel::GetLocationInfo | ( | G3D::Vector3 const & | point, |
| VMAP::LocationInfo & | info, | ||
| PhaseShift const & | phaseShift | ||
| ) | const |
Definition at line 182 of file GameObjectModel.cpp.
References VMAP::WorldModelLocationInfoQueryResult::distanceToModel, VMAP::LocationInfo::ground_Z, VMAP::LocationInfo::hitModel, VMAP::WorldModelLocationInfoQueryResult::hitModel, iBound, iInvRot, iInvScale, iModel, iPos, iScale, IsCollisionEnabled(), IsMapObject(), owner, VMAP::LocationInfo::rootId, and VMAP::WorldModelLocationInfoQueryResult::rootId.
Referenced by DynamicTreeLocationInfoCallback::operator()().
|
inline |
Definition at line 85 of file GameObjectModel.h.
Referenced by DynamicMapTree::getAreaAndLiquidData().
|
inline |
Definition at line 74 of file GameObjectModel.h.
Referenced by MMAP::DynamicTileBuilder::BuildTile().
|
inline |
Definition at line 71 of file GameObjectModel.h.
Referenced by MMAP::DynamicTileBuilder::BuildTile(), PositionTrait< GameObjectModel >::getPosition(), and Map::RequestRebuildNavMeshOnGameObjectModelChange().
|
inline |
Definition at line 72 of file GameObjectModel.h.
|
inline |
Definition at line 75 of file GameObjectModel.h.
Referenced by MMAP::DynamicTileBuilder::BuildTile().
|
inline |
Definition at line 95 of file GameObjectModel.h.
|
inline |
Definition at line 82 of file GameObjectModel.h.
|
private |
Definition at line 98 of file GameObjectModel.cpp.
References VMAP::VMapManager::acquireModelInstance(), VMAP::VMapFactory::createOrGetVMapManager(), iBound, iInvRot, iInvScale, iModel, iPos, iScale, model_list, owner, and TC_LOG_ERROR.
| 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.
References iBound, iInvRot, iInvScale, iModel, iPos, iScale, IsCollisionEnabled(), and owner.
Referenced by DynamicTreeIntersectionCallback::operator()(), and DynamicTreeLosCallback::operator()().
|
inline |
Definition at line 79 of file GameObjectModel.h.
Referenced by GetLocationInfo(), and IntersectRay().
|
inline |
Definition at line 83 of file GameObjectModel.h.
|
inline |
Definition at line 81 of file GameObjectModel.h.
Referenced by DynamicTreeLosCallback::operator()().
| bool GameObjectModel::IsMapObject | ( | ) | const |
Definition at line 152 of file GameObjectModel.cpp.
References iModel.
Referenced by GetLocationInfo().
| bool GameObjectModel::UpdatePosition | ( | ) |
Definition at line 229 of file GameObjectModel.cpp.
References iBound, iInvRot, iModel, iPos, iScale, model_list, owner, and TC_LOG_ERROR.
|
private |
Definition at line 103 of file GameObjectModel.h.
Referenced by GetLocationInfo(), initialize(), IntersectRay(), and UpdatePosition().
|
private |
Is model ignored in all checks.
Definition at line 100 of file GameObjectModel.h.
|
private |
Is model included when generating navigation mesh.
Definition at line 102 of file GameObjectModel.h.
|
private |
Definition at line 104 of file GameObjectModel.h.
Referenced by GetLiquidLevel(), GetLocationInfo(), initialize(), IntersectRay(), and UpdatePosition().
|
private |
Definition at line 106 of file GameObjectModel.h.
Referenced by GetLiquidLevel(), GetLocationInfo(), initialize(), and IntersectRay().
|
private |
Is model ignored during line of sight checks (but is always included in location/height checks)
Definition at line 101 of file GameObjectModel.h.
|
private |
Definition at line 108 of file GameObjectModel.h.
Referenced by GetLocationInfo(), initialize(), IntersectRay(), IsMapObject(), and UpdatePosition().
|
private |
Definition at line 105 of file GameObjectModel.h.
Referenced by GetLiquidLevel(), GetLocationInfo(), initialize(), IntersectRay(), and UpdatePosition().
|
private |
Definition at line 107 of file GameObjectModel.h.
Referenced by GetLiquidLevel(), GetLocationInfo(), initialize(), IntersectRay(), and UpdatePosition().
|
private |
Definition at line 109 of file GameObjectModel.h.
Referenced by GetLocationInfo(), initialize(), IntersectRay(), and UpdatePosition().