![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is test version of Pokemongo game. ELEC 2645 final project.
Diff: pokeball/Pokeball.h
- Revision:
- 0:819c2d6a69ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pokeball/Pokeball.h Thu Apr 15 15:35:12 2021 +0000 @@ -0,0 +1,31 @@ +#ifndef POKEBALL_H +#define POKEBALL_H + +#include "mbed.h" +#include "N5110.h" +#include "Utils.h" + + +/* +initially darw a pokeball on the lcd + + +*/ +class Pokeball +{ + +public: + void init(int x, int y, int radius); + void draw(N5110 &lcd); + void update(UserInput input); + int get_score(); + void update_vol(); + Position2D get_pos(); + int get_radius(); + void pokemon_caught(); + +private: + int _x, _y, _radius, _speed; + Position2D _velocity; +}; +#endif