From 62f7040f14b39e67042be98f951575fbc819e84e Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sat, 5 Jan 2008 01:33:53 +0000 Subject: Tiles! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/defines.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'crawl-ref/source/defines.h') diff --git a/crawl-ref/source/defines.h b/crawl-ref/source/defines.h index fccbcf37ba..c7b994134d 100644 --- a/crawl-ref/source/defines.h +++ b/crawl-ref/source/defines.h @@ -120,9 +120,15 @@ const int LABYRINTH_BORDER = 4; #define ENV_SHOW_OFFSET (LOS_RADIUS + 1) #define ENV_SHOW_DIAMETER (ENV_SHOW_OFFSET * 2 + 1) +#ifdef USE_TILE +#define VIEW_BASE_WIDTH (tile_dngn_x) +#define VIEW_MIN_WIDTH (tile_dngn_x) +#define VIEW_MIN_HEIGHT (tile_dngn_y) +#else #define VIEW_BASE_WIDTH 33 #define VIEW_MIN_WIDTH 17 #define VIEW_MIN_HEIGHT 17 +#endif // max traps per level #define MAX_TRAPS 100 @@ -304,4 +310,26 @@ const int LABYRINTH_BORDER = 4; #define KEY_MACRO_ENABLE_MORE -2 #define KEY_REPEAT_KEYS -3 +// gotoxy regions +enum GotoRegion +{ + GOTO_CRT, // cprintf > crt + GOTO_MSG, // cprintf > message + GOTO_STAT, // cprintf > character status + GOTO_DNGN, // cprintf > dungeon screen + GOTO_LAST // cprintf > last active region or CRT, if none +}; + +// Mouse modes (for tiles) +enum MouseMode +{ + MOUSE_MODE_NORMAL, + MOUSE_MODE_COMMAND, + MOUSE_MODE_TARGET, + MOUSE_MODE_TARGET_DIR, + MOUSE_MODE_MORE, + MOUSE_MODE_MACRO +}; + + #endif -- cgit v1.2.3-54-g00ecf