copy
Dependencies: Gamepad N5110 mbed
Diff: Background/Background.h
- Revision:
- 0:ffd6b3f45a8c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Background/Background.h Wed May 03 22:37:17 2017 +0000 @@ -0,0 +1,33 @@ +#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 \ No newline at end of file