A game for Lab 4 of ECE 4180

Dependencies:   4DGL-uLCD-SE LSM9DS1_Library SDFileSystem mbed-rtos mbed wave_player

Player.h

Committer:
Dogstopper
Date:
2016-03-12
Revision:
3:27889fffc2f7
Parent:
0:6a49493943be

File content as of revision 3:27889fffc2f7:

#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