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 POKEMON_H
shalwego 0:819c2d6a69ac 2 #define POKEMON_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 class Pokemon{
shalwego 0:819c2d6a69ac 9 public:
shalwego 0:819c2d6a69ac 10 void init(int x, int y, int size, int speed_mon);
shalwego 0:819c2d6a69ac 11 void draw(N5110 &lcd);
shalwego 0:819c2d6a69ac 12 void update();
shalwego 0:819c2d6a69ac 13 void set_velocity(Position2D c);
shalwego 0:819c2d6a69ac 14 void set_pos(Position2D p);
shalwego 0:819c2d6a69ac 15 Position2D get_pos();
shalwego 0:819c2d6a69ac 16 Position2D get_velocity();
shalwego 0:819c2d6a69ac 17 int get_size();
shalwego 0:819c2d6a69ac 18 void pokemon_caught();
shalwego 0:819c2d6a69ac 19
shalwego 0:819c2d6a69ac 20 private:
shalwego 0:819c2d6a69ac 21 Position2D _velocity;
shalwego 0:819c2d6a69ac 22 int _x, _y, _size;
shalwego 0:819c2d6a69ac 23 };
shalwego 0:819c2d6a69ac 24 #endif