Method | Description | |
---|---|---|
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void | ||
OnCollision ( |
Runs when a character collides with a powerUp
|
|
OnNext ( GameStateManager value ) : void | ||
PowerUpController ( |
Constructs the powerup controller
|
|
Unload ( ) : void | ||
Update ( |
||
addPowerUpToMap ( ) : void |
Adds new random powerup to the map insise the drop zone
|
Method | Description | |
---|---|---|
RemovePowerUp ( int gotKilled ) : void | ||
generateTimeToNext ( ) : void |
Set random time until next powerUp is droped uses min and maxNew as upper & lower limitS
|
|
randomDropPosition ( ) : Vector2 |
Create and returns random position inside the dropZone
|
|
randomPowerUp ( ) : |
Returns random powerup from the list
|
public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void | ||
content | Microsoft.Xna.Framework.Content.ContentManager | |
return | void |
public OnCollision ( |
||
powerUpGeom | ||
character | ||
contant | ||
return | bool |
public OnNext ( GameStateManager value ) : void | ||
value | GameStateManager | |
return | void |
public PowerUpController ( |
||
screen | ||
dropZone | Box | dropZone for powerups |
return | System |
public Update ( |
||
gameTime | ||
return | void |