2019-09-19 22:42:45 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
|
|
Copyright (C) 2019 Nuke.YKT
|
|
|
|
|
|
|
|
This file is part of NBlood.
|
|
|
|
|
|
|
|
NBlood is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License version 2
|
|
|
|
as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
#pragma once
|
2020-07-29 21:18:08 +00:00
|
|
|
#include "screenjob.h"
|
2019-09-19 22:42:45 +00:00
|
|
|
#include "common_game.h"
|
|
|
|
#include "inifile.h"
|
2019-12-10 23:57:53 +00:00
|
|
|
#include "mapinfo.h"
|
2019-09-19 22:42:45 +00:00
|
|
|
|
2019-09-22 06:39:22 +00:00
|
|
|
BEGIN_BLD_NS
|
|
|
|
|
|
|
|
|
2020-10-11 10:18:25 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
kMaxMessages = 32,
|
|
|
|
kMaxEpisodes = 7,
|
|
|
|
kMaxLevels = 16
|
|
|
|
};
|
2019-09-19 22:42:45 +00:00
|
|
|
|
|
|
|
#pragma pack(push, 1)
|
|
|
|
|
2020-09-04 18:46:44 +00:00
|
|
|
enum EGameFlag
|
|
|
|
{
|
|
|
|
GF_AdvanceLevel = 1,
|
|
|
|
// 4 was for playing intro cutscenes but is no longer used.
|
|
|
|
GF_PlayCutscene = 8,
|
|
|
|
};
|
|
|
|
|
2019-09-19 22:42:45 +00:00
|
|
|
struct GAMEOPTIONS {
|
2021-04-17 08:14:03 +00:00
|
|
|
uint8_t nGameType;
|
|
|
|
uint8_t nDifficulty;
|
2019-09-19 22:42:45 +00:00
|
|
|
char nMonsterSettings;
|
|
|
|
int uGameFlags;
|
|
|
|
int uNetGameFlags;
|
|
|
|
char nWeaponSettings;
|
|
|
|
char nItemSettings;
|
|
|
|
char nRespawnSettings;
|
|
|
|
char nTeamSettings;
|
|
|
|
int nMonsterRespawnTime;
|
|
|
|
int nWeaponRespawnTime;
|
|
|
|
int nItemRespawnTime;
|
|
|
|
int nSpecialRespawnTime;
|
2019-09-21 11:02:17 +00:00
|
|
|
int weaponsV10x;
|
2019-09-20 10:11:07 +00:00
|
|
|
bool bFriendlyFire;
|
|
|
|
bool bKeepKeysOnRespawn;
|
2019-09-19 22:42:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#pragma pack(pop)
|
|
|
|
|
|
|
|
extern GAMEOPTIONS gSingleGameOptions;
|
|
|
|
extern GAMEOPTIONS gGameOptions;
|
|
|
|
extern int gSkill;
|
|
|
|
extern char BloodIniFile[];
|
|
|
|
extern bool bINIOverride;
|
2021-05-02 07:08:57 +00:00
|
|
|
extern MapRecord* gNextLevel;
|
2019-09-19 22:42:45 +00:00
|
|
|
extern bool gGameStarted;
|
|
|
|
|
|
|
|
void levelInitINI(const char *pzIni);
|
|
|
|
void levelOverrideINI(const char *pzIni);
|
|
|
|
void levelSetupSecret(int nCount);
|
|
|
|
void levelTriggerSecret(int nSecret);
|
|
|
|
void CheckSectionAbend(const char *pzSection);
|
|
|
|
void CheckKeyAbend(const char *pzSection, const char *pzKey);
|
|
|
|
void levelLoadDefaults(void);
|
|
|
|
// arg: 0 is normal exit, 1 is secret level
|
|
|
|
void levelEndLevel(int arg);
|
2020-08-16 11:26:57 +00:00
|
|
|
void levelTryPlayMusic();
|
2019-09-22 06:39:22 +00:00
|
|
|
|
|
|
|
END_BLD_NS
|