obstacles for the map

Revision:
0:0c1bbee29dfe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Wall.cpp	Thu May 04 08:35:52 2017 +0000
@@ -0,0 +1,74 @@
+#include "Wall.h"
+
+// Class constructor 
+Wall::Wall()
+{
+
+}
+
+// Class destructor
+Wall::~Wall()
+{
+
+}
+
+// Initialise the wall object
+void Wall::init(int x,
+                int y,
+                int heigth,
+                int width)
+{
+    _posX = x;
+    _posY = y;
+    _heigth = heigth;
+    _width = width;
+    //pc.printf("a wall has been initialized");
+}
+
+int Wall::getPosX()
+{
+    return _posX;
+}
+
+int Wall::getPosY()
+{
+    return _posY;
+}
+
+int Wall::getHeigth()
+{
+    return _heigth;
+}
+
+int Wall::getWidth()
+{
+    return _width;
+}
+
+int Wall::getScenePosX()
+{
+    return _scenePosX;
+}
+
+int Wall::getScenePosY() 
+{ 
+    return _scenePosY;
+}
+
+void Wall::setScenePosX(int x)
+{
+    _scenePosX = x;
+}
+
+void Wall::setScenePosY(int y)
+{
+    _scenePosY = y;
+}
+
+// Draw a rectangle with the dimentions
+// given by the inetialiser
+void Wall::draw(N5110 &lcd)
+{
+    lcd.drawRect(_scenePosX, _scenePosY, _heigth, _width, FILL_BLACK);
+    //pc.printf("a wall has been drawn");
+}
\ No newline at end of file