obstacles for the map
Wall.cpp
- Committer:
- el15lm
- Date:
- 2017-05-04
- Revision:
- 1:d55b0553a29a
- Parent:
- 0:0c1bbee29dfe
File content as of revision 1:d55b0553a29a:
#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"); }