C# 클래스 Zeplin.Layer

Defines a logical collection of actors and tiles
This should be changed to have a collection of IRenderable and IThinkables
파일 보기 프로젝트 열기: zumpiez/Zeplin 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Draw void
Update void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Add() 공개 메소드

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

Layer() 공개 메소드

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

MoveTo() 공개 메소드

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
리턴 bool

Remove() 공개 메소드

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