Johnathan Chin / Mbed 2 deprecated Lab5

Dependencies:   4DGL-uLCD-SE PinDetect mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ScreenObject.cpp Source File

ScreenObject.cpp

00001 #include "ScreenObject.h"
00002 
00003 int ScreenObject::getX() const {
00004     return xPos;
00005 }
00006 
00007 int ScreenObject::getY() const {
00008     return yPos;   
00009 }
00010 
00011 int ScreenObject::getHeight() const {
00012     return height;
00013 }
00014 
00015 int ScreenObject::getWidth() const {
00016     return width;
00017 }
00018 
00019 int* ScreenObject::getSprite() const {
00020     return sprite;
00021 }
00022 
00023 bool ScreenObject::getDestroyed() const {
00024     return destroyed;
00025 }
00026 
00027 void ScreenObject::setX(int xPos) {
00028     this->xPos = xPos;
00029 }
00030 
00031 void ScreenObject::setY(int yPos) {
00032     this->yPos = yPos;   
00033 }
00034 
00035 void ScreenObject::setHeight(int height) {
00036     this->height = height;
00037 }
00038 
00039 void ScreenObject::setWidth(int width) {
00040     this->width = width;
00041 }
00042 
00043 void ScreenObject::setSprite(int * sprite) {
00044     this->sprite = sprite;
00045 }
00046 
00047 void ScreenObject::setDestroyed(bool destroyed) {
00048     this->destroyed = destroyed;
00049 }