C# Class LDEngine.SpriteAnim

Afficher le fichier Open project: GarethIW/LDEngine

Méthodes publiques

Свойство 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

Méthodes publiques

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

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

Draw() public méthode

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

Draw() public méthode

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

Draw() public méthode

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

Draw() public méthode

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

Pause() public méthode

public Pause ( ) : void
Résultat void

Play() public méthode

public Play ( ) : void
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

SpriteAnim() public méthode

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

SpriteAnim() public méthode

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

SpriteAnim() public méthode

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

Update() public méthode

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

Property Details

CellHeight public_oe property

public int CellHeight
Résultat int

CellWidth public_oe property

public int CellWidth
Résultat int

CurrentDirection public_oe property

public SpriteAnimDirection CurrentDirection
Résultat SpriteAnimDirection

CurrentFrame public_oe property

public int CurrentFrame
Résultat int

CurrentFrameTime public_oe property

public double CurrentFrameTime
Résultat double

Loop public_oe property

public bool Loop
Résultat bool

NumFrames public_oe property

public int NumFrames
Résultat int

Offset public_oe property

public Vector2 Offset
Résultat Vector2

PingPong public_oe property

public bool PingPong
Résultat bool

SheetRow public_oe property

public int SheetRow
Résultat int

SpriteSheet public_oe property

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

State public_oe property

public SpriteAnimState State
Résultat SpriteAnimState

TargetFrameTime public_oe property

public double TargetFrameTime
Résultat double