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: 4DGL-uLCD-SE LSM9DS1_Library SDFileSystem mbed-rtos mbed wave_player
Player.h
- Committer:
- Dogstopper
- Date:
- 2016-03-14
- Revision:
- 5:68f6014f10bd
- Parent:
- 3:27889fffc2f7
File content as of revision 5:68f6014f10bd:
#ifndef _Human_H_
#define _Human_H_
#include "rtos.h"
#include "uLCD_4DGL.h"
#include "InputHandler.h"
class Player {
public:
Player(uLCD_4DGL* screen, InputHandler* input, int startX, int startY);
// Game function
void update(int windowWidth, int windowHeight);
void draw();
// Get coordinates
int getX();
int getY();
int getWidth();
int getHeight();
private:
uLCD_4DGL* screen;
Mutex screen_mutex;
InputHandler* inputManager;
int x;
int y;
int lastX;
int lastY;
};
#endif