Méthode | Description | |
---|---|---|
Draw ( |
This method renders the current state.
|
|
FirstAidManager ( |
||
Update ( |
Allows the component to run logic.
|
|
checkCollisionWithBullet ( |
if the unit(player or bullet) collide with the first aid add the health
|
Méthode | Description | |
---|---|---|
addFirstAidKit ( ) : void |
Add a new medkit at a random location on the terrain
|
|
addHealth ( int j ) : void |
add health specified by difficult constants to the health of the player and remove the mdekit
|
public Draw ( |
||
gameTime | The elapsed game time. | |
Résultat | void |
public FirstAidManager ( |
||
game | ||
Résultat | System |
public Update ( |
||
gameTime | The gametime. | |
Résultat | void |
public checkCollisionWithBullet ( |
||
unit | Unit to check collision with | |
Résultat | bool |