Stick_Runner

Dependencies:   FXOS8700CQ Gamepad N5110 SDFileSystem mbed

Fork of Stick_Runner by Samrudh Sharma

Character/Character.h

Committer:
el15ss
Date:
2017-04-28
Revision:
0:12cfe63faa6a
Child:
1:db9ff66f67c8

File content as of revision 0:12cfe63faa6a:

#ifndef Character_H
#define Character_H

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

class Character
{
public:

    Character();
    ~Character();
    void init();
    void draw(N5110 &lcd);
    void update(Direction d,float mag);
     void Character_Status(Vector2D p);
     void Character_Score(Vector2D p);
    void add_score();
    int get_score();
    Vector2D get_pos();
    bool get_status();

private:

    int _height;
    int _width;
    int _x;
    int _y;
    int _speed;
    int _score;
    bool _status;
    int counter;

};
#endif