Yudong Xiao
/
pokemon
This is test version of Pokemongo game. ELEC 2645 final project.
Diff: pokeball/Pokemon.h
- Revision:
- 0:819c2d6a69ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pokeball/Pokemon.h Thu Apr 15 15:35:12 2021 +0000 @@ -0,0 +1,24 @@ +#ifndef POKEMON_H +#define POKEMON_H + +#include "mbed.h" +#include "N5110.h" +#include "Utils.h" + +class Pokemon{ + public: + void init(int x, int y, int size, int speed_mon); + void draw(N5110 &lcd); + void update(); + void set_velocity(Position2D c); + void set_pos(Position2D p); + Position2D get_pos(); + Position2D get_velocity(); + int get_size(); + void pokemon_caught(); + + private: + Position2D _velocity; + int _x, _y, _size; +}; +#endif \ No newline at end of file