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.
Dependencies: mbed
Pup.h
00001 #ifndef PUP_H 00002 #define PUP_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Gamepad.h" 00007 #include "Aim.h" 00008 #include "Heston.h" 00009 00010 /** Power up class 00011 * @brief clock to slow heston sprite 00012 * @author Joe Body, University of Leeds 00013 * @date May 2020 00014 */ 00015 00016 class Pup 00017 { 00018 00019 public: 00020 00021 /** Constructor */ 00022 Pup(); 00023 00024 /** Destructor */ 00025 ~Pup(); 00026 00027 /** Initalises Pup*/ 00028 void init(); 00029 /** Draws the first type of spike 00030 * @param lcd @details N5110 object 00031 */ 00032 void draw(N5110 &lcd); 00033 00034 /** set initial semi random random position of a clock based on cursor 00035 * @param int x 00036 * @param int y 00037 */ 00038 void position(int x, int y); 00039 00040 /** gets co-ordinates of the sprite 00041 * @ return position vector 00042 */ 00043 Vector2D get_pos(); 00044 00045 /** set co ordinates of sprite 00046 * @param int x 00047 * @param int y 00048 */ 00049 void set_pos(int x, int y); 00050 00051 private: 00052 00053 /**vertical size sprite 00054 * @return _height 00055 */ 00056 int _height; 00057 00058 /**horizontal size sprite 00059 * @return _height 00060 */ 00061 int _width; 00062 00063 /** x position of sprite 00064 * @return _x 00065 */ 00066 int _x; 00067 00068 /** y position of sprite 00069 * @return _y 00070 */ 00071 int _y; 00072 00073 }; 00074 00075 #endif
Generated on Tue Jul 12 2022 18:29:13 by
1.7.2