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
Eng.h
- Committer:
- el18jgb
- Date:
- 2020-05-17
- Revision:
- 8:0b9a824c75fe
- Parent:
- 7:04a7826ff7e4
- Child:
- 9:2836fc3d9ede
File content as of revision 8:0b9a824c75fe:
#ifndef ENG_H #define ENG_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Aim.h" #include "Heston.h" #include "Pup.h" // gap from edge of screen #define GAP 2 class Eng { public: Eng(); ~Eng(); void init(); void read_input(Gamepad &pad); void update(Gamepad &pad, int fire, N5110 &lcd); void draw(N5110 &lcd); void powerup(N5110 &lcd, Gamepad &pad); void print_score(N5110 &lcd); void tik(); private: void check_hit(Gamepad &pad); //void check_miss(Gamepad &pad); //void print_scores(N5110 &lcd); Heston _h1; //Heston _h2; //Heston _h3; int _hest_width; int _hest_height; //int _ball_size; //int _speed; // positions int _h1x; //int _h2x; //int _h3x; //int _h2y; int _h1y; //int _h3y; Aim _aim; Pup _pup; int pupon; Direction _d; float _mag; int _tok; bool flag; }; #endif