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
Rocket/Rocket.h
- Committer:
- RehamFaqehi
- Date:
- 2018-05-04
- Revision:
- 12:4d7f1349d796
- Parent:
- 7:06c86ec1f19d
- Child:
- 15:658f1216ee84
File content as of revision 12:4d7f1349d796:
#ifndef ROCKET_H
#define ROCKET_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
class Rocket
{
public:
Rocket();
~Rocket();
void init();
void draw(N5110 &lcd);
void update(Direction d,float mag);
Vector2D get_pos();
void add_collisions();
int get_collisions();
void drawFullHearts(N5110 &lcd);
void drawTwoHearts(N5110 &lcd);
void drawOneHeart(N5110 &lcd);
private:
int _x;
int _y;
int _speed;
Vector2D p;
int _collision;
};
#endif