C# Class FontEffectsLib.SpriteTypes.ComplexSprite

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

Public Methods

Method 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 method

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 .
return System

Draw() public method

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.
return void

SetCenterAsOrigin() public method

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

Update() public method

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