Fixed x,y in Entity constructor not being pro_maat::GridUnit
This commit is contained in:
parent
4ed9180694
commit
febe0827ad
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue