Added first UI elements
Rules can be created from the UI Game can be stopped/started from the UI Current level can be reset (Load from file again) Added "Game" target and main file TODO (A lot): - Unit tests - Fully functionnal UI - Win conditions - Level background - Level switching/progression - Interesting and varied rules - Multi-scale pathfinding - etc
This commit is contained in:
parent
8199b7d036
commit
60770b5395
16 changed files with 260 additions and 29 deletions
|
@ -6,10 +6,14 @@
|
|||
|
||||
const std::map<std::string,EntityType> Entity::entityTypeLookup = {
|
||||
{"Citizen",EntityType::Citizen},
|
||||
{"Significant",EntityType::Significant},
|
||||
{"Noble",EntityType::Noble},
|
||||
{"House",EntityType::House},
|
||||
{"Car",EntityType::Car}};
|
||||
|
||||
const std::map<std::string,State> Entity::stateLookup = {
|
||||
{"Seek",State::Moving},
|
||||
{"Flee",State::Fleeing}};
|
||||
|
||||
Entity::Entity(pro_maat::GridUnit x, pro_maat::GridUnit y, EntityType type, sf::Texture* texture, int width, int height) : type(type)
|
||||
{
|
||||
shape = sf::RectangleShape(sf::Vector2f(width*pro_maat::pixelsPerUnit,height*pro_maat::pixelsPerUnit));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue