Tesseract Engine Documentation

AI Methods

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

Public Instance Methods

AssignKillCredit (inherited from Player) Assign kill credit to responsible player
Attack (inherited from Player) Method called when the player detects that an attack/defend has been invoked
AttackMagnitude (inherited from Player) Method called when the magnitude button has been pressed
AttackMode (inherited from Player) 
AttackModeSwitching (inherited from Player)Overloaded. Method called when a mode switch event has been triggered
AttackTemperature (inherited from Player) Method called when the temperature button has been pressed
ChangeAttackAmount (inherited from Player) Method invoked when the attack/defend button is pressed
ChangeHealth (inherited from Player) Change the player's health
ChangeManna (inherited from Player) Change Manna of Player
CheckPlayerOnTerrain (inherited from Player) Check to see if the player is flying or on the ground
Draw (inherited from Player) General case 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.
DrawAIVision (inherited from Player) Draw the player model for AI-Vision pass
DrawHUD (inherited from Player) Draw HUD elements
DrawShield (inherited from Player) Draw player's shield around the player when it is enabled
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FPVToggle (inherited from Player) Toggle First Person View
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.
GetType (inherited from Object)Gets the Type of the current instance.
IsAlive (inherited from Player) Check if player is alive
IsHuman (inherited from Player) Check if this player is a human
Jump (inherited from Player) Method called when a jump event has been triggered
Kill (inherited from Player)Overloaded. Kill the player
Load Load stuff from XML
Load_Instanced (inherited from GameObject) Load object data from Xml.
LoadModel (inherited from GameObject) Load model data from XML
ObjectCollisionResponse (inherited from Player) Add Player specific responses to an object to object collision involving this and collidedObject. Uses collidedObject.collisionWithPlayerResponse to determine health and manna bonuses and damage.
PlayerHitByParticle (inherited from Player) Check if the player was hit by a particle
PrepAttack (inherited from GameObject) Prepare to fire the particle
Rotate (inherited from Player) Method called when the rotation buttons have been pressed
RunController (inherited from GameObject) Runs the appropriate animation on the model
SetDiffuseAlpha (inherited from Player) Set player's alpha component
SetDiffuseBlue (inherited from Player) Set player's blue component
SetDiffuseGreen (inherited from Player) Set player's green component
SetDiffuseRed (inherited from Player) Set player's red component
SetSpawnPoint (inherited from Player) Set the player's spawn point
SpawnPlayer (inherited from Player)Overloaded. Respawn our player
TerrainCollisionResponse (inherited from Player) Add Player specific responses to an object-terrain collision If on the terrain, Player is either in WALK or HOVER mode. Walk mode sets Player to the Terrain height at Player's location in the heightmap Hover mode uses force-based motion
ToggleMovementType (inherited from Player) Method called when the movement toggle button has been pressed
ToString (inherited from Object)Returns a String that represents the current Object.
ToXml (inherited from GameObject) 
Translate (inherited from Player) Method called when the motion buttons have been pressed
Update General update function
Zoom (inherited from Player) Method called when the zoom toggle button has been pressed

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.
UpdateAttackRumble (inherited from Player) Method for updating the rumble when an attack/defend button is pressed

See Also

AI Class | DarkWynter.Engine.GameObjects Namespace