deemo1

Dependencies:   mbed

Acid/Acid.h

Committer:
haoyan
Date:
2020-05-14
Revision:
5:32dbfaf578dd
Parent:
4:9fa0c5edd1a1

File content as of revision 5:32dbfaf578dd:

#ifndef ACID_H
#define ACID_H
 
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Boss.h"
/** Acid Class  
* @brief Acid  
* @author Haoyan Zhang  
* @date May, 2020 
*/ 

class Acid
{ 
public:
       
       Acid();
       
       ~Acid();
       
       void init(int height,int width,int speed);
       
       void draw(N5110 &lcd);
       
       void update();
       
       void set_velocity(Vector2D v);
       
       Vector2D get_velocity();
       
       Vector2D get_pos();
       
       void set_pos(Vector2D p);
       
private:
         
        Vector2D _velocity;
        
        Boss _Boss;
        
        int _height;
        
        int _width;
       
        int _x;
        
        int _y;
             
};
#endif