C# Класс FontEffectsLib.SpriteTypes.ComplexSprite

A sprite containing multiple relatively positioned sprites.
This type of sprite has no definite size.
Наследование: FontEffectsLib.CoreTypes.BaseGameObject
Показать файл Открыть проект

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

Метод Описание
ComplexSprite ( Vector2 position ) : System

Creates a ComplexSprite at the specified position with the specified subsprites, tinted white.

Draw ( SpriteBatch spriteBatch ) : void

Draws all of the subsprites of this ComplexSprite to the specified SpriteBatch.

SetCenterAsOrigin ( ) : void

Sets the center of this ComplexSprite as the origin.

Update ( GameTime gameTime ) : void

Updates all of the components of this ComplexSprite.

Описание методов

ComplexSprite() публичный Метод

Creates a ComplexSprite at the specified position with the specified subsprites, tinted white.
public ComplexSprite ( Vector2 position ) : System
position Vector2 The root position of the .
Результат System

Draw() публичный Метод

Draws all of the subsprites of this ComplexSprite to the specified SpriteBatch.
public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch The to render objects to.
Результат void

SetCenterAsOrigin() публичный Метод

Sets the center of this ComplexSprite as the origin.
Thrown when you invoke this method, because a has no definite size.
public SetCenterAsOrigin ( ) : void
Результат void

Update() публичный Метод

Updates all of the components of this ComplexSprite.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The current .
Результат void