#include "Irr2DObj.h" using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui; Irr2DObj::Irr2DObj() { this->pos.X = 0; this->pos.Y = 0; } Irr2DObj::Irr2DObj(f32 x, f32 y) { this->pos.X = x; this->pos.Y = y; } int Irr2DObj::getObjectID() { return this->objectID; } void Irr2DObj::setObjectID(int oid) { this->objectID = oid; } f32 Irr2DObj::getX() { return this->pos.X; } f32 Irr2DObj::getY() { return this->pos.Y; } vector2d Irr2DObj::getPosition() { return this->pos; } void Irr2DObj::setX(f32 x) { this->pos.X = x; } void Irr2DObj::setY(f32 y) { this->pos.Y = y; } void Irr2DObj::setPosition(vector2d pos) { this->pos = pos; } f32 Irr2DObj::getWidth() { return this->width; } f32 Irr2DObj::getHeight() { return this->height; } void Irr2DObj::setWidth(f32 width) { this->width = width; } void Irr2DObj::setHeight(f32 height) { this->height = height; }