Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
GameObjectModel Class Reference

#include <GameObjectModel.h>

Collaboration diagram for GameObjectModel:

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 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

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

Detailed Description

Definition at line 38 of file GameObjectModel.h.

Constructor & Destructor Documentation

◆ GameObjectModel()

GameObjectModel::GameObjectModel ( )
inlineprivate

Definition at line 40 of file GameObjectModel.h.

References iInvScale, iModel, iScale, and phasemask.

Referenced by Create().

◆ ~GameObjectModel()

GameObjectModel::~GameObjectModel ( )

Definition at line 78 of file GameObjectModel.cpp.

References VMAP::VMapFactory::createOrGetVMapManager(), iModel, and name.

Member Function Documentation

◆ Create()

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

Definition at line 133 of file GameObjectModel.cpp.

References GameObjectModel(), and initialize().

Referenced by GameObject::CreateModel().

◆ disable()

void GameObjectModel::disable ( )
inline

Enables\disables collision.

Definition at line 63 of file GameObjectModel.h.

References phasemask.

◆ enable()

void GameObjectModel::enable ( uint32 ph_mask)
inline

Definition at line 64 of file GameObjectModel.h.

References phasemask.

◆ getBounds()

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

◆ getPosition()

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

Definition at line 60 of file GameObjectModel.h.

References iPos.

Referenced by PositionTrait< GameObjectModel >::getPosition().

◆ initialize()

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

◆ intersectRay()

bool GameObjectModel::intersectRay ( const G3D::Ray & Ray,
float & MaxDist,
bool StopAtFirstHit,
uint32 ph_mask ) const

◆ isEnabled()

bool GameObjectModel::isEnabled ( ) const
inline

Definition at line 66 of file GameObjectModel.h.

References phasemask.

◆ Relocate()

bool GameObjectModel::Relocate ( )

Definition at line 167 of file GameObjectModel.cpp.

References iBound, iInvRot, iModel, iPos, iScale, model_list, owner, and VMAP_ERROR_LOG.

Member Data Documentation

◆ iBound

G3D::AABox GameObjectModel::iBound
private

Definition at line 45 of file GameObjectModel.h.

Referenced by getBounds(), initialize(), intersectRay(), and Relocate().

◆ iInvRot

G3D::Matrix3 GameObjectModel::iInvRot
private

Definition at line 46 of file GameObjectModel.h.

Referenced by initialize(), intersectRay(), and Relocate().

◆ iInvScale

float GameObjectModel::iInvScale
private

Definition at line 48 of file GameObjectModel.h.

Referenced by GameObjectModel(), initialize(), and intersectRay().

◆ iModel

VMAP::WorldModel* GameObjectModel::iModel
private

◆ iPos

G3D::Vector3 GameObjectModel::iPos
private

Definition at line 47 of file GameObjectModel.h.

Referenced by getPosition(), initialize(), intersectRay(), and Relocate().

◆ iScale

float GameObjectModel::iScale
private

Definition at line 49 of file GameObjectModel.h.

Referenced by GameObjectModel(), initialize(), intersectRay(), and Relocate().

◆ name

std::string GameObjectModel::name

◆ owner

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

Definition at line 51 of file GameObjectModel.h.

Referenced by initialize(), intersectRay(), and Relocate().

◆ phasemask

uint32 GameObjectModel::phasemask
private

Definition at line 44 of file GameObjectModel.h.

Referenced by disable(), enable(), GameObjectModel(), initialize(), intersectRay(), and isEnabled().


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