diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-24 19:57:03 +0000 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-24 19:57:03 +0000 |
commit | 3383e8be9001826bf0d09f1fb73ad5013cc8627e (patch) | |
tree | 27be0f78ab8672a7187d517c73b4ee22817369cc /Sprite.cpp |
Initial commit
Diffstat (limited to 'Sprite.cpp')
-rw-r--r-- | Sprite.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
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 <iostream> +#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"; +} |