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
Spikes/Spikes.h
- Committer:
- el18jgb
- Date:
- 2020-05-20
- Revision:
- 18:c600a6545e81
- Parent:
- 17:18ae81180853
- Child:
- 19:33c77517cb88
File content as of revision 18:c600a6545e81:
#ifndef SPIKES_H
#define SPIKES_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Aim.h"
#include "Heston.h"
/** spikes Class
@date april 2020
*/
class Spikes
{
public:
Spikes();
~Spikes();
void init();
void draw(N5110 &lcd);
void draw2(N5110 &lcd);
void draw3(N5110 &lcd);
void updatey();
void updatex();
void updatexn();
void position(int x);
Vector2D get_pos();
void hit(Gamepad &pad);
private:
int _height;
int _width;
int _x;
int _y;
int _speed;
};
#endif