C# 클래스 Dodgeball.Engine.Sprite

상속: GameObject
파일 보기 프로젝트 열기: schonstal/BLOODBALL

공개 프로퍼티들

프로퍼티 타입 설명
alpha float
blend Microsoft.Xna.Framework.Graphics.BlendState
color Color
graphicHeight int
graphicWidth int
offset Vector2
screenPositioning ScreenPositioning
sheetOffset Vector2
visible bool

보호된 프로퍼티들

프로퍼티 타입 설명
animations Animation>.Dictionary
atlas Microsoft.Xna.Framework.Graphics.Texture2D
currentAnimation String

공개 메소드들

메소드 설명
Draw ( ) : void
Sprite ( float x = 0f, float y = 0f, int width, int height ) : System
Update ( ) : void
addAnimation ( String name, List frames, int fps = 15, bool looped = false ) : void
addAnimationCallback ( String animationName, Action callback ) : void
addOnCompleteCallback ( String animationName, Action callback ) : void
loadGraphic ( String textureName, int width, int height ) : void
play ( String animation ) : void
stop ( ) : void

메소드 상세

Draw() 공개 메소드

public Draw ( ) : void
리턴 void

Sprite() 공개 메소드

public Sprite ( float x = 0f, float y = 0f, int width, int height ) : System
x float
y float
width int
height int
리턴 System

Update() 공개 메소드

public Update ( ) : void
리턴 void

addAnimation() 공개 메소드

public addAnimation ( String name, List frames, int fps = 15, bool looped = false ) : void
name String
frames List
fps int
looped bool
리턴 void

addAnimationCallback() 공개 메소드

public addAnimationCallback ( String animationName, Action callback ) : void
animationName String
callback Action
리턴 void

addOnCompleteCallback() 공개 메소드

public addOnCompleteCallback ( String animationName, Action callback ) : void
animationName String
callback Action
리턴 void

loadGraphic() 공개 메소드

public loadGraphic ( String textureName, int width, int height ) : void
textureName String
width int
height int
리턴 void

play() 공개 메소드

public play ( String animation ) : void
animation String
리턴 void

stop() 공개 메소드

public stop ( ) : void
리턴 void

프로퍼티 상세

alpha 공개적으로 프로퍼티

public float alpha
리턴 float

animations 보호되어 있는 프로퍼티

protected Dictionary animations
리턴 Animation>.Dictionary

atlas 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics atlas
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

blend 공개적으로 프로퍼티

public BlendState,Microsoft.Xna.Framework.Graphics blend
리턴 Microsoft.Xna.Framework.Graphics.BlendState

color 공개적으로 프로퍼티

public Color color
리턴 Color

currentAnimation 보호되어 있는 프로퍼티

protected String currentAnimation
리턴 String

graphicHeight 공개적으로 프로퍼티

public int graphicHeight
리턴 int

graphicWidth 공개적으로 프로퍼티

public int graphicWidth
리턴 int

offset 공개적으로 프로퍼티

public Vector2 offset
리턴 Vector2

screenPositioning 공개적으로 프로퍼티

public ScreenPositioning screenPositioning
리턴 ScreenPositioning

sheetOffset 공개적으로 프로퍼티

public Vector2 sheetOffset
리턴 Vector2

visible 공개적으로 프로퍼티

public bool visible
리턴 bool