Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
EnvironmentMap Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ alternatePath

Vec2 EnvironmentMap::alternatePath[MAP_SIZE_CHUNK *MAP_SIZE_CHUNK]

Array of positions representing the alternate path through the map.

◆ alternatePathLength

int EnvironmentMap::alternatePathLength

The number of positions in the main path.

◆ chunks

2D array of environment chunks that make up the map

◆ endChunk

EnvironmentChunk* EnvironmentMap::endChunk

Pointer to the ending chunk of the map.

◆ mainPath

Vec2 EnvironmentMap::mainPath[MAP_SIZE_CHUNK *MAP_SIZE_CHUNK]

Array of positions representing the main path through the map.

◆ mainPathLength

int EnvironmentMap::mainPathLength

The number of positions in the main path.

◆ startChunk

EnvironmentChunk* EnvironmentMap::startChunk

Pointer to the starting chunk of the map.


The documentation for this struct was generated from the following file: