ELEC2645 (2018/19) / Mbed 2 deprecated ll16o2l_ELEC2645

Dependencies:   mbed Gamepad

Player/Player.h

Committer:
ll16o2l
Date:
2019-04-25
Revision:
3:aa82968b7a8e
Parent:
2:888634fff8ff
Child:
8:c3153fd4d8ce

File content as of revision 3:aa82968b7a8e:

#ifndef PLAYER_H
#define PLAYER_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
/** 
*   @file Player.h
*   @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