C# Class Danmaku_no_Kyojin.Sprites.AnimatedSprite

显示文件 Open project: Noxalus/Danmaku-no-Kyojin Class Usage Examples

Public Methods

Method Description
AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D sprite, Animation animation, Vector2 position ) : System.Collections.Generic
AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D sprite, Animation>.Dictionary animation, Vector2 position ) : System.Collections.Generic
ChangeFramesPerSecond ( int newValue ) : void
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
Draw ( GameTime gameTime, SpriteBatch spriteBatch, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void
Play ( int playCount = 1 ) : void
Update ( GameTime gameTime ) : void

Method Details

AnimatedSprite() public method

public AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D sprite, Animation animation, Vector2 position ) : System.Collections.Generic
sprite Microsoft.Xna.Framework.Graphics.Texture2D
animation Animation
position Vector2
return System.Collections.Generic

AnimatedSprite() public method

public AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D sprite, Animation>.Dictionary animation, Vector2 position ) : System.Collections.Generic
sprite Microsoft.Xna.Framework.Graphics.Texture2D
animation Animation>.Dictionary
position Vector2
return System.Collections.Generic

ChangeFramesPerSecond() public method

public ChangeFramesPerSecond ( int newValue ) : void
newValue int
return void

Draw() public method

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Draw() public method

public Draw ( GameTime gameTime, SpriteBatch spriteBatch, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
color Color
rotation float
origin Vector2
scale Vector2
effects SpriteEffects
layerDepth float
return void

Play() public method

public Play ( int playCount = 1 ) : void
playCount int
return void

Update() public method

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