Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Wed Jul 13 2022 12:24:57 by
1.7.2