C# Class UHSampleGame.CoreObjects.AnimatedModel

Inheritance: GameObject
ファイルを表示 Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Protected Properties

Property Type Description
animationPlayer SkinnedModel.AnimationPlayer
model Microsoft.Xna.Framework.Graphics.Model
scale float

Public Methods

Method Description
AnimatedModel ( ) : System

Default Constructor to setup Model

AnimatedModel ( Model model ) : System

Constructor consisting of a given model

Draw ( GameTime gameTime ) : void
PlayClip ( string take ) : void

Play a particular animation

SetupModel ( Model model ) : void

Adds a model to the Animated Model and performs setup

Update ( GameTime gameTime ) : void
UpdateView ( ) : void

Protected Methods

Method Description
SetupCamera ( ) : void

Sets up default camera information

SetupModel ( ) : void

Performs required setup sequence for model

Method Details

AnimatedModel() public method

Default Constructor to setup Model
public AnimatedModel ( ) : System
return System

AnimatedModel() public method

Constructor consisting of a given model
public AnimatedModel ( Model model ) : System
model Microsoft.Xna.Framework.Graphics.Model Model for use
return System

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

PlayClip() public method

Play a particular animation
public PlayClip ( string take ) : void
take string Animation to play
return void

SetupCamera() protected method

Sets up default camera information
protected SetupCamera ( ) : void
return void

SetupModel() protected method

Performs required setup sequence for model
protected SetupModel ( ) : void
return void

SetupModel() public method

Adds a model to the Animated Model and performs setup
public SetupModel ( Model model ) : void
model Microsoft.Xna.Framework.Graphics.Model Model for this instance
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

UpdateView() public method

public UpdateView ( ) : void
return void

Property Details

animationPlayer protected_oe property

protected AnimationPlayer,SkinnedModel animationPlayer
return SkinnedModel.AnimationPlayer

model protected_oe property

protected Model,Microsoft.Xna.Framework.Graphics model
return Microsoft.Xna.Framework.Graphics.Model

scale protected_oe property

protected float scale
return float