ELEC2645 (2018/19) / Mbed 2 deprecated 2645_Project_SiutingWong201186503

Dependencies:   mbed

Avenger/Avenger.h

Committer:
davidwst421
Date:
2019-05-09
Revision:
14:13e82f720bea
Parent:
12:660458c41c8e
Child:
15:749c595b19e2

File content as of revision 14:13e82f720bea:

#ifndef AVENGER_H
#define AVENGER_H

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

class Avenger
{
public:

    Avenger();
    ~Avenger();
    void init(int x);
    void draw(N5110 &lcd);
    void update(Direction d,float mag,Vector2D mapped_coord);
    void add_score();
    void lose_score();
    int get_score();
    Vector2D get_pos();

private:
    // the size, the scale of the player, including joystick sensitivity and scoring system
    int _size;
    int _x;
    int _y;
    int _scale;
    int _score;
    int _easter;

};
#endif