Krig Game Engine
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
Object Class Referenceabstract
Inheritance diagram for Object:
ObjectNode Camera Terrain

Public Member Functions

void processCollisions (Object *)
 
virtual void draw (Object *)=0
 
virtual void drawOutline (Object *)=0
 
virtual void handleCollision (Object *)=0
 
virtual void update (Vector *)=0
 
virtual void printTypeName ()=0
 
virtual void drawShadow (Vector *)
 
virtual void animate (const float &, Object *)
 
virtual void orientOnTerrain (Terrain *temp, const Quaternion &baseRotation)
 
virtual void setHeightFromTerrain (Terrain *temp, const float &offset)
 
virtual void buildLuaObjectTable (lua_State *L)
 
virtual void transferLuaObjectTable (lua_State *L)
 
void showCollisionBox ()
 
void showControlTriangle ()
 
float calcTriangleCenter (const float &, const float &, const float &)
 
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 unsigned int textureIds [MAX_TEXTURES]
 
static std::map< std::string, unsigned int > textureHash
 

Protected Attributes

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
 

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