Micropolis
|
Map data structures for the Micropolis game engine. More...
Go to the source code of this file.
Classes | |
class | Map< DATA, BLKSIZE > |
Typedefs | |
typedef Map< Byte, 1 > | MapByte1 |
Map of ::Byte, with cluster size 1. | |
typedef Map< Byte, 2 > | MapByte2 |
Map of ::Byte, with cluster size 2. | |
typedef Map< Byte, 4 > | MapByte4 |
Map of ::Byte, with cluster size 4. | |
typedef Map< short, 8 > | MapShort8 |
Map of ::short, with cluster size 8. | |
Variables | |
static const int | WORLD_W = 120 |
static const int | WORLD_H = 100 |
Map data structures for the Micropolis game engine.
This header file defines the Map template class used for representing various types of 2D grid maps in the Micropolis game engine. It includes definitions for map dimensions and provides specialized map types with different data storage granularities. These map types are crucial for managing different aspects of the game world, like terrain, population density, and resource distribution. The Map class template offers flexibility in defining maps with various data types and block sizes, optimizing memory usage and access patterns for different game scenarios.
Definition in file map_type.h.
|
static |
Size of the world in vertical direction.
Definition at line 95 of file map_type.h.
Referenced by Micropolis::clearMap(), Micropolis::clearUnnatural(), Micropolis::crimeScan(), Micropolis::decTrafficMap(), Micropolis::doAirplaneSprite(), Micropolis::doCopterSprite(), Micropolis::doFreePop(), Micropolis::doNilPower(), Micropolis::doTrees(), Micropolis::fireBomb(), Micropolis::fixZone(), Micropolis::generateMap(), Micropolis::getTileFromMap(), Micropolis::getTrafficAverage(), Micropolis::initMapArrays(), Micropolis::initSprite(), Micropolis::loadFileData(), Micropolis::makeEarthquake(), Micropolis::makeFire(), Micropolis::makeFlood(), Micropolis::makeLakes(), Micropolis::makeMeltdown(), Micropolis::makeMonster(), Micropolis::makeNakedIsland(), Micropolis::makeTornado(), Position::move(), Micropolis::populationDensityScan(), Micropolis::prepareBuildingSite(), Micropolis::saveFile(), Micropolis::setFire(), Micropolis::simHeat(), Micropolis::spriteNotInBounds(), Position::testBounds(), Micropolis::testBounds(), and Map< DATA, BLKSIZE >::worldOnMap().
|
static |
Size of the world in horizontal direction.
Definition at line 90 of file map_type.h.
Referenced by Micropolis::clearMap(), Micropolis::clearUnnatural(), Micropolis::crimeScan(), Micropolis::decTrafficMap(), Micropolis::destroyMapArrays(), Micropolis::doAirplaneSprite(), Micropolis::doNilPower(), Micropolis::doSimInit(), Micropolis::doTrees(), Micropolis::fireBomb(), Micropolis::fixZone(), Micropolis::generateMap(), Micropolis::generateShip(), Micropolis::getTileFromMap(), Micropolis::getTrafficAverage(), Micropolis::init(), Micropolis::initMapArrays(), Micropolis::initSprite(), Micropolis::loadFileData(), Micropolis::makeEarthquake(), Micropolis::makeFire(), Micropolis::makeFlood(), Micropolis::makeLakes(), Micropolis::makeMeltdown(), Micropolis::makeMonster(), Micropolis::makeNakedIsland(), Micropolis::makeTornado(), Position::move(), Micropolis::populationDensityScan(), Micropolis::prepareBuildingSite(), Micropolis::saveFile(), Micropolis::setFire(), Micropolis::simHeat(), Position::testBounds(), and Map< DATA, BLKSIZE >::worldOnMap().