Yudong Xiao / Mbed OS pokemon

Dependencies:   Tone

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Pokemon.h Source File

Pokemon.h

00001 #ifndef POKEMON_H
00002 #define POKEMON_H
00003 
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Utils.h"
00007 
00008 class Pokemon{
00009     public:
00010         void  init(int x, int y, int size, int speed_mon);
00011         void draw(N5110 &lcd);
00012         void update();
00013         void set_velocity(Position2D c);
00014         void set_pos(Position2D p);
00015         Position2D get_pos();
00016         Position2D get_velocity();
00017         int get_size();
00018         void pokemon_caught();
00019     
00020     private:
00021         Position2D _velocity;
00022         int _x, _y, _size;
00023 };
00024 #endif