Joe Body 201215898

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Heston.h Source File

Heston.h

00001 #ifndef HESTON_H
00002 #define HESTON_H
00003 
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Gamepad.h"
00007 
00008 /** Heston Class
00009 @date april 2020
00010 */ 
00011 
00012 class Heston
00013 {
00014 
00015 public:
00016     Heston();
00017     ~Heston();
00018     void init();
00019     void draw(N5110 &lcd);
00020     void update(Gamepad &pad);
00021     /// accessors and mutators
00022     //void set_velocity(Vector2D v);
00023     //int get_velocity();
00024     Vector2D get_pos();
00025     //void set_pos(Vector2D p);
00026     void hit(Gamepad &pad);
00027     void miss(Gamepad &pad);
00028     int checkscore();
00029     int checkstrike();
00030     void set_speed(int state);
00031     
00032 private:
00033 
00034     int _height;
00035     int _width;
00036     int _x;
00037     int _y;
00038     //int d;
00039     //float mag;
00040     int _speed;
00041     int d;
00042     int score;
00043     int strike;
00044 
00045 };
00046 #endif