diff options
Diffstat (limited to 'src/actor.h')
-rw-r--r-- | src/actor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/actor.h b/src/actor.h index 1442d4b3..240b5097 100644 --- a/src/actor.h +++ b/src/actor.h @@ -83,10 +83,16 @@ public: /** * Returns the pixel Y coordinate of the actor. */ - virtual int getPixelY() const + int getPixelY() const { return (int) mPos.y; } /** + * Returns the pixel Y coordinate that the actor should be drawn at. + */ + virtual int getDrawPixelY() const + { return getPixelY(); } + + /** * Returns the x coordinate in tiles of the actor. */ virtual int getTileX() const; |