|
|
|
|
/**
|
|
|
|
|
* @file debug.h
|
|
|
|
|
*
|
|
|
|
|
* Interface of debug functions.
|
|
|
|
|
*/
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
#include <string_view>
|
|
|
|
|
#include <unordered_map>
|
|
|
|
|
|
|
|
|
|
#include "diablo.h"
|
|
|
|
|
#include "engine.h"
|
|
|
|
|
#include "engine/clx_sprite.hpp"
|
|
|
|
|
|
|
|
|
|
namespace devilution {
|
|
|
|
|
|
|
|
|
|
extern std::string TestMapPath;
|
|
|
|
|
extern OptionalOwnedClxSpriteList pSquareCel;
|
|
|
|
|
extern bool DebugToggle;
|
|
|
|
|
extern bool DebugGodMode;
|
|
|
|
|
extern bool DebugVision;
|
|
|
|
|
extern bool DebugPath;
|
|
|
|
|
extern bool DebugGrid;
|
|
|
|
|
extern std::unordered_map<int, Point> DebugCoordsMap;
|
|
|
|
|
extern bool DebugScrollViewEnabled;
|
|
|
|
|
extern std::string debugTRN;
|
|
|
|
|
extern uint32_t glMid1Seed[NUMLEVELS];
|
|
|
|
|
extern uint32_t glMid2Seed[NUMLEVELS];
|
|
|
|
|
extern uint32_t glMid3Seed[NUMLEVELS];
|
|
|
|
|
extern uint32_t glEndSeed[NUMLEVELS];
|
|
|
|
|
|
|
|
|
|
void FreeDebugGFX();
|
|
|
|
|
void LoadDebugGFX();
|
|
|
|
|
void GetDebugMonster();
|
|
|
|
|
void NextDebugMonster();
|
|
|
|
|
void SetDebugLevelSeedInfos(uint32_t mid1Seed, uint32_t mid2Seed, uint32_t mid3Seed, uint32_t endSeed);
|
|
|
|
|
bool CheckDebugTextCommand(const std::string_view text);
|
|
|
|
|
bool IsDebugGridTextNeeded();
|
|
|
|
|
bool IsDebugGridInMegatiles();
|
|
|
|
|
bool GetDebugGridText(Point dungeonCoords, char *debugGridTextBuffer);
|
|
|
|
|
bool IsDebugAutomapHighlightNeeded();
|
|
|
|
|
bool ShouldHighlightDebugAutomapTile(Point position);
|
|
|
|
|
|
|
|
|
|
} // namespace devilution
|