All there but errors need fixing

Dependencies:   mbed

Revision:
3:522c6f850e91
Child:
4:7ddd287a5d28
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TetrisGame/TetrisGame.h	Sun May 24 11:18:33 2020 +0000
@@ -0,0 +1,45 @@
+#ifndef TETRISGAME_H
+#define TETRISGAME_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Tetromino.h"
+
+#define GAP 0
+
+class TetrisGame 
+{
+    
+    public:
+    TetrisGame();
+    ~TetrisGame();
+    
+    void init(int tetromino_width, int tetromino_height, int tetromino_size, int speed);
+    void read_input(Gamepad &pad);
+    void update(Gamepad &pad);
+    void draw(N5110 &lcd);
+    
+    private:
+    
+    void check_wall_collision(Gamepad &pad);
+    void check_tetromino_collision(Gamepad &pad);
+    void check_goal(Gamepad &pad);
+    
+    Tetromino _p1;
+    
+    int _tetromino_width;
+    int _tetromino_height;
+    int _tetromino_size;
+    int _speed;
+    
+    int _p1x;
+    
+    Tetromino _tetromino;
+    
+    Direction _d;
+    float _mag;
+    
+};
+
+#endif
\ No newline at end of file