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
Rock/Rock.h
- Committer:
- josh_ohara
- Date:
- 2020-04-06
- Revision:
- 15:dde4ce4bf7fe
- Child:
- 31:27c938ec2a11
File content as of revision 15:dde4ce4bf7fe:
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
class Rock
{
public:
void init(int x, int y, int size);
void render(N5110 &lcd);
Vector2D get_position();
void set_life(bool x);
bool get_life();
private:
int X;
int Y;
bool Alive;
int Size;
};