![]() |
Resonance Game
Team Walterio Fuchsbauer
|
Class that stores/updates details that are unique to each instance of a GameModel, this allows animations to run independently. More...
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. |
Class that stores/updates details that are unique to each instance of a GameModel, this allows animations to run independently.
Resonance.GameModelInstance.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.
gameModelNumber | The GameModelNumber that this is an instance of |
Pause the model animation.
Pause the texture animation.
Play the model animation.
Play the texture animation.
Play the texture animation once.
void Resonance.GameModelInstance.setTexture | ( | int | index | ) |
Set the current texture of this GameModelInstance.
index | Index of the texture. |
override void Resonance.GameModelInstance.Update | ( | GameTime | gameTime | ) |
Updates any anymations that are associated with this GameModelInstance.
gameTime |
Matrix [] Resonance.GameModelInstance.Bones [get] |
Returns the details of the current Bones of the model, this depends on the stage of animation.
Returns the game model of this GameModelInstance.
Texture2D Resonance.GameModelInstance.Texture [get] |
Returns the texture that should be currently applied to the graphics model. This could depend on any animated textures that are applied.
float Resonance.GameModelInstance.Transparency [get, set] |
The transparency of the object.