C# 클래스 Project_Starfighter.AnimatedSprite

파일 보기 프로젝트 열기: csce3513/Team15 1 사용 예제들

공개 메소드들

메소드 설명
AnimatedSprite ( ) : System
AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int FrameOffsetX, int FrameOffsetY, int FrameWidth, int FrameHeight, int FrameCount ) : System
Draw ( SpriteBatch spriteBatch, int XOffset, int YOffset, bool NeedBeginEnd ) : void
GetSourceRect ( ) : Rectangle
Update ( GameTime gametime ) : void

메소드 상세

AnimatedSprite() 공개 메소드

public AnimatedSprite ( ) : System
리턴 System

AnimatedSprite() 공개 메소드

public AnimatedSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int FrameOffsetX, int FrameOffsetY, int FrameWidth, int FrameHeight, int FrameCount ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
FrameOffsetX int
FrameOffsetY int
FrameWidth int
FrameHeight int
FrameCount int
리턴 System

Draw() 공개 메소드

public Draw ( SpriteBatch spriteBatch, int XOffset, int YOffset, bool NeedBeginEnd ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
XOffset int
YOffset int
NeedBeginEnd bool
리턴 void

GetSourceRect() 공개 메소드

public GetSourceRect ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

Update() 공개 메소드

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