C# Class geek.GameEngine.Visuals.GameScene

The base class that serves as a root for all visual objects on the scene, allowing scrolling and more.
Inheritance: ObjectGroup
Show file Open project: impworks/xna.geek.engine Class Usage Examples

Public Properties

Property Type Description
AllowScrollOutside bool
Background Microsoft.Xna.Framework.Color

Public Methods

Method Description
GameScene ( ) : Microsoft.Xna.Framework
GameScene ( Vector2 size ) : Microsoft.Xna.Framework
GameScene ( int x, int y ) : Microsoft.Xna.Framework
OnLevelEnded ( ) : void

The handler to be called on level end.

OnLevelStarted ( ) : void

The handler to be called on level start.

Update ( ) : void

Private Methods

Method Description
ClampScrolling ( ) : void

Limit scroll offset within frame dimensions.

Method Details

GameScene() public method

public GameScene ( ) : Microsoft.Xna.Framework
return Microsoft.Xna.Framework

GameScene() public method

public GameScene ( Vector2 size ) : Microsoft.Xna.Framework
size Microsoft.Xna.Framework.Vector2
return Microsoft.Xna.Framework

GameScene() public method

public GameScene ( int x, int y ) : Microsoft.Xna.Framework
x int
y int
return Microsoft.Xna.Framework

OnLevelEnded() public method

The handler to be called on level end.
public OnLevelEnded ( ) : void
return void

OnLevelStarted() public method

The handler to be called on level start.
public OnLevelStarted ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

AllowScrollOutside public property

Gets or sets the flag indicating that scrolling may be unrestricted to frame dimensions.
public bool AllowScrollOutside
return bool

Background public property

Gets or sets the background color for current level.
public Color,Microsoft.Xna.Framework Background
return Microsoft.Xna.Framework.Color