C# Class TugOfBaby.Animation

Afficher le fichier Open project: martinvium/ngj2012 Class Usage Examples

Méthodes publiques

Свойство Type Description
Texture Microsoft.Xna.Framework.Graphics.Texture2D
drawWidth int
frameHeight int
frameWidth int
frames List
looping bool

Méthodes publiques

Méthode 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

Méthode Description
AddFrame ( Rectangle frameRectangle ) : void

Method Details

Animation() public méthode

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
Résultat System

Animation() public méthode

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
Résultat System

Draw() public méthode

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

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

Texture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics Texture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

drawWidth public_oe property

public int drawWidth
Résultat int

frameHeight public_oe property

public int frameHeight
Résultat int

frameWidth public_oe property

public int frameWidth
Résultat int

frames public_oe property

public List frames
Résultat List

looping public_oe property

public bool looping
Résultat bool