C# 클래스 geek.GameEngine.Sprites.SpriteBase

파일 보기 프로젝트 열기: impworks/xna.geek.engine 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( SpriteBatch batch, bool disableLayering = false ) : void

Outputs the sprite to the screen.

GetTextureRegion ( Rectangle rect ) : Microsoft.Xna.Framework.Color[]

Get a piece of sprite texture for collision detection.

Reset ( ) : void

Reset the sprite.

SetHotSpot ( HorizontalAlignment horizontal = HorizontalAlignment.Center, VerticalAlignment vertical = VerticalAlignment.Center ) : void

Set the hotspot to a particular place inside the sprite.

Update ( ) : void

Update the sprite.

보호된 메소드들

메소드 설명
SpriteBase ( GameObject parent ) : Microsoft.Xna.Framework
SpriteBase ( GameObject parent, Microsoft.Xna.Framework.Graphics.Texture2D tex ) : Microsoft.Xna.Framework

메소드 상세

Draw() 공개 추상적인 메소드

Outputs the sprite to the screen.
public abstract Draw ( SpriteBatch batch, bool disableLayering = false ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch Sprite batch.
disableLayering bool Whether to use layer ordering or not.
리턴 void

GetTextureRegion() 공개 추상적인 메소드

Get a piece of sprite texture for collision detection.
public abstract GetTextureRegion ( Rectangle rect ) : Microsoft.Xna.Framework.Color[]
rect Microsoft.Xna.Framework.Rectangle Rectangle to get.
리턴 Microsoft.Xna.Framework.Color[]

Reset() 공개 메소드

Reset the sprite.
public Reset ( ) : void
리턴 void

SetHotSpot() 공개 메소드

Set the hotspot to a particular place inside the sprite.
public SetHotSpot ( HorizontalAlignment horizontal = HorizontalAlignment.Center, VerticalAlignment vertical = VerticalAlignment.Center ) : void
horizontal HorizontalAlignment
vertical VerticalAlignment
리턴 void

SpriteBase() 보호된 메소드

protected SpriteBase ( GameObject parent ) : Microsoft.Xna.Framework
parent geek.GameEngine.Visuals.GameObject
리턴 Microsoft.Xna.Framework

SpriteBase() 보호된 메소드

protected SpriteBase ( GameObject parent, Microsoft.Xna.Framework.Graphics.Texture2D tex ) : Microsoft.Xna.Framework
parent geek.GameEngine.Visuals.GameObject
tex Microsoft.Xna.Framework.Graphics.Texture2D
리턴 Microsoft.Xna.Framework

Update() 공개 메소드

Update the sprite.
public Update ( ) : void
리턴 void