BROKEN: Big refactoring happening, so it compiles but game does not run and the tests fail.
This commit is contained in:
parent
96efc990c1
commit
9e91c71125
25 changed files with 128 additions and 526 deletions
|
@ -7,8 +7,12 @@
|
|||
class WorldBuilder {
|
||||
public:
|
||||
Map& $map;
|
||||
DinkyECS::ComponentMap& $components;
|
||||
|
||||
WorldBuilder(Map &map) : $map(map) { }
|
||||
WorldBuilder(Map &map, DinkyECS::ComponentMap& components) :
|
||||
$map(map),
|
||||
$components(components)
|
||||
{ }
|
||||
|
||||
void partition_map(Room &cur, int depth);
|
||||
void make_room(size_t origin_y, size_t origin_x, size_t width, size_t height);
|
||||
|
@ -20,8 +24,11 @@ class WorldBuilder {
|
|||
void stylize_room(int room, string tile_name, float size);
|
||||
void generate_rooms();
|
||||
void generate_map();
|
||||
|
||||
DinkyECS::Entity configure_entity_in_map(DinkyECS::World &world, nlohmann::json &entity_data, int in_room);
|
||||
void place_entities(DinkyECS::World &world);
|
||||
void generate(DinkyECS::World &world);
|
||||
void random_entity(DinkyECS::World &world, components::GameConfig &config);
|
||||
void randomize_entities(DinkyECS::World &world, components::GameConfig &config);
|
||||
void place_stairs(DinkyECS::World& world, components::GameConfig& config);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue