Method | 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
|
Method | 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. | |
return | void |
public FirstAidManager ( |
||
game | ||
return | System |
public Update ( |
||
gameTime | The gametime. | |
return | void |
public checkCollisionWithBullet ( |
||
unit | Unit to check collision with | |
return | bool |