C# Class Dischord.Engine.SpriteManager

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
显示文件 Open project: jbrownbridge/Dischord

Protected Properties

Property Type Description
reset System.Boolean
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
spriteImage Microsoft.Xna.Framework.Graphics.Texture2D
spriteList List

Public Methods

Method Description
AddSprite ( Sprite sprite, int framesPerSecond ) : void
Initialize ( ) : void
Reset ( ) : void
SpriteManager ( Microsoft.Xna.Framework.Game game, string imagePath, int columns, int rows, string behaviourPath ) : System
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
LoadContent ( ) : void

Method Details

AddSprite() public method

public AddSprite ( Sprite sprite, int framesPerSecond ) : void
sprite Sprite
framesPerSecond int
return void

Initialize() public method

public Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

SpriteManager() public method

public SpriteManager ( Microsoft.Xna.Framework.Game game, string imagePath, int columns, int rows, string behaviourPath ) : System
game Microsoft.Xna.Framework.Game
imagePath string
columns int
rows int
behaviourPath string
return System

Update() public abstract method

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

Property Details

reset protected_oe property

protected Boolean,System reset
return System.Boolean

spriteBatch protected_oe property

protected SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
return Microsoft.Xna.Framework.Graphics.SpriteBatch

spriteImage protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics spriteImage
return Microsoft.Xna.Framework.Graphics.Texture2D

spriteList protected_oe property

protected List spriteList
return List