200943373MAZE

Dependencies:   mbed

Fork of 200943373MAZE by hongyun AHN

Background/Background.h

Committer:
hongyunAHN
Date:
2017-05-04
Revision:
0:df4347043adf
Child:
1:bd92ef8d00ac

File content as of revision 0:df4347043adf:

#ifndef BACKGROUND_H
#define BACKGROUND_H

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

class Background
{

public:
    Background();
    ~Background();

    void init( );
    void read_input(Gamepad &pad);
    void update(Gamepad &pad,N5110 &lcd);
    void draw(N5110 &lcd);
    
private:

    void check_goal(Gamepad &pad,N5110 &lcd);
    void print_scores(N5110 &lcd);
    
    Player _player;

    Direction _d;
    float _mag;

};

#endif