C# Класс PrinceGame.AnimationSequence

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
StateName string
frameRate float
lsequence List
sequence Sequence

Открытые методы

Метод Описание
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

Описание методов

DrawItem() публичный Метод

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
Результат void

DrawSprite() публичный Метод

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
Результат void

DrawSprite() публичный Метод

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
Результат void

DrawTile() публичный Метод

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
Результат void

DrawTile() публичный Метод

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
Результат void

DrawTile() публичный Метод

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
Результат void

DrawTileMask() публичный Метод

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
Результат void

FrameSpriteCount() публичный Метод

Gets the index of the current frame in the animation. i count ONLY sprite command
public FrameSpriteCount ( ) : int
Результат int

PlayAnimation() публичный Метод

Begins or continues playback of an animation.
public PlayAnimation ( List lsequence, StateElement stateElement ) : void
lsequence List
stateElement StateElement
Результат void

UpdateFrame() публичный Метод

public UpdateFrame ( float elapsed, Position &position, SpriteEffects &spriteEffects__1, PlayerState &playerState ) : void
elapsed float
position Position
spriteEffects__1 SpriteEffects
playerState PlayerState
Результат void

UpdateFrameItem() публичный Метод

public UpdateFrameItem ( float elapsed, Position &position, SpriteEffects &spriteEffects__1, TileState &itemState ) : void
elapsed float
position Position
spriteEffects__1 SpriteEffects
itemState TileState
Результат void

UpdateFrameTile() публичный Метод

public UpdateFrameTile ( float elapsed, Position &position, SpriteEffects &spriteEffects__1, TileState &tileState ) : void
elapsed float
position Position
spriteEffects__1 SpriteEffects
tileState TileState
Результат void

Описание свойств

StateName публичное свойство

public string StateName
Результат string

frameRate публичное статическое свойство

public static float frameRate
Результат float

lsequence публичное свойство

public List lsequence
Результат List

sequence публичное свойство

public Sequence,PrinceGame sequence
Результат Sequence