HealthBar Library
Diff: HealthBar.h
- Revision:
- 2:8c597d140b1d
- Parent:
- 1:9f2d307b3b99
diff -r 9f2d307b3b99 -r 8c597d140b1d HealthBar.h --- a/HealthBar.h Thu May 04 08:35:26 2017 +0000 +++ b/HealthBar.h Thu May 04 11:36:55 2017 +0000 @@ -9,50 +9,39 @@ { public: - /** - * - * - */ HealthBar(); - - /** - * - * - */ ~HealthBar(); - /** + /** Initialise HealthBar * - * + * This function initialises the HealthBar and obtains the HP value from the game engine. */ void init(int HP); - /** + /** Draw * - * + * This function draws the health bar onto the screen. */ void draw(N5110 &lcd); - /** + /** Update * - * + * This function updates the health bar on screen as the HP value changes. */ void update(); - /** + /** Minus HP 1 * - * + * This function obtains the HPLost1 value from the game engine. */ void MinusHP1(int HPLost1); - /** + /** Minus HP 2 * - * + * This function obtains the HPLost2 value from the game engine. */ void MinusHP2(int HPLost2); - - int ZeroHP;