C# Class TugOfBaby.Animation

Exibir arquivo Open project: martinvium/ngj2012 Class Usage Examples

Public Properties

Property Type Description
Texture Microsoft.Xna.Framework.Graphics.Texture2D
drawWidth int
frameHeight int
frameWidth int
frames List
looping bool

Public Methods

Method Description
Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums ) : System
Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums, int start, int stop ) : System
Draw ( SpriteBatch spriteBatch, Vector2 position, float rotation, bool flip ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
AddFrame ( Rectangle frameRectangle ) : void

Method Details

Animation() public method

public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
initialFrame Microsoft.Xna.Framework.Rectangle
totalNumberOfFrames int
_scale float
rows int
collums int
return System

Animation() public method

public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums, int start, int stop ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
initialFrame Microsoft.Xna.Framework.Rectangle
totalNumberOfFrames int
_scale float
rows int
collums int
start int
stop int
return System

Draw() public method

public Draw ( SpriteBatch spriteBatch, Vector2 position, float rotation, bool flip ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
rotation float
flip bool
return void

Update() public method

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

Property Details

Texture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics Texture
return Microsoft.Xna.Framework.Graphics.Texture2D

drawWidth public_oe property

public int drawWidth
return int

frameHeight public_oe property

public int frameHeight
return int

frameWidth public_oe property

public int frameWidth
return int

frames public_oe property

public List frames
return List

looping public_oe property

public bool looping
return bool