feat: add mob coords in tile coords space

This commit is contained in:
2021-11-30 11:23:03 +01:00
parent 55263fa582
commit 2996c88d94

View File

@@ -126,6 +126,8 @@ public:
void addEffect(EffectType type, float durationSec, const Tower* tower);
bool hasEffect(EffectType type);
float getTileX() { return getCenterX() - static_cast<float>(static_cast<std::int32_t>(getCenterX())); } // returns a float between 0 and 1 excluded
float getTileY() { return getCenterY() - static_cast<float>(static_cast<std::int32_t>(getCenterY())); } // returns a float between 0 and 1 excluded
Direction getDirection() const { return m_Direction; }
void setDirection(Direction dir) { m_Direction = dir; }