]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Entity.h
moved map data to maps.l2s
[l2e.git] / src / map / Entity.h
index fc1dc812194d5332e415e37501a35b90bc690301..cc30c9518288e3886a6711a937a9d4b22133cddf 100644 (file)
@@ -48,6 +48,8 @@ public:
        geometry::Vector<int> &SpriteOffset() { return spriteOffset; }
        const geometry::Vector<int> &SpriteOffset() const { return spriteOffset; }
 
+       void ResetPosition(const geometry::Vector<int> &tileSize) { position = tilePosition * tileSize; }
+
        void SetAnimation(const graphics::Animation *a);
        void StartAnimation(app::Application &ctrl);
        void StartAnimation(app::State &ctrl);
@@ -104,6 +106,7 @@ private:
        int numMonsters;
        graphics::AnimationRunner runner;
        geometry::Vector<int> spriteOffset;
+       geometry::Vector<int> tilePosition;
        geometry::Vector<float> position;
        geometry::Vector<float> velocity;
        Orientation orientation;