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

Public Member Functions

void printTypeName ()
void buildLuaObjectTable (lua_State *L)
void transferLuaObjectTable (lua_State *L)
void draw (Object *)
void drawOutline (Object *)
void drawShadow (Vector *)
void handleCollision (Object *)
void update (Vector *)
void prepare ()
void animate (const float &, Object *)
Public Member Functions inherited from Object
void processCollisions (Object *)
virtual void orientOnTerrain (Terrain *temp, const Quaternion &baseRotation)
virtual void setHeightFromTerrain (Terrain *temp, const float &offset)
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 Member Functions

static void render_string (void *, const char *)
static void displayText (const char *, const float &, const float &, const float &, const float &, const float &)

Public Attributes

std::string text
float color [4]
float width
float fadeRate
Public Attributes inherited from ObjectNode
ObjectNodenext
ObjectNodeprev

Additional Inherited Members

Static Public Attributes inherited from Object
static unsigned int textureIds [MAX_TEXTURES]
static std::map< std::string, unsigned int > textureHash
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_

Member Function Documentation

◆ animate()

void TextGameObject::animate ( const float & timeElapsed,
Object * camera )
virtual

Reimplemented from Object.

◆ buildLuaObjectTable()

void TextGameObject::buildLuaObjectTable ( lua_State * L)
virtual

Reimplemented from Object.

◆ draw()

void TextGameObject::draw ( Object * camera)
virtual

Implements Object.

◆ drawOutline()

void TextGameObject::drawOutline ( Object * )
inlinevirtual

Implements Object.

◆ drawShadow()

void TextGameObject::drawShadow ( Vector * )
inlinevirtual

Reimplemented from Object.

◆ handleCollision()

void TextGameObject::handleCollision ( Object * )
inlinevirtual

Implements Object.

◆ printTypeName()

void TextGameObject::printTypeName ( )
inlinevirtual

Implements Object.

◆ transferLuaObjectTable()

void TextGameObject::transferLuaObjectTable ( lua_State * L)
virtual

Reimplemented from Object.

◆ update()

void TextGameObject::update ( Vector * )
inlinevirtual

Implements Object.


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