This page documents the design decisions for the MapType aggregate, which is responsible for
specifying a certain type of map, and creating an instance for it.
Configuration Principle
A map type is defined by its size and description. The grid cells are then further configured by a configuration which consists of the following sequential sections.
- Gravity distribution zones
- The gravity distribution is defined via a sequence of map areas, each having a certain gravity level.
- Those grid cells not covered by this definition have the default gravity value.
- Map structure - void / planet definition
- This section consists of several sequential layers of defining either planets or voids.
- A void is effectively a barrier, while a planet can carry a resource, a space station, or a black hole.
- Each new layer overwrites the ones before, allowing for complex distributions
- e.g. you could define a maze-like structure by first setting the whole map (or a large section of it)
to
void, and then add “pathes” ofplanetson top. - on the other hand, if you want large open space with one or several barriers in it, you start with
a
planet-defining layer, and then add thevoidsas barriers.
- e.g. you could define a maze-like structure by first setting the whole map (or a large section of it)
to
- This section consists of several sequential layers of defining either planets or voids.
- Distributions of resources, space stations, or black holes.
- Distributions consist of an area definition