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
RosenEngine/RosenEngine.h
- Committer:
- ikenna1
- Date:
- 2019-04-10
- Revision:
- 12:47578eb9ea73
- Parent:
- 11:73cd744ffa80
- Child:
- 13:e114d362186d
File content as of revision 12:47578eb9ea73:
#ifndef ROSENENGINE_H #define ROSENENGINE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Ship.h" #include "Weapons.h" #include "Menu.h" class RosenEngine { public: RosenEngine(); ~RosenEngine(); void init(int ship_width,int ship_height,int ship_speed,int ship_xpos,int ship_ypos); void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); void draw_Imperion(N5110 &lcd); void get_pos(); void title(N5110 &lcd); int get_cursor(); void ship_select(N5110 &lcd); int ship_xpos; int ship_ypos; int ship_width; private: void check_ship_projectile_collision(); void check_enemy_ship_collision(); void check_enemy_projectile_collision(); // Variables Ship _ship; Weapons _weapons; Menu _menu; float _xjoystick; float _yjoystick; Direction _d; int _ycursor; }; #endif