deemo1

Dependencies:   mbed

Committer:
haoyan
Date:
Tue May 12 15:54:51 2020 +0000
Revision:
4:9fa0c5edd1a1
Child:
5:32dbfaf578dd
ok

Who changed what in which revision?

UserRevisionLine numberNew contents of line
haoyan 4:9fa0c5edd1a1 1 #ifndef ACID_H
haoyan 4:9fa0c5edd1a1 2 #define ACID_H
haoyan 4:9fa0c5edd1a1 3
haoyan 4:9fa0c5edd1a1 4 #include "mbed.h"
haoyan 4:9fa0c5edd1a1 5 #include "N5110.h"
haoyan 4:9fa0c5edd1a1 6 #include "Gamepad.h"
haoyan 4:9fa0c5edd1a1 7 #include "Boss.h"
haoyan 4:9fa0c5edd1a1 8 /** Acid Class
haoyan 4:9fa0c5edd1a1 9 * @brief Acid
haoyan 4:9fa0c5edd1a1 10 * @author Haoyan Zhang
haoyan 4:9fa0c5edd1a1 11 * @date April, 2020
haoyan 4:9fa0c5edd1a1 12 */
haoyan 4:9fa0c5edd1a1 13
haoyan 4:9fa0c5edd1a1 14 class Acid
haoyan 4:9fa0c5edd1a1 15 {
haoyan 4:9fa0c5edd1a1 16 public:
haoyan 4:9fa0c5edd1a1 17
haoyan 4:9fa0c5edd1a1 18 Acid();
haoyan 4:9fa0c5edd1a1 19
haoyan 4:9fa0c5edd1a1 20 ~Acid();
haoyan 4:9fa0c5edd1a1 21
haoyan 4:9fa0c5edd1a1 22 void init(int height,int width,int speed);
haoyan 4:9fa0c5edd1a1 23
haoyan 4:9fa0c5edd1a1 24 void draw(N5110 &lcd);
haoyan 4:9fa0c5edd1a1 25
haoyan 4:9fa0c5edd1a1 26 void update();
haoyan 4:9fa0c5edd1a1 27
haoyan 4:9fa0c5edd1a1 28 void set_velocity(Vector2D v);
haoyan 4:9fa0c5edd1a1 29
haoyan 4:9fa0c5edd1a1 30 Vector2D get_velocity();
haoyan 4:9fa0c5edd1a1 31
haoyan 4:9fa0c5edd1a1 32 Vector2D get_pos();
haoyan 4:9fa0c5edd1a1 33
haoyan 4:9fa0c5edd1a1 34 void set_pos(Vector2D p);
haoyan 4:9fa0c5edd1a1 35
haoyan 4:9fa0c5edd1a1 36 private:
haoyan 4:9fa0c5edd1a1 37
haoyan 4:9fa0c5edd1a1 38 Vector2D _velocity;
haoyan 4:9fa0c5edd1a1 39
haoyan 4:9fa0c5edd1a1 40 Boss _Boss;
haoyan 4:9fa0c5edd1a1 41
haoyan 4:9fa0c5edd1a1 42 int _height;
haoyan 4:9fa0c5edd1a1 43
haoyan 4:9fa0c5edd1a1 44 int _width;
haoyan 4:9fa0c5edd1a1 45
haoyan 4:9fa0c5edd1a1 46 int _x;
haoyan 4:9fa0c5edd1a1 47
haoyan 4:9fa0c5edd1a1 48 int _y;
haoyan 4:9fa0c5edd1a1 49
haoyan 4:9fa0c5edd1a1 50 };
haoyan 4:9fa0c5edd1a1 51 #endif
haoyan 4:9fa0c5edd1a1 52
haoyan 4:9fa0c5edd1a1 53
haoyan 4:9fa0c5edd1a1 54
haoyan 4:9fa0c5edd1a1 55
haoyan 4:9fa0c5edd1a1 56
haoyan 4:9fa0c5edd1a1 57
haoyan 4:9fa0c5edd1a1 58
haoyan 4:9fa0c5edd1a1 59
haoyan 4:9fa0c5edd1a1 60