test 1 doc

Dependencies:   mbed Gamepad2

Player/Player.h

Committer:
joebarhouch
Date:
2020-05-27
Revision:
9:9830d3a78572
Parent:
8:d19b30a6cd69
Child:
11:b3024ab59fa5

File content as of revision 9:9830d3a78572:

#ifndef PLAYER_H
#define PLAYER_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Bitmap.h"




class Player
{
public:
    Player();
    ~Player();
    
    void init(int x, int y);
    //bool health;

    //bool is_jumping();
    void draw(N5110 &lcd);
    bool floorCollide();
    void update(Direction d, float mag, int Ypos, bool fall, bool jump);
    Vector2D get_pos();

    
private:
    int _vx;
    int _vy;
    int _playerX;
    int _playerY;
    bool _floorCollision;
    char _dir;
    Timer t;
    bool f;
    
};
    
#endif