diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-05 02:38:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-05 03:16:32 +0300 |
commit | 31782ba3cdeced9baa91739c55e9ae819d70d616 (patch) | |
tree | 8de190fa01b37a960dd392fb6d3d159249bb1603 /src/being/actor.h | |
parent | 097ef639a433f5d87d675ee7551a1640788031bd (diff) | |
download | mv-31782ba3cdeced9baa91739c55e9ae819d70d616.tar.gz mv-31782ba3cdeced9baa91739c55e9ae819d70d616.tar.bz2 mv-31782ba3cdeced9baa91739c55e9ae819d70d616.tar.xz mv-31782ba3cdeced9baa91739c55e9ae819d70d616.zip |
Add pixel position into actor.
Diffstat (limited to 'src/being/actor.h')
-rw-r--r-- | src/being/actor.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being/actor.h b/src/being/actor.h index 0b83e46be..72a9810ee 100644 --- a/src/being/actor.h +++ b/src/being/actor.h @@ -76,8 +76,7 @@ class Actor notfinal /** * Sets the pixel position of this actor. */ - virtual void setPixelPositionF(const Vector &restrict pos) restrict2 - { mPos = pos; } + virtual void setPixelPositionF(const Vector &restrict pos) restrict2; /** * Returns the pixels X coordinate of the actor. @@ -128,6 +127,9 @@ class Actor notfinal const Map* getMap() const A_WARN_UNUSED { return mMap; } + int mPixelX; + int mPixelY; + protected: Actor(); |