C# Class Zeplin.Layer

Defines a logical collection of actors and tiles
This should be changed to have a collection of IRenderable and IThinkables
Afficher le fichier Open project: zumpiez/Zeplin Class Usage Examples

Private Properties

Свойство Type Description
Draw void
Update void

Méthodes publiques

Méthode Description
Add ( Zeplin.GameObject addedObject ) : void

Adds a GameObject to this layer

Layer ( ) : System

Constructs a layer with empty actor and tile collections

MoveTo ( Zeplin.GameObject movedObject, Layer destinationLayer ) : bool

Moves an actor to another layer

Remove ( Zeplin.GameObject removedObject ) : bool

Removes an object from this layer

Private Methods

Méthode Description
Draw ( GameTime gameTime ) : void

Causes the game objects on this layer to draw themselves.

Update ( GameTime gameTime ) : void

Causes the tiles and actors owned by this layer to update themselves

Method Details

Add() public méthode

Adds a GameObject to this layer
public Add ( Zeplin.GameObject addedObject ) : void
addedObject Zeplin.GameObject The added GameObject
Résultat void

Layer() public méthode

Constructs a layer with empty actor and tile collections
public Layer ( ) : System
Résultat System

MoveTo() public méthode

Moves an actor to another layer
public MoveTo ( Zeplin.GameObject movedObject, Layer destinationLayer ) : bool
movedObject Zeplin.GameObject
destinationLayer Layer The layer to move the actor to
Résultat bool

Remove() public méthode

Removes an object from this layer
public Remove ( Zeplin.GameObject removedObject ) : bool
removedObject Zeplin.GameObject The IGameObjectProvider to be removed
Résultat bool