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
Afficher le fichier Open project: impworks/xna.geek.engine Class Usage Examples

Méthodes publiques

Свойство Type Description
AllowScrollOutside bool
Background Microsoft.Xna.Framework.Color

Méthodes publiques

Méthode 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

Méthode Description
ClampScrolling ( ) : void

Limit scroll offset within frame dimensions.

Method Details

GameScene() public méthode

public GameScene ( ) : Microsoft.Xna.Framework
Résultat Microsoft.Xna.Framework

GameScene() public méthode

public GameScene ( Vector2 size ) : Microsoft.Xna.Framework
size Microsoft.Xna.Framework.Vector2
Résultat Microsoft.Xna.Framework

GameScene() public méthode

public GameScene ( int x, int y ) : Microsoft.Xna.Framework
x int
y int
Résultat Microsoft.Xna.Framework

OnLevelEnded() public méthode

The handler to be called on level end.
public OnLevelEnded ( ) : void
Résultat void

OnLevelStarted() public méthode

The handler to be called on level start.
public OnLevelStarted ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

AllowScrollOutside public_oe property

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

Background public_oe property

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