From 3383e8be9001826bf0d09f1fb73ad5013cc8627e Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 24 Nov 2010 19:57:03 +0000 Subject: Initial commit --- Sprite.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Sprite.cpp (limited to 'Sprite.cpp') diff --git a/Sprite.cpp b/Sprite.cpp new file mode 100644 index 0000000..b8a8e72 --- /dev/null +++ b/Sprite.cpp @@ -0,0 +1,31 @@ +#include +#include "Sprite.h" + +Sprite::Sprite() { + std::cout << "Sprite::Sprite(): Sprite created.\n"; + isVisible = true; +} + +int Sprite::getX() { + return x; +} + +int Sprite::getY() { + return y; +} + +void Sprite::setX(int x) { + this->x = x; +} + +void Sprite::setY(int y) { + this->y = y; +} + +bool Sprite::visible() { + return isVisible; +} + +bool Sprite::loadImage(std::string path) { + std::cout << "Sprite::loadImage(): Loading sprite " << path << ".\n"; +} -- cgit v1.2.3