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.
Acid.h
00001 #ifndef ACID_H 00002 #define ACID_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Gamepad.h" 00007 #include "Boss.h" 00008 /** Acid Class 00009 * @brief Acid 00010 * @author Haoyan Zhang 00011 * @date May, 2020 00012 */ 00013 00014 class Acid 00015 { 00016 public: 00017 00018 Acid(); 00019 00020 ~Acid(); 00021 00022 void init(int height,int width,int speed); 00023 00024 void draw(N5110 &lcd); 00025 00026 void update(); 00027 00028 void set_velocity(Vector2D v); 00029 00030 Vector2D get_velocity(); 00031 00032 Vector2D get_pos(); 00033 00034 void set_pos(Vector2D p); 00035 00036 private: 00037 00038 Vector2D _velocity; 00039 00040 Boss _Boss; 00041 00042 int _height; 00043 00044 int _width; 00045 00046 int _x; 00047 00048 int _y; 00049 00050 }; 00051 #endif 00052 00053 00054 00055 00056 00057 00058 00059 00060
Generated on Sat Aug 20 2022 05:26:48 by
1.7.2