diff --git a/include/game/Mobs.h b/include/game/Mobs.h index 1b007f0..f4d246c 100644 --- a/include/game/Mobs.h +++ b/include/game/Mobs.h @@ -126,6 +126,8 @@ public: void addEffect(EffectType type, float durationSec, const Tower* tower); bool hasEffect(EffectType type); + float getTileX() { return getCenterX() - static_cast(static_cast(getCenterX())); } // returns a float between 0 and 1 excluded + float getTileY() { return getCenterY() - static_cast(static_cast(getCenterY())); } // returns a float between 0 and 1 excluded Direction getDirection() const { return m_Direction; } void setDirection(Direction dir) { m_Direction = dir; }