Method | Description | |
---|---|---|
ChangeState ( ) : void | ||
Draw ( |
||
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 ( |
||
bindToLevel ( Level level ) : void |
Binds the spawner to a particular level so it can notify the level if it gets turned on.
|
|
getPosition ( ) : Vector2 |
Method | Description | |
---|---|---|
initialise ( Microsoft.Xna.Framework.Content.ContentManager content ) : void |
Load the texture assets and position the spawner.
|
public Draw ( |
||
gameTime | ||
spriteBatch | ||
return | void |
public SetSpawnState ( System.Boolean isActive ) : void | ||
isActive | System.Boolean | |
return | void |
public SetState ( System.Boolean active ) : void | ||
active | System.Boolean | |
return | void |
public Spawner ( Vector2 position, Microsoft.Xna.Framework.Content.ContentManager content ) : System | ||
position | Vector2 | |
content | Microsoft.Xna.Framework.Content.ContentManager | |
return | System |
public Update ( |
||
gameTime | ||
return | void |