Joe Body 201215898
Embed:
(wiki syntax)
Show/hide line numbers
Eng.h
00001 #ifndef ENG_H 00002 #define ENG_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Gamepad.h" 00007 #include "Aim.h" 00008 #include "Heston.h" 00009 #include "Pup.h" 00010 #include "Spikes.h" 00011 00012 // gap from edge of screen 00013 #define GAP 2 00014 00015 class Eng 00016 { 00017 00018 public: 00019 Eng(); 00020 ~Eng(); 00021 00022 void init(); 00023 void read_input(Gamepad &pad); 00024 void update(Gamepad &pad, int fire, N5110 &lcd); 00025 void draw(N5110 &lcd); 00026 00027 void powerup(N5110 &lcd, Gamepad &pad); 00028 void print_score(N5110 &lcd); 00029 void print_strike(N5110 &lcd); 00030 00031 void check_s_hit(Gamepad &pad); 00032 00033 void tik(); 00034 00035 private: 00036 00037 void check_hit(Gamepad &pad, N5110 &lcd); 00038 //void check_miss(Gamepad &pad); 00039 //void print_scores(N5110 &lcd); 00040 00041 Heston _h1; 00042 //Heston _h2; 00043 //Heston _h3; 00044 00045 int _hest_width; 00046 int _hest_height; 00047 //int _ball_size; 00048 //int _speed; 00049 00050 // positions 00051 int _h1x; 00052 //int _h2x; 00053 //int _h3x; 00054 //int _h2y; 00055 int _h1y; 00056 //int _h3y; 00057 00058 Aim _aim; 00059 00060 Pup _pup; 00061 00062 int pupon; 00063 00064 Direction _d; 00065 float _mag; 00066 00067 int _tok; 00068 00069 bool flag; 00070 bool spike_f; 00071 00072 Spikes _s1; 00073 Spikes _s2; 00074 00075 }; 00076 00077 #endif
Generated on Wed Jul 13 2022 05:56:35 by
1.7.2