refactor: remove UIEntity collision_pos field

- Remove redundant collision_pos field from UIEntity
- Update position getters/setters to use integer-cast position when needed
- Remove all collision_pos synchronization code
- Simplify entity position handling to use single float position field
- Add comprehensive test coverage proving functionality is preserved

This removes technical debt and simplifies the codebase without changing API behavior.
This commit is contained in:
John McCardle 2025-07-07 17:27:40 -04:00
commit 419f7d716a
2 changed files with 8 additions and 9 deletions

View file

@ -40,7 +40,6 @@ public:
std::vector<UIGridPointState> gridstate;
UISprite sprite;
sf::Vector2f position; //(x,y) in grid coordinates; float for animation
sf::Vector2i collision_pos; //(x, y) in grid coordinates: int for collision
//void render(sf::Vector2f); //override final;
UIEntity();