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

Dependencies:   Tone

pokeball/Pokemon.h

Committer:
shalwego
Date:
2021-04-15
Revision:
0:819c2d6a69ac

File content as of revision 0:819c2d6a69ac:

#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