Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Sat Aug 20 2022 05:26:48 by
1.7.2