Represents a game environment map composed of chunks. More...
#include <maps.h>
Public Attributes | |
| EnvironmentChunk | chunks [MAP_SIZE_CHUNK][MAP_SIZE_CHUNK] |
| 2D array of environment chunks that make up the map | |
| EnvironmentChunk * | startChunk |
| Pointer to the starting chunk of the map. | |
| EnvironmentChunk * | endChunk |
| Pointer to the ending chunk of the map. | |
| Vec2 | mainPath [MAP_SIZE_CHUNK *MAP_SIZE_CHUNK] |
| Array of positions representing the main path through the map. | |
| Vec2 | alternatePath [MAP_SIZE_CHUNK *MAP_SIZE_CHUNK] |
| Array of positions representing the alternate path through the map. | |
| int | alternatePathLength |
| The number of positions in the main path. | |
| int | mainPathLength |
| The number of positions in the main path. | |
Represents a game environment map composed of chunks.
The map is organized as a grid of environment chunks with defined start and end points, and contains a main path through the map.
| Vec2 EnvironmentMap::alternatePath[MAP_SIZE_CHUNK *MAP_SIZE_CHUNK] |
Array of positions representing the alternate path through the map.
| int EnvironmentMap::alternatePathLength |
The number of positions in the main path.
| EnvironmentChunk EnvironmentMap::chunks[MAP_SIZE_CHUNK][MAP_SIZE_CHUNK] |
2D array of environment chunks that make up the map
| EnvironmentChunk* EnvironmentMap::endChunk |
Pointer to the ending chunk of the map.
| Vec2 EnvironmentMap::mainPath[MAP_SIZE_CHUNK *MAP_SIZE_CHUNK] |
Array of positions representing the main path through the map.
| int EnvironmentMap::mainPathLength |
The number of positions in the main path.
| EnvironmentChunk* EnvironmentMap::startChunk |
Pointer to the starting chunk of the map.