Yudong Xiao
/
pokemon
This is test version of Pokemongo game. ELEC 2645 final project.
pokeball/Rocket.h
- Committer:
- shalwego
- Date:
- 2021-04-15
- Revision:
- 0:819c2d6a69ac
File content as of revision 0:819c2d6a69ac:
#ifndef ROCKET_H #define ROCKET_H #include "mbed.h" #include "N5110.h" #include "Utils.h" class Rocket{ public: void init(int x, int y, int size, int speed_mon); void draw(N5110 &lcd); void update(Position2D pokeball_pos); void set_velocity(Position2D c); void set_pos(Position2D p); Position2D get_pos(); Position2D get_velocity(); int get_size(); void rocket_crash(); private: Position2D _velocity; int _x, _y, _size; }; #endif