2019-06-06 17:07:24 +02:00
|
|
|
//
|
|
|
|
// Created by trotfunky on 06/06/19.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "Entity.h"
|
2019-06-07 02:59:27 +02:00
|
|
|
|
|
|
|
const std::map<std::string,EntityType> Entity::entityTypeLookup = {
|
|
|
|
{"Citizen",EntityType::Citizen},
|
|
|
|
{"Player",EntityType::Player},
|
|
|
|
{"House",EntityType::House},
|
|
|
|
{"Car",EntityType::Car}};
|
|
|
|
|
|
|
|
Entity::Entity(int x, int y, EntityType type, int width, int height)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Entity::Entity(const pugi::xml_node& entityNode)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void Entity::render(sf::RenderWindow& renderWindow) const
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void Entity::move()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void Entity::update()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const sf::RectangleShape& Entity::getShape() const
|
|
|
|
{
|
|
|
|
return(shape);
|
|
|
|
}
|