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.
Spikes.h
00001 #ifndef SPIKES_H 00002 #define SPIKES_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Gamepad.h" 00007 #include "Aim.h" 00008 #include "Heston.h" 00009 00010 /** spikes Class 00011 @date april 2020 00012 */ 00013 00014 class Spikes 00015 { 00016 00017 public: 00018 Spikes(); 00019 ~Spikes(); 00020 void init(); 00021 void draw(N5110 &lcd); 00022 void update(); 00023 void position(int x); 00024 Vector2D get_pos(); 00025 void hit(Gamepad &pad); 00026 00027 private: 00028 00029 int _height; 00030 int _width; 00031 int _x; 00032 int _y; 00033 int _speed; 00034 00035 }; 00036 00037 00038 #endif
Generated on Wed Jul 13 2022 05:56:35 by
1.7.2