C# Class ToyBox.SpriteManager

Inheritance: Microsoft.Xna.Framework.GameComponent, ISpriteService
Show file Open project: jlyonsmith/ToyBox

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

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

Method Details

AttachAnimation() public method

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

AttachSprite() public method

public AttachSprite ( Microsoft.Xna.Framework.Graphics.Sprite sprite ) : void
sprite Microsoft.Xna.Framework.Graphics.Sprite
return void

CreateRenderTarget() public method

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

DetachAllSprites() public method

public DetachAllSprites ( ) : void
return void

DetachSprite() public method

public DetachSprite ( Microsoft.Xna.Framework.Graphics.Sprite sprite ) : void
sprite Microsoft.Xna.Framework.Graphics.Sprite
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Draw() public method

public Draw ( ) : void
return void

DrawRenderTarget() public method

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

FastForwardAnimations() public method

public FastForwardAnimations ( ) : void
return void

HitTest() public method

public HitTest ( Point point ) : int
point Point
return int

Initialize() public method

public Initialize ( ) : void
return void

SpriteManager() public method

public SpriteManager ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void