First implementation of rules

TODO :
 - Fix target as getter (currently broken because of inheritance by rules)
 - Smart pointers for entity store ?
This commit is contained in:
Teo-CD 2019-06-09 23:26:46 +02:00
parent febe0827ad
commit 08e922b0d4
12 changed files with 257 additions and 20 deletions

View file

@ -33,6 +33,9 @@ Entity::Entity(const pugi::xml_node& entityNode, sf::Texture* texture)
entityNode.attribute("w").as_int(1),
entityNode.attribute("h").as_int(1)) {}
Entity::Entity() : Entity(0,0,EntityType::Citizen,nullptr,0,0)
{}
void Entity::move(Orientation orientation)
{
// TODO : Add speed ?