TheCOSCGameProject  1.0
Functions
room.cpp File Reference

Implementation of Room and RoomContent classes for dungeon system. More...

#include "../lib/room.h"
#include <iostream>
#include "../lib/toolkit.h"
Include dependency graph for room.cpp:

Functions

int selectIndex (const std::vector< int > &probabilities)
 

Detailed Description

Implementation of Room and RoomContent classes for dungeon system.

This file contains the implementation of the Room and RoomContent classes, which manage the creation and interaction with different types of rooms in a dungeon system. The RoomContent class handles the generation of room types, items, enemies, and NPCs, while the Room class manages room connections and navigation.

Function Documentation

◆ selectIndex()

int selectIndex ( const std::vector< int > &  probabilities)