|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <GameObjectModel.h>
Public Member Functions | |
| void | disable () |
| void | enable (uint32 ph_mask) |
| const G3D::AABox & | getBounds () const |
| const G3D::Vector3 & | getPosition () const |
| bool | intersectRay (const G3D::Ray &Ray, float &MaxDist, bool StopAtFirstHit, uint32 ph_mask) const |
| bool | isEnabled () const |
| bool | Relocate () |
| ~GameObjectModel () | |
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 | |
| G3D::AABox | iBound |
| G3D::Matrix3 | iInvRot |
| float | iInvScale |
| VMAP::WorldModel * | iModel |
| G3D::Vector3 | iPos |
| float | iScale |
| std::unique_ptr< GameObjectModelOwnerBase > | owner |
| uint32 | phasemask |
Definition at line 38 of file GameObjectModel.h.
|
inlineprivate |
| GameObjectModel::~GameObjectModel | ( | ) |
Definition at line 78 of file GameObjectModel.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), iModel, and name.
|
static |
Definition at line 133 of file GameObjectModel.cpp.
References GameObjectModel(), and initialize().
Referenced by GameObject::CreateModel().
|
inline |
|
inline |
Definition at line 64 of file GameObjectModel.h.
References phasemask.
|
inline |
Definition at line 56 of file GameObjectModel.h.
References iBound.
Referenced by BoundsTrait< GameObjectModel >::getBounds(), and BoundsTrait< GameObjectModel >::getBounds2().
|
inline |
Definition at line 60 of file GameObjectModel.h.
References iPos.
Referenced by PositionTrait< GameObjectModel >::getPosition().
|
private |
Definition at line 84 of file GameObjectModel.cpp.
References VMAP::VMapFactory::createOrGetVMapManager(), iBound, iInvRot, iInvScale, iModel, iPos, iScale, model_list, name, owner, phasemask, and VMAP_ERROR_LOG.
Referenced by Create().
| bool GameObjectModel::intersectRay | ( | const G3D::Ray & | Ray, |
| float & | MaxDist, | ||
| bool | StopAtFirstHit, | ||
| uint32 | ph_mask ) const |
Definition at line 145 of file GameObjectModel.cpp.
References iBound, iInvRot, iInvScale, iModel, iPos, iScale, owner, and phasemask.
Referenced by DynamicTreeIntersectionCallback::operator()(), and DynamicTreeIntersectionCallback_WithLogger::operator()().
|
inline |
Definition at line 66 of file GameObjectModel.h.
References phasemask.
| bool GameObjectModel::Relocate | ( | ) |
Definition at line 167 of file GameObjectModel.cpp.
References iBound, iInvRot, iModel, iPos, iScale, model_list, owner, and VMAP_ERROR_LOG.
|
private |
Definition at line 45 of file GameObjectModel.h.
Referenced by getBounds(), initialize(), intersectRay(), and Relocate().
|
private |
Definition at line 46 of file GameObjectModel.h.
Referenced by initialize(), intersectRay(), and Relocate().
|
private |
Definition at line 48 of file GameObjectModel.h.
Referenced by GameObjectModel(), initialize(), and intersectRay().
|
private |
Definition at line 50 of file GameObjectModel.h.
Referenced by GameObjectModel(), initialize(), intersectRay(), Relocate(), and ~GameObjectModel().
|
private |
Definition at line 47 of file GameObjectModel.h.
Referenced by getPosition(), initialize(), intersectRay(), and Relocate().
|
private |
Definition at line 49 of file GameObjectModel.h.
Referenced by GameObjectModel(), initialize(), intersectRay(), and Relocate().
| std::string GameObjectModel::name |
Definition at line 54 of file GameObjectModel.h.
Referenced by initialize(), DynamicTreeIntersectionCallback_WithLogger::operator()(), and ~GameObjectModel().
|
private |
Definition at line 51 of file GameObjectModel.h.
Referenced by initialize(), intersectRay(), and Relocate().
|
private |
Definition at line 44 of file GameObjectModel.h.
Referenced by disable(), enable(), GameObjectModel(), initialize(), intersectRay(), and isEnabled().