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

Represents a chunk of the environment. More...

#include <chunks.h>

Public Attributes

Vec2 position
 Position of the chunk.
 
EnvironmentTile tiles [CHUNK_SIZE_TILE][CHUNK_SIZE_TILE]
 Tiles in the chunk.
 
Vec2 roomSize
 Size of the room in the chunk.
 
RoomHallways hallways
 Hallways in the room.
 
RoomFloorPattern floorPattern
 Floor pattern in the room.
 
RoomType roomType
 Type of the room.
 
int totalEnemyCount
 Total number of enemies in the room.
 
int currentEnemyCount
 Current number of enemies in the room.
 
bool inCombat
 Whether the room is in combat.
 
bool empty
 Whether the room is empty.
 
bool discovered
 Whether the room is discovered.
 
Collider * colliders [CHUNK_SIZE_TILE]
 Colliders in the chunk.
 
int colliderCount
 Number of colliders in the chunk.
 

Detailed Description

Represents a chunk of the environment.

Member Data Documentation

◆ colliderCount

int EnvironmentChunk::colliderCount

Number of colliders in the chunk.

◆ colliders

Collider* EnvironmentChunk::colliders[CHUNK_SIZE_TILE]

Colliders in the chunk.

◆ currentEnemyCount

int EnvironmentChunk::currentEnemyCount

Current number of enemies in the room.

◆ discovered

bool EnvironmentChunk::discovered

Whether the room is discovered.

◆ empty

bool EnvironmentChunk::empty

Whether the room is empty.

◆ floorPattern

RoomFloorPattern EnvironmentChunk::floorPattern

Floor pattern in the room.

◆ hallways

RoomHallways EnvironmentChunk::hallways

Hallways in the room.

◆ inCombat

bool EnvironmentChunk::inCombat

Whether the room is in combat.

◆ position

Vec2 EnvironmentChunk::position

Position of the chunk.

◆ roomSize

Vec2 EnvironmentChunk::roomSize

Size of the room in the chunk.

◆ roomType

RoomType EnvironmentChunk::roomType

Type of the room.

◆ tiles

EnvironmentTile EnvironmentChunk::tiles[CHUNK_SIZE_TILE][CHUNK_SIZE_TILE]

Tiles in the chunk.

◆ totalEnemyCount

int EnvironmentChunk::totalEnemyCount

Total number of enemies in the room.


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