C# Class LDEngine.SpriteAnim

Datei anzeigen Open project: GarethIW/LDEngine

Public Properties

Property Type Description
CellHeight int
CellWidth int
CurrentDirection SpriteAnimDirection
CurrentFrame int
CurrentFrameTime double
Loop bool
NumFrames int
Offset Vector2
PingPong bool
SheetRow int
SpriteSheet Microsoft.Xna.Framework.Graphics.Texture2D
State SpriteAnimState
TargetFrameTime double

Public Methods

Method Description
Draw ( SpriteBatch sb, Vector2 pos ) : void
Draw ( SpriteBatch sb, Vector2 pos, SpriteEffects effects ) : void
Draw ( SpriteBatch sb, Vector2 pos, SpriteEffects effects, float scale ) : void
Draw ( SpriteBatch sb, Vector2 pos, SpriteEffects effects, float scale, float rotation ) : void
Draw ( SpriteBatch sb, Vector2 pos, SpriteEffects effects, float scale, float rotation, Color tint ) : void
Pause ( ) : void
Play ( ) : void
Reset ( ) : void
SpriteAnim ( Microsoft.Xna.Framework.Graphics.Texture2D sheet, int row, int numframes, int width, int height, double frametime ) : System
SpriteAnim ( Microsoft.Xna.Framework.Graphics.Texture2D sheet, int row, int numframes, int width, int height, double frametime, Vector2 offset ) : System
SpriteAnim ( Microsoft.Xna.Framework.Graphics.Texture2D sheet, int row, int numframes, int width, int height, double frametime, Vector2 offset, bool loop, bool pingpong, int startframe ) : System
Update ( GameTime gameTime ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch sb, Vector2 pos ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
pos Vector2
return void

Draw() public method

public Draw ( SpriteBatch sb, Vector2 pos, SpriteEffects effects ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
pos Vector2
effects SpriteEffects
return void

Draw() public method

public Draw ( SpriteBatch sb, Vector2 pos, SpriteEffects effects, float scale ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
pos Vector2
effects SpriteEffects
scale float
return void

Draw() public method

public Draw ( SpriteBatch sb, Vector2 pos, SpriteEffects effects, float scale, float rotation ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
pos Vector2
effects SpriteEffects
scale float
rotation float
return void

Draw() public method

public Draw ( SpriteBatch sb, Vector2 pos, SpriteEffects effects, float scale, float rotation, Color tint ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
pos Vector2
effects SpriteEffects
scale float
rotation float
tint Color
return void

Pause() public method

public Pause ( ) : void
return void

Play() public method

public Play ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

SpriteAnim() public method

public SpriteAnim ( Microsoft.Xna.Framework.Graphics.Texture2D sheet, int row, int numframes, int width, int height, double frametime ) : System
sheet Microsoft.Xna.Framework.Graphics.Texture2D
row int
numframes int
width int
height int
frametime double
return System

SpriteAnim() public method

public SpriteAnim ( Microsoft.Xna.Framework.Graphics.Texture2D sheet, int row, int numframes, int width, int height, double frametime, Vector2 offset ) : System
sheet Microsoft.Xna.Framework.Graphics.Texture2D
row int
numframes int
width int
height int
frametime double
offset Vector2
return System

SpriteAnim() public method

public SpriteAnim ( Microsoft.Xna.Framework.Graphics.Texture2D sheet, int row, int numframes, int width, int height, double frametime, Vector2 offset, bool loop, bool pingpong, int startframe ) : System
sheet Microsoft.Xna.Framework.Graphics.Texture2D
row int
numframes int
width int
height int
frametime double
offset Vector2
loop bool
pingpong bool
startframe int
return System

Update() public method

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

Property Details

CellHeight public_oe property

public int CellHeight
return int

CellWidth public_oe property

public int CellWidth
return int

CurrentDirection public_oe property

public SpriteAnimDirection CurrentDirection
return SpriteAnimDirection

CurrentFrame public_oe property

public int CurrentFrame
return int

CurrentFrameTime public_oe property

public double CurrentFrameTime
return double

Loop public_oe property

public bool Loop
return bool

NumFrames public_oe property

public int NumFrames
return int

Offset public_oe property

public Vector2 Offset
return Vector2

PingPong public_oe property

public bool PingPong
return bool

SheetRow public_oe property

public int SheetRow
return int

SpriteSheet public_oe property

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

State public_oe property

public SpriteAnimState State
return SpriteAnimState

TargetFrameTime public_oe property

public double TargetFrameTime
return double