C# 클래스 Gravitation.SpriteObjects.Sprite

파일 보기 프로젝트 열기: thedamoes/Gravitation

공개 프로퍼티들

프로퍼티 타입 설명
AssetName string
Size Microsoft.Xna.Framework.Rectangle
falling bool
framesPerSec int
list List
mSpriteBody FarseerPhysics.Dynamics.Body
spriteOrigin Vector2
spriteSourceHeight int
spriteSourceWidth int
totalFrames int

보호된 프로퍼티들

프로퍼티 타입 설명
mSpriteBodyTexture Microsoft.Xna.Framework.Graphics.Texture2D
mSpriteSheetTexture Microsoft.Xna.Framework.Graphics.Texture2D
mSpriteTexture Microsoft.Xna.Framework.Graphics.Texture2D

공개 메소드들

메소드 설명
Draw ( SpriteBatch theSpriteBatch ) : void
Draw ( SpriteBatch theSpriteBatch, FarseerPhysics.DebugViewXNA debugView, Matrix projection, Matrix view ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, string theAssetName ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, string bodyAssetName, string spriteSheetAssetName ) : void
Sprite ( ) : System
Sprite ( Vector2 position, float rotation ) : System
playAnimation ( GameTime gameTime, bool loop ) : void
setAnimationOrigin ( int x, int y ) : void
setFramesPerSec ( int fps ) : void
setSpriteDrawn ( int x, int y ) : void
setSpriteSourceHeightAndWidth ( int height, int width ) : void
setTotalFrames ( int totalFrames ) : void

메소드 상세

Draw() 공개 메소드

public Draw ( SpriteBatch theSpriteBatch ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

Draw() 공개 메소드

public Draw ( SpriteBatch theSpriteBatch, FarseerPhysics.DebugViewXNA debugView, Matrix projection, Matrix view ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
debugView FarseerPhysics.DebugViewXNA
projection Matrix
view Matrix
리턴 void

LoadContent() 공개 메소드

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, string theAssetName ) : void
theContentManager Microsoft.Xna.Framework.Content.ContentManager
theAssetName string
리턴 void

LoadContent() 공개 메소드

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, string bodyAssetName, string spriteSheetAssetName ) : void
theContentManager Microsoft.Xna.Framework.Content.ContentManager
bodyAssetName string
spriteSheetAssetName string
리턴 void

Sprite() 공개 메소드

public Sprite ( ) : System
리턴 System

Sprite() 공개 메소드

public Sprite ( Vector2 position, float rotation ) : System
position Vector2
rotation float
리턴 System

playAnimation() 공개 메소드

public playAnimation ( GameTime gameTime, bool loop ) : void
gameTime GameTime
loop bool
리턴 void

setAnimationOrigin() 공개 메소드

public setAnimationOrigin ( int x, int y ) : void
x int
y int
리턴 void

setFramesPerSec() 공개 메소드

public setFramesPerSec ( int fps ) : void
fps int
리턴 void

setSpriteDrawn() 공개 메소드

public setSpriteDrawn ( int x, int y ) : void
x int
y int
리턴 void

setSpriteSourceHeightAndWidth() 공개 메소드

public setSpriteSourceHeightAndWidth ( int height, int width ) : void
height int
width int
리턴 void

setTotalFrames() 공개 메소드

public setTotalFrames ( int totalFrames ) : void
totalFrames int
리턴 void

프로퍼티 상세

AssetName 공개적으로 프로퍼티

public string AssetName
리턴 string

Size 공개적으로 프로퍼티

public Rectangle,Microsoft.Xna.Framework Size
리턴 Microsoft.Xna.Framework.Rectangle

falling 공개적으로 프로퍼티

public bool falling
리턴 bool

framesPerSec 공개적으로 프로퍼티

public int framesPerSec
리턴 int

list 공개적으로 프로퍼티

public List list
리턴 List

mSpriteBody 공개적으로 프로퍼티

public Body,FarseerPhysics.Dynamics mSpriteBody
리턴 FarseerPhysics.Dynamics.Body

mSpriteBodyTexture 보호되어 있는 프로퍼티

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

mSpriteSheetTexture 보호되어 있는 프로퍼티

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

mSpriteTexture 보호되어 있는 프로퍼티

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

spriteOrigin 공개적으로 프로퍼티

public Vector2 spriteOrigin
리턴 Vector2

spriteSourceHeight 공개적으로 프로퍼티

public int spriteSourceHeight
리턴 int

spriteSourceWidth 공개적으로 프로퍼티

public int spriteSourceWidth
리턴 int

totalFrames 공개적으로 프로퍼티

public int totalFrames
리턴 int