C# 클래스 SuperCaissiere.Engine.Graphics.SpriteAnimation

Animation features (change frame with delay)
파일 보기 프로젝트 열기: valryon/super-caissiere

공개 프로퍼티들

프로퍼티 타입 설명
InfiniteAnimation int

공개 메소드들

메소드 설명
Reset ( ) : void

Restart animation

SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed ) : Microsoft.Xna.Framework

New animation

SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed, int loopNumber ) : Microsoft.Xna.Framework

New animation

SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed, int firstFrameX, Vector2 boxSize, int loopNumber ) : Microsoft.Xna.Framework

New animation engine

Update ( GameTime gameTime ) : void

메소드 상세

Reset() 공개 메소드

Restart animation
public Reset ( ) : void
리턴 void

SpriteAnimation() 공개 메소드

New animation
public SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed ) : Microsoft.Xna.Framework
sRect Microsoft.Xna.Framework.Rectangle
frameNumber int
frameSpeed float
리턴 Microsoft.Xna.Framework

SpriteAnimation() 공개 메소드

New animation
public SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed, int loopNumber ) : Microsoft.Xna.Framework
sRect Microsoft.Xna.Framework.Rectangle
frameNumber int
frameSpeed float
loopNumber int
리턴 Microsoft.Xna.Framework

SpriteAnimation() 공개 메소드

New animation engine
public SpriteAnimation ( Rectangle sRect, int frameNumber, float frameSpeed, int firstFrameX, Vector2 boxSize, int loopNumber ) : Microsoft.Xna.Framework
sRect Microsoft.Xna.Framework.Rectangle
frameNumber int
frameSpeed float
firstFrameX int
boxSize Microsoft.Xna.Framework.Vector2
loopNumber int
리턴 Microsoft.Xna.Framework

Update() 공개 메소드

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

프로퍼티 상세

InfiniteAnimation 공개적으로 정적으로 프로퍼티

Repeat animation
public static int InfiniteAnimation
리턴 int