You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
633 B
39 lines
633 B
|
6 years ago
|
/**
|
||
|
|
* @file themes.h
|
||
|
|
*
|
||
|
|
* Interface of the theme room placing algorithms.
|
||
|
|
*/
|
||
|
5 years ago
|
#pragma once
|
||
|
8 years ago
|
|
||
|
5 years ago
|
#include <cstdint>
|
||
|
5 years ago
|
|
||
|
4 years ago
|
#include "levels/gendung.h"
|
||
|
5 years ago
|
#include "objdat.h"
|
||
|
|
|
||
|
5 years ago
|
namespace devilution {
|
||
|
6 years ago
|
|
||
|
5 years ago
|
struct ThemeStruct {
|
||
|
5 years ago
|
theme_id ttype;
|
||
|
5 years ago
|
int16_t ttval;
|
||
|
5 years ago
|
};
|
||
|
5 years ago
|
|
||
|
7 years ago
|
extern int numthemes;
|
||
|
5 years ago
|
extern bool armorFlag;
|
||
|
|
extern bool weaponFlag;
|
||
|
7 years ago
|
extern int zharlib;
|
||
|
8 years ago
|
extern ThemeStruct themes[MAXTHEMES];
|
||
|
8 years ago
|
|
||
|
7 years ago
|
void InitThemes();
|
||
|
5 years ago
|
|
||
|
|
/**
|
||
|
|
* @brief HoldThemeRooms marks theme rooms as populated.
|
||
|
|
*/
|
||
|
7 years ago
|
void HoldThemeRooms();
|
||
|
5 years ago
|
|
||
|
|
/**
|
||
|
|
* CreateThemeRooms adds thematic elements to rooms.
|
||
|
|
*/
|
||
|
7 years ago
|
void CreateThemeRooms();
|
||
|
8 years ago
|
|
||
|
5 years ago
|
} // namespace devilution
|