Krig Game Engine
Loading...
Searching...
No Matches
ModelGameObject Class Reference
Inheritance diagram for ModelGameObject:
Object ObjectNode

Public Member Functions

void load (std::string)
void unload (void)
virtual void draw (Object *) override
virtual void drawOutline (Object *) override
virtual void drawShadow (Vector *) override
virtual void handleCollision (Object *) override
virtual void update (Vector *) override
virtual void animate (const float &, Object *) override
virtual void orientOnTerrain (Terrain *temp, const Quaternion &baseRotation) override
virtual void setHeightFromTerrain (Terrain *temp, const float &offset) override
virtual void printTypeName () override
void buildEdges ()
Public Member Functions inherited from Object
void processCollisions (Object *)
virtual void buildLuaObjectTable (lua_State *L)
virtual void transferLuaObjectTable (lua_State *L)
void showCollisionBox ()
void showControlTriangle ()
float calcTriangleCenter (const float &p1, const float &p2, const float &p3)
void init ()
void initSettings ()
void cleanup ()
void loadScript (const std::string &, lua_State *luaState)
void animateScript (const float &)
void unloadScript ()
void setPosition (const GLfloat &, const GLfloat &, const GLfloat &)
void setPosition (const Vector &)
void setRotationAxis (const GLfloat &, const GLfloat &, const GLfloat &, const GLfloat &)
void setRotationAxis (const Vector &, const GLfloat &)
void setRotationEuler (const GLfloat &, const GLfloat &, const GLfloat &)
void setRotationEuler (const Vector &)
void setRotationQuaternion (const Quaternion &)
void setVelocity (const GLfloat &, const GLfloat &, const GLfloat &)
void setVelocity (const Vector &)
void setRotationVelocity (const GLfloat &, const GLfloat &, const GLfloat &)
void setRotationVelocity (const Vector &)
void setScale (const GLfloat &, const GLfloat &, const GLfloat &)
void setScale (const Vector &)
void setScaleRate (const GLfloat &, const GLfloat &, const GLfloat &)
void setScaleRate (const Vector &)
void setDrawEnabled (const bool &isDrawEnabled)
bool getDrawEnabled ()
bool getInView ()
void setParticleSystem (const int &)
float getScriptValue (const char *s)
void setScriptValue (const char *s, const float &value)
void setState (const unsigned char &)
void setScript (const std::string &)
void setSpeed (const GLfloat &, const GLfloat &, const GLfloat &)
void setSpeed (const Vector &)
void setCollisionDetectionEnabled (const bool &isCollisionDetectionEnabled)
bool getCollisionDetectionEnabled ()
void setActive (const bool &new_active)
bool getActive ()
Vector getPosition ()
Vector getVelocity ()
Vector getRotationVelocity ()
Vector getScaleRate ()
Vector getSpeed ()
bool isRotationChanged ()
void setRotationChanged (const bool &rotationChanged_l)
Quaternion getRotation ()
void setRotation (const Quaternion &rotation)
Vector getDirection ()
Vector getUp ()
Vector getScale ()
Quaternion getRInterpStart ()
Quaternion getRInterpEnd ()
void setRInterpStart (const Quaternion &rInterpStart_l)
void setRInterpEnd (const Quaternion &rInterpEnd_l)
bool isInterpolationEnabled ()
void setIsInterpolationEnabled (const bool &isInterpolationEnabled_l)
float getValInterpBegin ()
float getValInterpCurrent ()
float getValInterpEnd ()
void setValInterpBegin (const float &valInterpBegin)
void setValInterpCurrent (const float &valInterpCurrent)
void setValInterpEnd (const float &valInterpEnd)
void setSuspendTime (const float &time)
void setState (const int &state_l)
int getState ()
void setScaleChanged (const bool &scaleChanged_l)
void setIsAlwaysLit (const bool &isAlwaysLit)
bool getIsAlwaysLit ()
void setTypeId (const int &type_id)
int getTypeId ()
Sphere getBoundingSphere ()
std::string getScriptName ()
Vector getOrth ()
bool getEnableSphereTest ()
bool isDrawable ()
void setGameLevelId (const unsigned int &gameLevelId)
unsigned int getGameLevelId ()

Static Public Attributes

static std::map< std::string, ModelStorage * > modelHash
Static Public Attributes inherited from Object
static unsigned int textureIds [MAX_TEXTURES]
static std::map< std::string, unsigned int > textureHash

Protected Attributes

std::string modelKey_
GLfloat * lightIntensity
GLfloat ** updatedVertex
int numEdges
Edgeedges
TransformedEdgesEdge
int numSEdge
Protected Attributes inherited from Object
Vector position_
Quaternion rotation_
Vector scale_
Vector baseDirection_
Vector direction_
Vector up_
Vector orth_
Vector velocity_
Vector speed_
Vector rotationVelocity_
Vector scaleRate_
Vector collisionBox_ [2]
Vector controlPoints_ [3]
Sphere boundingSphere_
unsigned char state_
bool active_
bool isDrawEnabled_
bool isInView_
bool isCollisionDetectionEnabled_
Quaternion rInterpStart_
Quaternion rInterpEnd_
float valInterpBegin_
float valInterpCurrent_
float valInterpEnd_
bool isInterpolationEnabled_
lua_State * L_
std::string scriptName_
int scriptIndex_
float suspendTime_
ParticleSystemparticleSystem_
int typeId_
unsigned int gameLevelId_
Vector lastLight_
bool scaleChanged_
bool rotationChanged_
bool isAlwaysLit_
bool enableSphereTest_

Additional Inherited Members

Public Attributes inherited from ObjectNode
ObjectNodenext
ObjectNodeprev

Member Function Documentation

◆ animate()

void ModelGameObject::animate ( const float & timeElapsed,
Object * c )
overridevirtual

Reimplemented from Object.

◆ draw()

void ModelGameObject::draw ( Object * c)
overridevirtual

Implements Object.

◆ drawOutline()

void ModelGameObject::drawOutline ( Object * c)
overridevirtual

Implements Object.

◆ drawShadow()

void ModelGameObject::drawShadow ( Vector * light)
overridevirtual

Reimplemented from Object.

◆ handleCollision()

void ModelGameObject::handleCollision ( Object * temp)
overridevirtual

Implements Object.

◆ orientOnTerrain()

void ModelGameObject::orientOnTerrain ( Terrain * temp,
const Quaternion & baseRotation )
overridevirtual

Reimplemented from Object.

◆ printTypeName()

virtual void ModelGameObject::printTypeName ( )
inlineoverridevirtual

Implements Object.

◆ setHeightFromTerrain()

void ModelGameObject::setHeightFromTerrain ( Terrain * temp,
const float & offset )
overridevirtual

Reimplemented from Object.

◆ update()

void ModelGameObject::update ( Vector * light)
overridevirtual

Implements Object.


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