|
bwmodel
A modeling environment for Minecraft Bedwars
|
#include <map.h>
Public Member Functions | |
| bool | update_region (blocks_t x, blocks_t y, RegionSet regions) |
| RegionSet | regions_at (blocks_t x, blocks_t y) const |
Public Member Functions inherited from bwmodel::GridInterface< RegionSet, blocks_t > | |
| blocks_t | width () const |
| blocks_t | height () const |
Static Public Member Functions | |
| static std::unique_ptr< Map > | load_from (const std::string &path) |
Protected Member Functions | |
| const Grid< RegionSet > & | backing () const override |
Protected Member Functions inherited from bwmodel::GridInterface< RegionSet, blocks_t > | |
| void | assert_grid_invariant () |
Defines the regions in a bedwars map.
|
overrideprotectedvirtual |
Internally retrieves the backing (nested vector) for helper function generation in GridInterface.
Implements bwmodel::GridInterface< RegionSet, blocks_t >.
|
static |
Loads a map from a file, idiomatically with extension .bwmap.
| MapLoadError | on parsing error. |
| RegionSet bwmodel::Map::regions_at | ( | blocks_t | x, |
| blocks_t | y ) const |
Returns the region properties at the given (x, y) coordinates.
RegionSet::INVALID if out of range. | bool bwmodel::Map::update_region | ( | blocks_t | x, |
| blocks_t | y, | ||
| RegionSet | regions ) |
Adds the regions given by regions to the the given (x, y) coordinates.