C# Класс geek.GameEngine.Sprites.SpriteBase

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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