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.h
- Committer:
- el18jgb
- Date:
- 2020-05-18
- Revision:
- 10:6c574b8524df
- Parent:
- 9:2836fc3d9ede
File content as of revision 10:6c574b8524df:
#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 update();
void position(int x);
Vector2D get_pos();
void hit(Gamepad &pad);
private:
int _height;
int _width;
int _x;
int _y;
int _speed;
};
#endif