Started object construction and parsing

Simplified some structures
Missing : Entity construction
This commit is contained in:
trotFunky 2019-06-07 02:59:27 +02:00
parent 3906ecd27b
commit a775d846d7
10 changed files with 146 additions and 5 deletions

View file

@ -3,3 +3,39 @@
//
#include "Entity.h"
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);
}