C# Class TiaraFramework.Component.Stage

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Show file Open project: TiaraGames/TiaraFramework Class Usage Examples

Public Properties

Property Type Description
BackgoundColor Color
NextStage StageIndex
SprMgrClct SpriteManager>.Dictionary
Window Window
isFinished bool

Protected Properties

Property Type Description
KeyboardState Microsoft.Xna.Framework.Input.KeyboardState
MouseButton MouseButton
MouseLastPos Vector2
MouseMove Vector2
MouseState Microsoft.Xna.Framework.Input.MouseState
ScrollWheelChange int
ScrollWheelLastValue int
deltaFrames long
enable bool
framesTimer long
windowBounds Microsoft.Xna.Framework.Rectangle

Public Methods

Method Description
AddSpriteManager ( string name ) : void
Draw ( GameTime gameTime ) : void
Initialize ( ) : void
MoveSMs ( Vector2 moveVec, SpriteManager SMs ) : void
ResizeWindowBounds ( object sender, EventArgs e ) : void
Stage ( Microsoft.Xna.Framework.Game game, float fps ) : System
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
ChangeStage ( StageIndex nextStage ) : void
ClearTimer ( ) : void
LoadContent ( ) : void
SetTempTimer ( double interval ) : long
SetTimer ( double interval ) : long
SetTimer ( int minites, double seconds ) : long
SetTimerWithFrame ( int frame ) : void
TimeToFrames ( double interval ) : int

Private Methods

Method Description
collectAllASprite ( ASprite source, List target ) : void

Method Details

AddSpriteManager() public method

public AddSpriteManager ( string name ) : void
name string
return void

ChangeStage() protected method

protected ChangeStage ( StageIndex nextStage ) : void
nextStage StageIndex
return void

ClearTimer() protected method

protected ClearTimer ( ) : void
return void

Draw() public method

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

Initialize() public method

public Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

MoveSMs() public method

public MoveSMs ( Vector2 moveVec, SpriteManager SMs ) : void
moveVec Vector2
SMs SpriteManager
return void

ResizeWindowBounds() public method

public ResizeWindowBounds ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

SetTempTimer() protected method

protected SetTempTimer ( double interval ) : long
interval double
return long

SetTimer() protected method

protected SetTimer ( double interval ) : long
interval double
return long

SetTimer() protected method

protected SetTimer ( int minites, double seconds ) : long
minites int
seconds double
return long

SetTimerWithFrame() protected method

protected SetTimerWithFrame ( int frame ) : void
frame int
return void

Stage() public method

public Stage ( Microsoft.Xna.Framework.Game game, float fps ) : System
game Microsoft.Xna.Framework.Game
fps float
return System

TimeToFrames() protected method

protected TimeToFrames ( double interval ) : int
interval double
return int

Update() public method

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

Property Details

BackgoundColor public property

public Color BackgoundColor
return Color

KeyboardState protected property

protected KeyboardState,Microsoft.Xna.Framework.Input KeyboardState
return Microsoft.Xna.Framework.Input.KeyboardState

MouseButton protected property

protected MouseButton,TiaraFramework.Component MouseButton
return MouseButton

MouseLastPos protected property

protected Vector2 MouseLastPos
return Vector2

MouseMove protected property

protected Vector2 MouseMove
return Vector2

MouseState protected property

protected MouseState,Microsoft.Xna.Framework.Input MouseState
return Microsoft.Xna.Framework.Input.MouseState

NextStage public property

public StageIndex NextStage
return StageIndex

ScrollWheelChange protected property

protected int ScrollWheelChange
return int

ScrollWheelLastValue protected property

protected int ScrollWheelLastValue
return int

SprMgrClct public property

public Dictionary SprMgrClct
return SpriteManager>.Dictionary

Window public property

public Window,TiaraFramework.Component Window
return Window

deltaFrames protected property

protected long deltaFrames
return long

enable protected property

protected bool enable
return bool

framesTimer protected property

protected long framesTimer
return long

isFinished public property

public bool isFinished
return bool

windowBounds protected property

protected Rectangle,Microsoft.Xna.Framework windowBounds
return Microsoft.Xna.Framework.Rectangle