Yudong Xiao / Mbed OS pokemon

Dependencies:   Tone

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Rocket.h Source File

Rocket.h

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