C# Class Zeplin.Layer

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

Private Properties

Property Type Description
Draw void
Update void

Public Methods

Method 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

Method 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 method

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

Layer() public method

Constructs a layer with empty actor and tile collections
public Layer ( ) : System
return System

MoveTo() public method

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
return bool

Remove() public method

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