메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | void |
public OnCollision ( |
||
powerUpGeom | ||
character | ||
contant | ||
리턴 | bool |
public PowerUpController ( |
||
screen | ||
dropZone | Box | dropZone for powerups |
리턴 | System |
public Update ( |
||
gameTime | ||
리턴 | void |