HealthBar Library

HealthBar.h

Committer:
ll14c4p
Date:
2017-05-04
Revision:
1:9f2d307b3b99
Parent:
0:aa460a91bd33
Child:
2:8c597d140b1d

File content as of revision 1:9f2d307b3b99:

#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);
    
    
    
    int ZeroHP;
    
    

    private:
    int _HP;
    int _HPLost1;
    int _HPLost2;
    int TotalHP;
    
    

};
#endif