C# Class PrinceGame.AnimationSequence

Afficher le fichier Open project: salvadorc17/Prince-Monogame

Méthodes publiques

Свойство Type Description
StateName string
frameRate float
lsequence List
sequence Sequence

Méthodes publiques

Méthode Description
DrawItem ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth ) : void
DrawSprite ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth ) : void
DrawSprite ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
DrawTile ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth ) : void
DrawTile ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth, Rectangle rectangleMask, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
DrawTile ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
DrawTileMask ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth, Rectangle rectangleMask ) : void
FrameSpriteCount ( ) : int

Gets the index of the current frame in the animation. i count ONLY sprite command

PlayAnimation ( List lsequence, StateElement stateElement ) : void

Begins or continues playback of an animation.

UpdateFrame ( float elapsed, Position &position, SpriteEffects &spriteEffects__1, PlayerState &playerState ) : void
UpdateFrameItem ( float elapsed, Position &position, SpriteEffects &spriteEffects__1, TileState &itemState ) : void
UpdateFrameTile ( float elapsed, Position &position, SpriteEffects &spriteEffects__1, TileState &tileState ) : void

Method Details

DrawItem() public méthode

public DrawItem ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
spriteEffects SpriteEffects
depth float
Résultat void

DrawSprite() public méthode

public DrawSprite ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
spriteEffects SpriteEffects
depth float
Résultat void

DrawSprite() public méthode

public DrawSprite ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
spriteEffects SpriteEffects
depth float
texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

DrawTile() public méthode

public DrawTile ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
spriteEffects SpriteEffects
depth float
Résultat void

DrawTile() public méthode

public DrawTile ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth, Rectangle rectangleMask, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
spriteEffects SpriteEffects
depth float
rectangleMask Microsoft.Xna.Framework.Rectangle
texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

DrawTile() public méthode

public DrawTile ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
spriteEffects SpriteEffects
depth float
texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

DrawTileMask() public méthode

public DrawTileMask ( GameTime gameTime, SpriteBatch spriteBatch, Vector2 position, SpriteEffects spriteEffects, float depth, Rectangle rectangleMask ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
spriteEffects SpriteEffects
depth float
rectangleMask Microsoft.Xna.Framework.Rectangle
Résultat void

FrameSpriteCount() public méthode

Gets the index of the current frame in the animation. i count ONLY sprite command
public FrameSpriteCount ( ) : int
Résultat int

PlayAnimation() public méthode

Begins or continues playback of an animation.
public PlayAnimation ( List lsequence, StateElement stateElement ) : void
lsequence List
stateElement StateElement
Résultat void

UpdateFrame() public méthode

public UpdateFrame ( float elapsed, Position &position, SpriteEffects &spriteEffects__1, PlayerState &playerState ) : void
elapsed float
position Position
spriteEffects__1 SpriteEffects
playerState PlayerState
Résultat void

UpdateFrameItem() public méthode

public UpdateFrameItem ( float elapsed, Position &position, SpriteEffects &spriteEffects__1, TileState &itemState ) : void
elapsed float
position Position
spriteEffects__1 SpriteEffects
itemState TileState
Résultat void

UpdateFrameTile() public méthode

public UpdateFrameTile ( float elapsed, Position &position, SpriteEffects &spriteEffects__1, TileState &tileState ) : void
elapsed float
position Position
spriteEffects__1 SpriteEffects
tileState TileState
Résultat void

Property Details

StateName public_oe property

public string StateName
Résultat string

frameRate public_oe static_oe property

public static float frameRate
Résultat float

lsequence public_oe property

public List lsequence
Résultat List

sequence public_oe property

public Sequence,PrinceGame sequence
Résultat Sequence