C# Class ToyBox.SpriteManager

Inheritance: Microsoft.Xna.Framework.GameComponent, ISpriteService
Afficher le fichier Open project: jlyonsmith/ToyBox

Méthodes publiques

Méthode Description
AttachAnimation ( Microsoft.Xna.Framework.Graphics.Sprite sprite, Animation animation ) : void
AttachSprite ( Microsoft.Xna.Framework.Graphics.Sprite sprite ) : void
CreateRenderTarget ( int width, int height, IList textureAndPositions ) : RenderTarget2D
DetachAllSprites ( ) : void
DetachSprite ( Microsoft.Xna.Framework.Graphics.Sprite sprite ) : void
Draw ( ) : void
DrawRenderTarget ( RenderTarget2D renderTarget, IList textureAndPositions ) : void
FastForwardAnimations ( ) : void
HitTest ( Point point ) : int
Initialize ( ) : void
SpriteManager ( Microsoft.Xna.Framework.Game game ) : System
Update ( GameTime gameTime ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
ActivateNextAnimation ( Animation animation, Animation nextAnimation ) : void
InsertNewLines ( string text, SpriteFont font, int width, int &height ) : string

Method Details

AttachAnimation() public méthode

public AttachAnimation ( Microsoft.Xna.Framework.Graphics.Sprite sprite, Animation animation ) : void
sprite Microsoft.Xna.Framework.Graphics.Sprite
animation Animation
Résultat void

AttachSprite() public méthode

public AttachSprite ( Microsoft.Xna.Framework.Graphics.Sprite sprite ) : void
sprite Microsoft.Xna.Framework.Graphics.Sprite
Résultat void

CreateRenderTarget() public méthode

public CreateRenderTarget ( int width, int height, IList textureAndPositions ) : RenderTarget2D
width int
height int
textureAndPositions IList
Résultat Microsoft.Xna.Framework.Graphics.RenderTarget2D

DetachAllSprites() public méthode

public DetachAllSprites ( ) : void
Résultat void

DetachSprite() public méthode

public DetachSprite ( Microsoft.Xna.Framework.Graphics.Sprite sprite ) : void
sprite Microsoft.Xna.Framework.Graphics.Sprite
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Draw() public méthode

public Draw ( ) : void
Résultat void

DrawRenderTarget() public méthode

public DrawRenderTarget ( RenderTarget2D renderTarget, IList textureAndPositions ) : void
renderTarget Microsoft.Xna.Framework.Graphics.RenderTarget2D
textureAndPositions IList
Résultat void

FastForwardAnimations() public méthode

public FastForwardAnimations ( ) : void
Résultat void

HitTest() public méthode

public HitTest ( Point point ) : int
point Point
Résultat int

Initialize() public méthode

public Initialize ( ) : void
Résultat void

SpriteManager() public méthode

public SpriteManager ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Résultat System

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void