Resonance Game
Team Walterio Fuchsbauer
 All Classes Namespaces Files Functions Variables Enumerations Properties
Resonance.GameModelInstance Class Reference

Class that stores/updates details that are unique to each instance of a GameModel, this allows animations to run independently. More...

List of all members.

Public Member Functions

void setTexture (int index)
 Set the current texture of this GameModelInstance.
void playModelAnim ()
 Play the model animation.
void pauseModelAnim ()
 Pause the model animation.
void playTextureAnim ()
 Play the texture animation.
void playTextureAnimOnce ()
 Play the texture animation once.
void pauseTextureAnim ()
 Pause the texture animation.
 GameModelInstance (int gameModelNumber)
 Stores information that relates to the GameModel but is usnique to each object. For example what stange of any animation each object is in.
override void Update (GameTime gameTime)
 Updates any anymations that are associated with this GameModelInstance.
void resetAnimation ()

Properties

float Transparency [get, set]
 The transparency of the object.
GameModel Model [get]
 Returns the game model of this GameModelInstance.
Texture2D Texture [get]
 Returns the texture that should be currently applied to the graphics model. This could depend on any animated textures that are applied.
Matrix[] Bones [get]
 Returns the details of the current Bones of the model, this depends on the stage of animation.

Detailed Description

Class that stores/updates details that are unique to each instance of a GameModel, this allows animations to run independently.


Constructor & Destructor Documentation

Stores information that relates to the GameModel but is usnique to each object. For example what stange of any animation each object is in.

Parameters:
gameModelNumberThe GameModelNumber that this is an instance of

Here is the call graph for this function:


Member Function Documentation

Pause the model animation.

Here is the caller graph for this function:

Pause the texture animation.

Here is the call graph for this function:

Play the model animation.

Here is the caller graph for this function:

Play the texture animation.

Here is the call graph for this function:

Play the texture animation once.

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Set the current texture of this GameModelInstance.

Parameters:
indexIndex of the texture.

Here is the call graph for this function:

Here is the caller graph for this function:

override void Resonance.GameModelInstance.Update ( GameTime  gameTime)

Updates any anymations that are associated with this GameModelInstance.

Parameters:
gameTime

Here is the call graph for this function:


Property Documentation

Returns the details of the current Bones of the model, this depends on the stage of animation.

Returns the game model of this GameModelInstance.

Returns the texture that should be currently applied to the graphics model. This could depend on any animated textures that are applied.

The transparency of the object.


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