Haoyan Zhang / Mbed 2 deprecated el17h2z1

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Boss.h Source File

Boss.h

00001 #ifndef BOSS_H
00002 #define BOSS_H
00003  
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Gamepad.h"
00007 #include "Battleship.h"
00008 
00009 /** Boss Class  
00010 * @brief Boss 
00011 * @author Haoyan Zhang  
00012 * @date May, 2020 
00013 */ 
00014 
00015 class Boss
00016 {
00017 public:
00018        
00019        Boss();
00020        ~Boss();
00021        void init(int height, int width, int speed);
00022        void draw(N5110 &lcd);
00023        void update();
00024        void set_velocity(Vector2D v);
00025        Vector2D get_velocity();
00026        Vector2D get_pos();
00027        void set_pos(Vector2D p);
00028        
00029 private:
00030 
00031         Vector2D _velocity;
00032         int _height;
00033         int _width;
00034         int _x;
00035         int _y;
00036 };
00037 #endif
00038 
00039