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.
Player/Player.h
- Committer:
- ll16o2l
- Date:
- 2019-04-25
- Revision:
- 8:c3153fd4d8ce
- Parent:
- 3:aa82968b7a8e
- Child:
- 15:807eba7c7811
File content as of revision 8:c3153fd4d8ce:
#ifndef PLAYER_H
#define PLAYER_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
/** Player Class
* @author Oliver Luong, University of Leeds
* @brief Controls the player in the Dodge game
* @date April 2019
*/
class Player
{
public:
Player();
~Player();
void init(int player_height,int player_width);
void draw(N5110 &lcd);
void update(Direction d, float mag);
Vector2D get_pos();
private:
int _player_height;
int _player_width;
int _x;
int _y;
int _speed;
};
#endif