Krig Game Engine
Public Member Functions | List of all members
Terrain Class Reference
Inheritance diagram for Terrain:
Object ObjectNode

Public Member Functions

void draw (Object *)
 
void drawOutline (Object *)
 
void handleCollision (Object *temp)
 
void animate (const float &, Object *)
 
void generate ()
 
void calcTerrainNorm (Vector *)
 
void calcViewableTerrainNorm ()
 
void update (Vector *)
 
void init ()
 
void load (const char *, Vector *)
 
void save (const char *, Vector *)
 
void unload ()
 
float getHeight (const float &, const float &)
 
void printTypeName ()
 
virtual void buildLuaObjectTable (lua_State *L)
 
virtual void transferLuaObjectTable (lua_State *L)
 
void drawGrid ()
 
void setVertexHeight (const int &, const int &, const float &)
 
void setVertexType (const int &, const int &, const int &)
 
void setVertexColor (const int &, const int &, const Vector &)
 
float getVertexHeight (const int &, const int &)
 
int getVertexType (const int &, const int &)
 
Vector getVertexColor (const int &, const int &)
 
DisplayListgetDisplayList ()
 
void setDisplayList (DisplayList *displayList)
 
int getXSize ()
 
int getZSize ()
 
int getScaleFactor ()
 
void setCurveDistance (const GLfloat &curveDistance)
 
void setCurveRate (const GLfloat &curveRate)
 
void setIsCurveEnabled (const bool &isCurveEnabled)
 
GLfloat getCurveDistance ()
 
GLfloat getCurveRate ()
 
GLfloat getIsCurveEnabled ()
 
- Public Member Functions inherited from Object
void processCollisions (Object *)
 
virtual void drawShadow (Vector *)
 
virtual void orientOnTerrain (Terrain *temp, const Quaternion &baseRotation)
 
virtual void setHeightFromTerrain (Terrain *temp, const float &offset)
 
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 ()
 

Additional Inherited Members

- Public Attributes inherited from ObjectNode
ObjectNodenext
 
ObjectNodeprev
 
- 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_
 

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