#include <windows.h>
#include <dialogs.h>
Go to the source code of this file.
Data Structures | |
struct | macdirs |
struct | macflags |
struct | MacMHMenuItem |
struct | NhWindow |
Defines | |
#define | PLAYER_NAME_RES_ID 1001 |
#define | NUM_MACWINDOWS 15 |
#define | TEXT_BLOCK 512L |
#define | kMapWindow 0 |
#define | kStatusWindow 1 |
#define | kMessageWindow 2 |
#define | kTextWindow 3 |
#define | kMenuWindow 4 |
#define | kLastWindowKind kMenuWindow |
#define | MIN_RIGHT 350 |
#define | NUM_STAT_ROWS 2 |
#define | NUM_ROWS 22 |
#define | NUM_COLS 80 |
#define | QUEUE_LEN 24 |
#define | NHW_BASE 0 |
#define | E extern |
#define | DimMenuBar() AdjustMenus(1) |
#define | UndimMenuBar() AdjustMenus(0) |
Typedefs | |
typedef struct macdirs | MacDirs |
typedef struct macflags | MacFlags |
typedef struct NhWindow | NhWindow |
Functions | |
Boolean | CheckNhWin (WindowPtr mac_win) |
void | dprintf (char *,...) |
Boolean | RetrievePosition (short, short *, short *) |
Boolean | RetrieveSize (short, short, short, short *, short *) |
void | SaveWindowPos (WindowPtr) |
void | SaveWindowSize (WindowPtr) |
Boolean | FDECL (RetrieveWinPos,(WindowPtr, short *, short *)) |
void | showerror (char *, const char *) |
Boolean | itworked (short) |
void | mustwork (short) |
void | attemptingto (char *) |
void | FDECL (C2P,(const char *c, unsigned char *p)) |
void | FDECL (P2C,(const unsigned char *p, char *c)) |
void | DoMenuEvt (long) |
void | InitMenuRes (void) |
void | AdjustMenus (short) |
void | FDECL (process_openfile,(short s_vol, long s_dir, Str255 fNm, OSType ft)) |
void | AddToKeyQueue (unsigned char, Boolean) |
unsigned char | GetFromKeyQueue (void) |
void | trans_num_keys (EventRecord *) |
void | NDECL (InitMac) |
int | FDECL (try_key_queue,(char *)) |
void | FDECL (enter_topl_mode,(char *)) |
void | FDECL (leave_topl_mode,(char *)) |
void | FDECL (topl_set_resp,(char *, char)) |
Boolean | FDECL (topl_key,(unsigned char, Boolean)) |
E void | FDECL (HandleEvent,(EventRecord *)) |
void | NDECL (port_help) |
E void | FDECL (mac_init_nhwindows,(int *, char **)) |
E void | NDECL (mac_askname) |
E void | NDECL (mac_get_nh_event) |
E void | FDECL (mac_exit_nhwindows,(const char *)) |
E winid | FDECL (mac_create_nhwindow,(int)) |
E void | FDECL (mac_clear_nhwindow,(winid)) |
E void | FDECL (mac_display_nhwindow,(winid, BOOLEAN_P)) |
E void | FDECL (mac_destroy_nhwindow,(winid)) |
E void | FDECL (mac_curs,(winid, int, int)) |
E void | FDECL (mac_putstr,(winid, int, const char *)) |
E void | FDECL (mac_start_menu,(winid)) |
E void | FDECL (mac_add_menu,(winid, int, const anything *, CHAR_P, CHAR_P, int, const char *, BOOLEAN_P)) |
E void | FDECL (mac_end_menu,(winid, const char *)) |
E int | FDECL (mac_select_menu,(winid, int, menu_item **)) |
E int | NDECL (mac_nhgetch) |
E int | FDECL (mac_nh_poskey,(int *, int *, int *)) |
E int | NDECL (mac_doprev_message) |
E char | FDECL (mac_yn_function,(const char *, const char *, CHAR_P)) |
E void | FDECL (mac_getlin,(const char *, char *)) |
E int | NDECL (mac_get_ext_cmd) |
E void | FDECL (mac_number_pad,(int)) |
E void | NDECL (mac_delay_output) |
Variables | |
MacDirs | theDirs |
MacFlags | macFlags |
NhWindow * | theWindows |
struct window_procs | mac_procs |
winid | BASE_WINDOW |
winid | WIN_MAP |
winid | WIN_MESSAGE |
winid | WIN_INVEN |
winid | WIN_STATUS |
Boolean | small_screen |
#define DimMenuBar | ( | ) | AdjustMenus(1) |
#define E extern |
#define kLastWindowKind kMenuWindow |
#define kMapWindow 0 |
#define kMenuWindow 4 |
#define kMessageWindow 2 |
#define kStatusWindow 1 |
#define kTextWindow 3 |
#define MIN_RIGHT 350 |
#define NHW_BASE 0 |
#define NUM_COLS 80 |
#define NUM_MACWINDOWS 15 |
#define NUM_ROWS 22 |
#define NUM_STAT_ROWS 2 |
#define PLAYER_NAME_RES_ID 1001 |
#define QUEUE_LEN 24 |
#define TEXT_BLOCK 512L |
#define UndimMenuBar | ( | ) | AdjustMenus(0) |
void AddToKeyQueue | ( | unsigned | char, |
Boolean | |||
) |
void AdjustMenus | ( | short | ) |
void attemptingto | ( | char * | ) |
Boolean CheckNhWin | ( | WindowPtr | mac_win ) |
void DoMenuEvt | ( | long | ) |
void dprintf | ( | char * | , |
... | |||
) |
E char FDECL | ( | mac_yn_function | , |
(const char *, const char *, CHAR_P) | |||
) |
void FDECL | ( | process_openfile | , |
(short s_vol, long s_dir, Str255 fNm, OSType ft) | |||
) |
E void FDECL | ( | mac_exit_nhwindows | , |
(const char *) | |||
) |
E winid FDECL | ( | mac_create_nhwindow | , |
(int) | |||
) |
E void FDECL | ( | mac_clear_nhwindow | , |
(winid) | |||
) |
E void FDECL | ( | mac_display_nhwindow | , |
(winid, BOOLEAN_P) | |||
) |
E void FDECL | ( | mac_destroy_nhwindow | , |
(winid) | |||
) |
E void FDECL | ( | mac_curs | , |
(winid, int, int) | |||
) |
E void FDECL | ( | mac_putstr | , |
(winid, int, const char *) | |||
) |
E void FDECL | ( | mac_start_menu | , |
(winid) | |||
) |
E void FDECL | ( | mac_add_menu | , |
(winid, int, const anything *, CHAR_P, CHAR_P, int, const char *, BOOLEAN_P) | |||
) |
E void FDECL | ( | mac_end_menu | , |
(winid, const char *) | |||
) |
int FDECL | ( | try_key_queue | , |
(char *) | |||
) |
E int FDECL | ( | mac_nh_poskey | , |
(int *, int *, int *) | |||
) |
void FDECL | ( | enter_topl_mode | , |
(char *) | |||
) |
E void FDECL | ( | mac_getlin | , |
(const char *, char *) | |||
) |
void FDECL | ( | C2P | , |
(const char *c, unsigned char *p) | |||
) |
E void FDECL | ( | HandleEvent | , |
(EventRecord *) | |||
) |
Boolean FDECL | ( | topl_key | , |
(unsigned char, Boolean) | |||
) |
void FDECL | ( | leave_topl_mode | , |
(char *) | |||
) |
E void FDECL | ( | mac_number_pad | , |
(int) | |||
) |
void FDECL | ( | topl_set_resp | , |
(char *, char) | |||
) |
void FDECL | ( | P2C | , |
(const unsigned char *p, char *c) | |||
) |
Boolean FDECL | ( | RetrieveWinPos | , |
(WindowPtr, short *, short *) | |||
) |
E void FDECL | ( | mac_init_nhwindows | , |
(int *, char **) | |||
) |
unsigned char GetFromKeyQueue | ( | void | ) |
void InitMenuRes | ( | void | ) |
Boolean itworked | ( | short | ) |
void mustwork | ( | short | ) |
E void NDECL | ( | mac_askname | ) |
E int NDECL | ( | mac_doprev_message | ) |
E void NDECL | ( | mac_delay_output | ) |
E void NDECL | ( | mac_get_nh_event | ) |
void NDECL | ( | InitMac | ) |
E int NDECL | ( | mac_nhgetch | ) |
E int NDECL | ( | mac_get_ext_cmd | ) |
void NDECL | ( | port_help | ) |
Boolean RetrievePosition | ( | short | , |
short * | , | ||
short * | |||
) |
Boolean RetrieveSize | ( | short | , |
short | , | ||
short | , | ||
short * | , | ||
short * | |||
) |
void SaveWindowPos | ( | WindowPtr | ) |
void SaveWindowSize | ( | WindowPtr | ) |
void showerror | ( | char * | , |
const char * | |||
) |
void trans_num_keys | ( | EventRecord * | ) |
struct window_procs mac_procs |
Boolean small_screen |
Referenced by display_gamewindows(), and display_pickinv().
Referenced by cls(), cpostfx(), display_gamewindows(), do_mapping(), do_vicinity_map(), done(), dorecover(), dosave0(), find_trap(), flush_screen(), food_detect(), getpos(), gold_detect(), init_dungeons(), monster_detect(), moveloop(), object_detect(), row_refresh(), trap_detect(), and you_aggravate().
Referenced by chest_trap(), cls(), confused_book(), container_contents(), display_gamewindows(), do_oname(), dokick(), domove(), done(), done1(), done2(), dorecover(), dosacrifice(), dosave(), dosave0(), dotypeinv(), drinkfountain(), enter_explore_mode(), fall_through(), getpos(), goto_level(), gulpmu(), help_monster_out(), in_container(), level_tele(), lift_object(), look_here(), mkcavearea(), mkinvokearea(), out_container(), parse(), peffects(), pickup_object(), savebones(), shkinit(), and zapnodir().
Referenced by bot1(), bot2(), display_gamewindows(), and done().