Yudong Xiao / Mbed OS pokemon

Dependencies:   Tone

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Pokeball.h Source File

Pokeball.h

00001 #ifndef POKEBALL_H
00002 #define POKEBALL_H
00003 
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Utils.h"
00007 
00008 
00009 /*
00010 initially darw a pokeball on the lcd
00011 
00012 
00013 */
00014 class Pokeball
00015 {
00016 
00017 public:
00018     void init(int x, int y, int radius);
00019     void draw(N5110 &lcd);
00020     void update(UserInput input);
00021     int get_score();
00022     void update_vol();
00023     Position2D get_pos();
00024     int get_radius();
00025     void pokemon_caught();
00026 
00027 private: 
00028     int _x, _y, _radius, _speed;
00029     Position2D _velocity;
00030 };
00031 #endif