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

Dependencies:   Tone

pokeball/Pokeball.h

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

File content as of revision 0:819c2d6a69ac:

#ifndef POKEBALL_H
#define POKEBALL_H

#include "mbed.h"
#include "N5110.h"
#include "Utils.h"


/*
initially darw a pokeball on the lcd


*/
class Pokeball
{

public:
    void init(int x, int y, int radius);
    void draw(N5110 &lcd);
    void update(UserInput input);
    int get_score();
    void update_vol();
    Position2D get_pos();
    int get_radius();
    void pokemon_caught();

private: 
    int _x, _y, _radius, _speed;
    Position2D _velocity;
};
#endif