|
|
|
|
/**
|
|
|
|
|
* @file automap.h
|
|
|
|
|
*
|
|
|
|
|
* Interface of the in-game map overlay.
|
|
|
|
|
*/
|
|
|
|
|
#ifndef __AUTOMAP_H__
|
|
|
|
|
#define __AUTOMAP_H__
|
|
|
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
|
|
|
|
|
|
DEVILUTION_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
extern BOOL automapflag;
|
|
|
|
|
extern BOOLEAN automapview[DMAXX][DMAXY];
|
|
|
|
|
extern int AutoMapScale;
|
|
|
|
|
extern int AutoMapXOfs;
|
|
|
|
|
extern int AutoMapYOfs;
|
|
|
|
|
extern int AmLine64;
|
|
|
|
|
extern int AmLine32;
|
|
|
|
|
extern int AmLine16;
|
|
|
|
|
extern int AmLine8;
|
|
|
|
|
extern int AmLine4;
|
|
|
|
|
|
|
|
|
|
void InitAutomapOnce();
|
|
|
|
|
void InitAutomap();
|
|
|
|
|
void StartAutomap();
|
|
|
|
|
void AutomapUp();
|
|
|
|
|
void AutomapDown();
|
|
|
|
|
void AutomapLeft();
|
|
|
|
|
void AutomapRight();
|
|
|
|
|
void AutomapZoomIn();
|
|
|
|
|
void AutomapZoomOut();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Renders the automap to the given buffer.
|
|
|
|
|
*/
|
|
|
|
|
void DrawAutomap(CelOutputBuffer out);
|
|
|
|
|
|
|
|
|
|
void SetAutomapView(int x, int y);
|
|
|
|
|
void AutomapZoomReset();
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
DEVILUTION_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
#endif /* __AUTOMAP_H__ */
|