Fixed x,y in Entity constructor not being pro_maat::GridUnit

This commit is contained in:
Teo-CD 2019-06-09 15:56:54 +02:00
parent 4ed9180694
commit febe0827ad
2 changed files with 3 additions and 2 deletions

View file

@ -42,7 +42,8 @@ class Entity
{
public:
/// x,y, width and height are in grid coordinates
Entity(int x, int y, EntityType type, sf::Texture* texture, int width = 1, int height = 1);
Entity(pro_maat::GridUnit x, pro_maat::GridUnit y, EntityType type, sf::Texture* texture, int width = 1,
int height = 1);
explicit Entity(const pugi::xml_node& entityNode, sf::Texture* texture);
void move(Orientation orientation);