HealthBar Library

Revision:
0:aa460a91bd33
Child:
1:9f2d307b3b99
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HealthBar.h	Wed May 03 15:51:20 2017 +0000
@@ -0,0 +1,29 @@
+#ifndef HEALTHBAR_H
+#define HEALTHBAR_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+class HealthBar
+{
+    public:
+    HealthBar();
+    ~HealthBar();
+    void init(int HP);
+    void draw(N5110 &lcd);
+    void update();
+    void MinusHP1(int HPLost1);
+    void MinusHP2(int HPLost2);
+    
+    
+
+    private:
+    int _HP;
+    int _HPLost1;
+    int _HPLost2;
+    int TotalHP;
+    
+
+};
+#endif
\ No newline at end of file