200943373MAZE

Dependencies:   mbed

Fork of 200943373MAZE by hongyun AHN

Revision:
0:df4347043adf
Child:
1:bd92ef8d00ac
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Background/Background.h	Thu May 04 11:25:43 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