Micropolis
map_type.h File Reference

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
 

Detailed Description

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.

Variable Documentation

◆ WORLD_H

◆ WORLD_W