C# 클래스 LDEngine.SpriteAnim

파일 보기 프로젝트 열기: GarethIW/LDEngine

공개 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

메소드 상세

Draw() 공개 메소드

public Draw ( SpriteBatch sb, Vector2 pos ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
pos Vector2
리턴 void

Draw() 공개 메소드

public Draw ( SpriteBatch sb, Vector2 pos, SpriteEffects effects ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
pos Vector2
effects SpriteEffects
리턴 void

Draw() 공개 메소드

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

Draw() 공개 메소드

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
리턴 void

Draw() 공개 메소드

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
리턴 void

Pause() 공개 메소드

public Pause ( ) : void
리턴 void

Play() 공개 메소드

public Play ( ) : void
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

SpriteAnim() 공개 메소드

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
리턴 System

SpriteAnim() 공개 메소드

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
리턴 System

SpriteAnim() 공개 메소드

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
리턴 System

Update() 공개 메소드

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

프로퍼티 상세

CellHeight 공개적으로 프로퍼티

public int CellHeight
리턴 int

CellWidth 공개적으로 프로퍼티

public int CellWidth
리턴 int

CurrentDirection 공개적으로 프로퍼티

public SpriteAnimDirection CurrentDirection
리턴 SpriteAnimDirection

CurrentFrame 공개적으로 프로퍼티

public int CurrentFrame
리턴 int

CurrentFrameTime 공개적으로 프로퍼티

public double CurrentFrameTime
리턴 double

Loop 공개적으로 프로퍼티

public bool Loop
리턴 bool

NumFrames 공개적으로 프로퍼티

public int NumFrames
리턴 int

Offset 공개적으로 프로퍼티

public Vector2 Offset
리턴 Vector2

PingPong 공개적으로 프로퍼티

public bool PingPong
리턴 bool

SheetRow 공개적으로 프로퍼티

public int SheetRow
리턴 int

SpriteSheet 공개적으로 프로퍼티

public Texture2D,Microsoft.Xna.Framework.Graphics SpriteSheet
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

State 공개적으로 프로퍼티

public SpriteAnimState State
리턴 SpriteAnimState

TargetFrameTime 공개적으로 프로퍼티

public double TargetFrameTime
리턴 double