C# Class FontEffectsLib.SpriteTypes.ComplexSprite

A sprite containing multiple relatively positioned sprites.
This type of sprite has no definite size.
Inheritance: FontEffectsLib.CoreTypes.BaseGameObject
Afficher le fichier Open project: GreatMindsRobotics/FontEffectsLib

Méthodes publiques

Méthode Description
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.

Method Details

ComplexSprite() public méthode

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 .
Résultat System

Draw() public méthode

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.
Résultat void

SetCenterAsOrigin() public méthode

Sets the center of this ComplexSprite as the origin.
Thrown when you invoke this method, because a has no definite size.
public SetCenterAsOrigin ( ) : void
Résultat void

Update() public méthode

Updates all of the components of this ComplexSprite.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The current .
Résultat void