summaryrefslogtreecommitdiff
path: root/src/sprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-25 18:35:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-25 18:35:21 +0300
commit71f88c02f79a1164430eec1de3e15edec011a15e (patch)
tree6a0772ee943a41314b5abd92fed0ce269faced27 /src/sprite.h
parent6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (diff)
downloadManaVerse-71f88c02f79a1164430eec1de3e15edec011a15e.tar.gz
ManaVerse-71f88c02f79a1164430eec1de3e15edec011a15e.tar.bz2
ManaVerse-71f88c02f79a1164430eec1de3e15edec011a15e.tar.xz
ManaVerse-71f88c02f79a1164430eec1de3e15edec011a15e.zip
improve construcors in abstract classes.
Also add some missing final to classes.
Diffstat (limited to 'src/sprite.h')
-rw-r--r--src/sprite.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sprite.h b/src/sprite.h
index 8fb78b248..3ec3fe00d 100644
--- a/src/sprite.h
+++ b/src/sprite.h
@@ -32,11 +32,6 @@ class Image;
class Sprite
{
public:
- Sprite() :
- mAlpha()
- {
- }
-
virtual ~Sprite()
{ }
@@ -122,6 +117,11 @@ class Sprite
virtual bool updateNumber(const unsigned num) = 0;
protected:
+ Sprite() :
+ mAlpha()
+ {
+ }
+
float mAlpha; /**< The alpha opacity used to draw */
};