C# 클래스 Platformer.Tiles.Spawner

상속: IActivatable, ICameraTrackable
파일 보기 프로젝트 열기: zmthy/play-dead 1 사용 예제들

공개 메소드들

메소드 설명
ChangeState ( ) : void
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
IsActive ( ) : bool
SetSpawnState ( System.Boolean isActive ) : void

Overrides the state of the spawner so the level can switch old spawns back off.

SetState ( System.Boolean active ) : void

When the spawner is swicthed on it will notify the Level to update it's spawn.

Spawn ( ) : void
Spawner ( Vector2 position, Microsoft.Xna.Framework.Content.ContentManager content ) : System
Update ( GameTime gameTime ) : void
bindToLevel ( Level level ) : void

Binds the spawner to a particular level so it can notify the level if it gets turned on.

getPosition ( ) : Vector2

비공개 메소드들

메소드 설명
initialise ( Microsoft.Xna.Framework.Content.ContentManager content ) : void

Load the texture assets and position the spawner.

메소드 상세

ChangeState() 공개 메소드

public ChangeState ( ) : void
리턴 void

Draw() 공개 메소드

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

IsActive() 공개 메소드

public IsActive ( ) : bool
리턴 bool

SetSpawnState() 공개 메소드

Overrides the state of the spawner so the level can switch old spawns back off.
public SetSpawnState ( System.Boolean isActive ) : void
isActive System.Boolean
리턴 void

SetState() 공개 메소드

When the spawner is swicthed on it will notify the Level to update it's spawn.
public SetState ( System.Boolean active ) : void
active System.Boolean
리턴 void

Spawn() 공개 메소드

public Spawn ( ) : void
리턴 void

Spawner() 공개 메소드

public Spawner ( Vector2 position, Microsoft.Xna.Framework.Content.ContentManager content ) : System
position Vector2
content Microsoft.Xna.Framework.Content.ContentManager
리턴 System

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

bindToLevel() 공개 메소드

Binds the spawner to a particular level so it can notify the level if it gets turned on.
public bindToLevel ( Level level ) : void
level Level
리턴 void

getPosition() 공개 메소드

public getPosition ( ) : Vector2
리턴 Vector2