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.
Dependencies: mbed
RooneyEngine.h
00001 #ifndef ROONEYENGINE_H 00002 #define ROONEYENGIN_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Gamepad.h" 00007 #include "Rooney.h" 00008 #include "Ball.h" 00009 00010 class RooneyEngine{ 00011 public: 00012 // Constructor and destructor. 00013 /** 00014 * @brief Constructor @details Non user specified. 00015 */ 00016 RooneyEngine(); 00017 /** 00018 * @brief Destructor @details Non user specified. 00019 */ 00020 ~RooneyEngine(); 00021 void init(); 00022 void reset(); 00023 void check_reset(N5110 &lcd, Gamepad &gamepad); 00024 void check_start(N5110 &lcd, Gamepad &gamepad); 00025 void check_collision(Gamepad &gamepad); 00026 void get_score(); 00027 void get_sprite(); 00028 void update_lcd(N5110 &lcd); 00029 void run_engine(N5110 &lcd, Gamepad &gamepad); 00030 bool get_reset_flag(); 00031 bool get_start_flag(); 00032 void get_ronney_x(Gamepad &gamepad); 00033 private: 00034 int _player_x; 00035 int _player_y; 00036 int _x; 00037 int _y; 00038 bool _collision_flag; 00039 bool _start_flag; 00040 bool _reset_flag; 00041 int _speed; 00042 int _player_score; 00043 }; 00044 #endif 00045
Generated on Tue Jul 12 2022 18:57:15 by
1.7.2