This is test version of Pokemongo game. ELEC 2645 final project.

Dependencies:   Tone

Committer:
shalwego
Date:
Thu Apr 15 15:35:12 2021 +0000
Revision:
0:819c2d6a69ac
Issue about music playing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shalwego 0:819c2d6a69ac 1 #ifndef ROCKET_H
shalwego 0:819c2d6a69ac 2 #define ROCKET_H
shalwego 0:819c2d6a69ac 3
shalwego 0:819c2d6a69ac 4 #include "mbed.h"
shalwego 0:819c2d6a69ac 5 #include "N5110.h"
shalwego 0:819c2d6a69ac 6 #include "Utils.h"
shalwego 0:819c2d6a69ac 7
shalwego 0:819c2d6a69ac 8
shalwego 0:819c2d6a69ac 9 class Rocket{
shalwego 0:819c2d6a69ac 10 public:
shalwego 0:819c2d6a69ac 11 void init(int x, int y, int size, int speed_mon);
shalwego 0:819c2d6a69ac 12 void draw(N5110 &lcd);
shalwego 0:819c2d6a69ac 13 void update(Position2D pokeball_pos);
shalwego 0:819c2d6a69ac 14 void set_velocity(Position2D c);
shalwego 0:819c2d6a69ac 15 void set_pos(Position2D p);
shalwego 0:819c2d6a69ac 16 Position2D get_pos();
shalwego 0:819c2d6a69ac 17 Position2D get_velocity();
shalwego 0:819c2d6a69ac 18 int get_size();
shalwego 0:819c2d6a69ac 19 void rocket_crash();
shalwego 0:819c2d6a69ac 20
shalwego 0:819c2d6a69ac 21 private:
shalwego 0:819c2d6a69ac 22 Position2D _velocity;
shalwego 0:819c2d6a69ac 23 int _x, _y, _size;
shalwego 0:819c2d6a69ac 24 };
shalwego 0:819c2d6a69ac 25 #endif