Started object construction and parsing
Simplified some structures Missing : Entity construction
This commit is contained in:
parent
3906ecd27b
commit
a775d846d7
10 changed files with 146 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue