Mini projet LOO
Dependencies: mbed APDS_9960 mbed-rtos
Home du projet
Diff: src/cForme.cpp
- Revision:
- 0:b2acac6abf2b
- Child:
- 1:ab5f440f4156
diff -r 000000000000 -r b2acac6abf2b src/cForme.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cForme.cpp Fri Mar 25 08:21:57 2016 +0000 @@ -0,0 +1,54 @@ +#include "cForme.h" + +// Définition de la classe mère Forme + +// CONSTRUCTEURS +cForme::cForme() +{ + _orientation = 0; + _positionX = 0; + _positionY = 0; +} + +cForme::cForme(unsigned char o, unsigned char x, unsigned char y) +{ + _orientation = o; + _positionX = x; + _positionY = y; +} + +// GETTERS +unsigned char cForme::getOrientation() +{ + return _orientation; +} + +unsigned char cForme::getPositionX() +{ + return _positionX; +} +unsigned char cForme::getPositionY() +{ + return _positionY; +} + +// SETTERS +void cForme::setOrientation(unsigned char orientation) +{ + _orientation = orientation; +} + +void cForme::setPositionX(unsigned char x) +{ + _positionX = x; +} + +void cForme::setPositionY(unsigned char y) +{ + _positionY = y; +} + +void cForme::afficherForme() +{ + // +};