ELEC2645 (2018/19) / Mbed 2 deprecated el17ttds

Dependencies:   mbed N5110_tf

Revision:
4:3446009e2f38
Parent:
3:3d35ab70b565
Child:
6:e8c03f264ffc
--- a/Map/Map.h	Mon May 06 19:50:27 2019 +0000
+++ b/Map/Map.h	Tue May 07 19:25:20 2019 +0000
@@ -5,19 +5,24 @@
 class Map {
 
 public:
-    Map();
-    void init(int width, int height, int swidth, int sheight);
-    void write(int pix_x, int pix_y);
-    void draw(N5110 &lcd);
+  Map();
+  void init(int width, int height, int swidth, int sheight);
+  void write(int x1, int y1);
+  void draw(N5110 &lcd);
 private:
-    int _w;
-    int _h;
-    int _x1;
-    int _x2;
-    int _y1;
-    int _y2;
-    int _swidth;
-    int _sheight;
-    int _x1_pos;
-    int _y1_pos;
-};
\ No newline at end of file
+  void map_parameters();
+  void horizontal();
+  void veritical();
+  int _w; // changing dimensions of top and left sides of map
+  int _h;
+  int _x1; // origin locations of map corners
+  int _y1;
+  int _x2;
+  int _y2;
+  int _swidth; // dimensions of screen
+  int _sheight;
+  int _width; // dimensions of avaliable space in game
+  int _height;
+  int _x1_pos;
+  int _y1_pos;
+};