C# 클래스 TugOfBaby.Animation

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

공개 프로퍼티들

프로퍼티 타입 설명
Texture Microsoft.Xna.Framework.Graphics.Texture2D
drawWidth int
frameHeight int
frameWidth int
frames List
looping bool

공개 메소드들

메소드 설명
Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums ) : System
Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums, int start, int stop ) : System
Draw ( SpriteBatch spriteBatch, Vector2 position, float rotation, bool flip ) : void
Update ( GameTime gameTime ) : void

비공개 메소드들

메소드 설명
AddFrame ( Rectangle frameRectangle ) : void

메소드 상세

Animation() 공개 메소드

public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
initialFrame Microsoft.Xna.Framework.Rectangle
totalNumberOfFrames int
_scale float
rows int
collums int
리턴 System

Animation() 공개 메소드

public Animation ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle initialFrame, int totalNumberOfFrames, float _scale, int rows, int collums, int start, int stop ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
initialFrame Microsoft.Xna.Framework.Rectangle
totalNumberOfFrames int
_scale float
rows int
collums int
start int
stop int
리턴 System

Draw() 공개 메소드

public Draw ( SpriteBatch spriteBatch, Vector2 position, float rotation, bool flip ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
rotation float
flip bool
리턴 void

Update() 공개 메소드

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

프로퍼티 상세

Texture 공개적으로 프로퍼티

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

drawWidth 공개적으로 프로퍼티

public int drawWidth
리턴 int

frameHeight 공개적으로 프로퍼티

public int frameHeight
리턴 int

frameWidth 공개적으로 프로퍼티

public int frameWidth
리턴 int

frames 공개적으로 프로퍼티

public List frames
리턴 List

looping 공개적으로 프로퍼티

public bool looping
리턴 bool