Mini projet LOO

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

Home du projet

src/cForme.cpp

Committer:
clementdoreau
Date:
2016-03-25
Revision:
0:b2acac6abf2b
Child:
1:ab5f440f4156

File content as of revision 0:b2acac6abf2b:

#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()
{
    //
};