C# Class WarTornLands.Entities.Modules.Draw.AnimatedDrawer

Inheritance: BaseModule, IDrawExecuter
Datei anzeigen Open project: floAr/WarTornLands Class Usage Examples

Public Methods

Method Description
AnimatedDrawer ( DataRow data ) : System
AnimatedDrawer ( Microsoft.Xna.Framework.Graphics.Texture2D spriteSheet ) : System
Draw ( SpriteBatch batch, DrawInformation information ) : void
SetCurrentAnimation ( string name ) : void
SetOwner ( System.Entity owner ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
AddAnimation ( Animation anim ) : void
AddAnimation ( Animation anim, float offsetMS ) : void
ReadAnimation ( DataRow data ) : Animation

Method Details

AnimatedDrawer() public method

public AnimatedDrawer ( DataRow data ) : System
data System.Data.DataRow
return System

AnimatedDrawer() public method

public AnimatedDrawer ( Microsoft.Xna.Framework.Graphics.Texture2D spriteSheet ) : System
spriteSheet Microsoft.Xna.Framework.Graphics.Texture2D
return System

Draw() public method

public Draw ( SpriteBatch batch, DrawInformation information ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
information DrawInformation
return void

SetCurrentAnimation() public method

public SetCurrentAnimation ( string name ) : void
name string
return void

SetOwner() public method

public SetOwner ( System.Entity owner ) : void
owner System.Entity
return void

Update() public method

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