Manages game world maps composed of environment chunks. More...
Go to the source code of this file.
Classes | |
| struct | EnvironmentMap |
| Represents a game environment map composed of chunks. More... | |
Macros | |
| #define | MAP_SIZE_CHUNK 8 |
| #define | MAP_SIZE_TILE (MAP_SIZE_CHUNK * CHUNK_SIZE_TILE) |
| #define | MAP_LENGTH 7 |
Functions | |
| void | Map_Start () |
| Initialize the map system. | |
| void | Map_Render () |
| Render the current map. | |
| void | Map_Generate () |
| Generate a new map. | |
| void | Map_SetStartChunk (int x, int y) |
| Set the starting chunk of the map. | |
| void | Map_SetEndChunk (int x, int y) |
| Set the ending chunk of the map. | |
| void | Map_CreateMainPath () |
| Create the main path through the map. | |
| RoomHallways | Map_GetChunkHallways (EnvironmentChunk chunk, EnvironmentMap map) |
| Get the hallways configuration for a specific chunk. | |
Variables | |
| EnvironmentMap | testMap |
| Global test map instance. | |
Manages game world maps composed of environment chunks.
| #define MAP_LENGTH 7 |
| #define MAP_SIZE_CHUNK 8 |
| #define MAP_SIZE_TILE (MAP_SIZE_CHUNK * CHUNK_SIZE_TILE) |
| void Map_CreateMainPath | ( | ) |
Create the main path through the map.
Create the main path through the map.
Generates a random path from the start to end chunk
| void Map_Generate | ( | ) |
Generate a new map.
Generate a new map.
Creates a procedurally generated map with rooms, hallways and paths.
| RoomHallways Map_GetChunkHallways | ( | EnvironmentChunk | chunk, |
| EnvironmentMap | map | ||
| ) |
Get the hallways configuration for a specific chunk.
| chunk | The chunk to get hallways for |
| map | The map containing the chunk |
Get the hallways configuration for a specific chunk.
| chunk | The chunk to analyze |
| map | The complete map |
| void Map_Render | ( | ) |
Render the current map.
| void Map_SetEndChunk | ( | int | x, |
| int | y | ||
| ) |
Set the ending chunk of the map.
| x | The x coordinate of the chunk |
| y | The y coordinate of the chunk |
Set the ending chunk of the map.
| x | X-coordinate of the end chunk |
| y | Y-coordinate of the end chunk |
| void Map_SetStartChunk | ( | int | x, |
| int | y | ||
| ) |
Set the starting chunk of the map.
| x | The x coordinate of the chunk |
| y | The y coordinate of the chunk |
Set the starting chunk of the map.
| x | X-coordinate of the start chunk |
| y | Y-coordinate of the start chunk |
| void Map_Start | ( | ) |
Initialize the map system.
|
extern |
Global test map instance.