C# 클래스 FontEffectsLib.SpriteTypes.ComplexSprite

A sprite containing multiple relatively positioned sprites.
This type of sprite has no definite size.
상속: FontEffectsLib.CoreTypes.BaseGameObject
파일 보기 프로젝트 열기: GreatMindsRobotics/FontEffectsLib

공개 메소드들

메소드 설명
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