HealthBar Library
HealthBar.h
- Committer:
- ll14c4p
- Date:
- 2017-05-03
- Revision:
- 0:aa460a91bd33
- Child:
- 1:9f2d307b3b99
File content as of revision 0:aa460a91bd33:
#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