Tesseract Engine Documentation

Terrain Methods

The methods of the Terrain class are listed below. For a complete list of Terrain class members, see the Terrain Members topic.

Public Instance Methods

Draw General draw function
Draw_Billboards (inherited from GameObject) Called after Draw method. Allows GameObjects to add Billboards to be drawn. List is cleared each pass, or frame.
DrawAIVisionOverloaded. Draw function for AI-Vision
DrawAIVision (inherited from GameObject)Overloaded. Draws the model for ai vision
DrawLevelSelectionScreen Draw the level selection screen in the Menu
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetObjectHeight (inherited from GameObject) Sets the heightDifference parameter for this GameObject. HeightDifference is positive when object is below the terrain.
GetTerrainHeight Returns the height of the terrain at a particular x, z point
GetTerrainNormal Returns the normal of the terrain between point (x, z) and the next point that the object is going to land on based on the velocity
GetType (inherited from Object)Gets the Type of the current instance.
Load Load terrain info from XML
Load_Instanced (inherited from GameObject) Load object data from Xml.
LoadModel (inherited from GameObject) Load model data from XML
ModifyTerrain Procedurally let the user modify the terrain height values
ObjectCollisionResponse (inherited from GameObject) Default behavior applies force based physics for rebound. Override to supplement behavior. Return true if collidedObject is absorbed or destroyed, else false.
PrepAttack (inherited from GameObject) Prepare to fire the particle
Rotate (inherited from GameObject) Method called when the rotation buttons have been pressed
RunController (inherited from GameObject) Runs the appropriate animation on the model
TerrainCollisionResponse (inherited from GameObject) Default behavior applies force based physics for rebound. Override to supplement or replace behavior.
ToString (inherited from Object)Returns a String that represents the current Object.
ToXml (inherited from GameObject) 
Translate (inherited from GameObject) Method called when the motion buttons have been pressed
Update Update to see if the terrain has been modified

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

Terrain Class | DarkWynter.Engine.GameObjects Namespace