ELEC2645 (2019/20)
/
ELEC2645_Project_el18jb
test 1 doc
Platform/Platform.cpp
- Committer:
- joebarhouch
- Date:
- 2020-05-26
- Revision:
- 7:530ca713d2b2
- Parent:
- 6:00d20886e4f8
File content as of revision 7:530ca713d2b2:
#include "Platform.h" Platform::Platform(int x, int y, int w, int h) { _x = x; _y = y; _width = w; _height = h; } Platform::~Platform() { } ////////////////////// DRAW ////////////////////////// void Platform::draw(N5110 &lcd) { lcd.drawRect(_x, _y, _width, _height, FILL_TRANSPARENT); //debug prints //printf("x: %i, y: %i, width: %i, height %i \n", x, y, width, height); } ////////////////////// POSTITIONS ////////////////////////// Vector4 Platform::get_pos() { Vector4 pos = {_x, _y, _width, _height}; return pos; }