main-win.c File Reference

Pseudo-UI for end-to-end testing. More...

#include "angband.h"
#include "buildid.h"
#include "cmds.h"
#include "cave.h"
#include "game-world.h"
#include "grafmode.h"
#include "init.h"
#include "mon-power.h"
#include "savefile.h"
#include "ui-command.h"
#include "ui-display.h"
#include "ui-game.h"
#include "ui-init.h"
#include "ui-input.h"
#include "ui-map.h"
#include "ui-output.h"
#include "ui-prefs.h"
#include "win/win-menu.h"
#include <locale.h>


#define WINVER   0x0500
#define uint   unsigned int

Detailed Description

Pseudo-UI for end-to-end testing.

Copyright (c) 1997 Ben Harrison, Skirmantas Kligys, Robert Ruehlmann, and others

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

This file helps Angband work with Windows computers.

To use this file, use an appropriate "Makefile" or "Project File", make sure that "WINDOWS" and/or "WIN32" are defined somewhere, and make sure to obtain various extra files as described below.

The Windows version has been tested to compile with Visual C++ 5.0 and 6.0, Cygwin 1.0, Borland C++ 5.5 command line tools, and lcc-win32.

See also "main-dos.c" and "main-ibm.c".

The "lib/pref/pref-win.prf" file contains keymaps, macro definitions, and/or color redefinitions.

The "lib/pref/font-win.prf" contains attr/char mappings for use with the normal "*.fon" font files in the "lib/xtra/font/" directory.

The "lib/pref/graf-win.prf" contains attr/char mappings for use with the special "*.bmp" bitmap files in the "lib/xtra/graf/" directory, which are activated by a menu item.

The "Term_xtra_win_clear()" function should probably do a low-level clear of the current window, and redraw the borders and other things, if only for efficiency. XXX XXX XXX

A simpler method is needed for selecting the "tile size" for windows. XXX XXX XXX

Special "Windows Help Files" can be placed into "lib/xtra/help/" for use with the "winhelp.exe" program. These files may be available at the ftp site somewhere, but I have not seen them. XXX XXX XXX

ToDo: The screensaver mode should implement ScreenSaverConfigureDialog, DefScreenSaverProc, and ScreenSaverProc.

Initial framework (and most code) by Ben Harrison (

Original code by Skirmantas Kligys (

Additional code by Ross E Becker (, and Chris R. Martin (

Additional code by Robert Ruehlmann

Macro Definition Documentation

#define uint   unsigned int
#define WINVER   0x0500