C# Class XNAGraphics.ComponentBundle.DrawableBundle.Animation

Inheritance: XNAGraphics.KernelBundle.BasicsBundle.BasicDrawable
Mostrar archivo Open project: joseruizjimenez/personal-training-martial-arts

Public Properties

Property Type Description
frame int
frame_count int
origin Vector2
paused bool
time_per_frame float
total_elapsed float

Public Methods

Method Description
Animation ( Object texture, Vector2 origin, int frame_count, int frames_per_sec ) : System
Animation ( Object texture, int x, int y, Color color, Vector2 origin, int frame_count, int frames_per_sec, float scale, float rotation ) : System
Animation ( Object texture, int x, int y, Vector2 origin, int frame_count, int frames_per_sec ) : System
Animation ( Object texture, int x, int y, Vector2 origin, int frame_count, int frames_per_sec, float scale ) : System
Animation ( Object texture, int x, int y, Vector2 origin, int frame_count, int frames_per_sec, float scale, float rotation ) : System
Pause ( ) : void
Play ( ) : void
Reset ( ) : void
Stop ( ) : void

Protected Methods

Method Description
onDraw ( SpriteBatch spriteBatch ) : void
onLoad ( Microsoft.Xna.Framework.Game game ) : void
onUpdate ( GameTime gameTime ) : void

Method Details

Animation() public method

public Animation ( Object texture, Vector2 origin, int frame_count, int frames_per_sec ) : System
texture Object
origin Vector2
frame_count int
frames_per_sec int
return System

Animation() public method

public Animation ( Object texture, int x, int y, Color color, Vector2 origin, int frame_count, int frames_per_sec, float scale, float rotation ) : System
texture Object
x int
y int
color Color
origin Vector2
frame_count int
frames_per_sec int
scale float
rotation float
return System

Animation() public method

public Animation ( Object texture, int x, int y, Vector2 origin, int frame_count, int frames_per_sec ) : System
texture Object
x int
y int
origin Vector2
frame_count int
frames_per_sec int
return System

Animation() public method

public Animation ( Object texture, int x, int y, Vector2 origin, int frame_count, int frames_per_sec, float scale ) : System
texture Object
x int
y int
origin Vector2
frame_count int
frames_per_sec int
scale float
return System

Animation() public method

public Animation ( Object texture, int x, int y, Vector2 origin, int frame_count, int frames_per_sec, float scale, float rotation ) : System
texture Object
x int
y int
origin Vector2
frame_count int
frames_per_sec int
scale float
rotation float
return System

Pause() public method

public Pause ( ) : void
return void

Play() public method

public Play ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

onDraw() protected method

protected onDraw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

onLoad() protected method

protected onLoad ( Microsoft.Xna.Framework.Game game ) : void
game Microsoft.Xna.Framework.Game
return void

onUpdate() protected method

protected onUpdate ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

frame public_oe property

public int frame
return int

frame_count public_oe property

public int frame_count
return int

origin public_oe property

public Vector2 origin
return Vector2

paused public_oe property

public bool paused
return bool

time_per_frame public_oe property

public float time_per_frame
return float

total_elapsed public_oe property

public float total_elapsed
return float