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.
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
Generated on Wed Jul 13 2022 12:24:57 by
1.7.2