Haoyan Zhang
/
el17h2z1
deemo1
Laser/Laser.h
- Committer:
- haoyan
- Date:
- 2020-05-14
- Revision:
- 6:b59bc5e15cf3
- Parent:
- 1:8c48fb8ca5e0
File content as of revision 6:b59bc5e15cf3:
#ifndef LASER_H #define LASER_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Battleship.h" /** Laser Class * @brief Laser * @author Haoyan Zhang * @date April, 2020 */ class Laser { public: Laser(); ~Laser(); 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; Battleship _Battleship; int _height; int _width; int _x; int _y; }; #endif