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.
Pokeball.h
00001 #ifndef POKEBALL_H 00002 #define POKEBALL_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Utils.h" 00007 00008 00009 /* 00010 initially darw a pokeball on the lcd 00011 00012 00013 */ 00014 class Pokeball 00015 { 00016 00017 public: 00018 void init(int x, int y, int radius); 00019 void draw(N5110 &lcd); 00020 void update(UserInput input); 00021 int get_score(); 00022 void update_vol(); 00023 Position2D get_pos(); 00024 int get_radius(); 00025 void pokemon_caught(); 00026 00027 private: 00028 int _x, _y, _radius, _speed; 00029 Position2D _velocity; 00030 }; 00031 #endif
Generated on Wed Jul 13 2022 12:24:57 by
1.7.2