/* sys.h */

#define NULL 0

#define READ_OK 1
#define WRITE_OK 2
#define DIRECTORY 4

#define REINCARNATE_DELAY 180
#define HEAL_DELAY 8
#define HEAL_AMOUNT 1

#define SYSCTL_SAVE 0
#define SYSCTL_SHUTDOWN 1
#define SYSCTL_PANIC 2

#define INTEGER 0
#define STRING 1
#define OBJECT 2

#define TYPE_PLAYER 1
#define TYPE_WIZARD 2
#define TYPE_ROOM 3
#define TYPE_EXIT 4
#define TYPE_WEAPON 5
#define TYPE_ARMOR 6
#define TYPE_PROGRAMMER 7
#define TYPE_BUILDER 8
#define TYPE_MONSTER 9
#define TYPE_OBJECT 10
#define TYPE_COINS 11
#define TYPE_SHOP 12
#define TYPE_CORPSE 13

#define HUH_STRING "Huh? (Type \"help\" for help)\n"

#define make_flags(X) call_other(atoo("/sys/sys"),"make_flags",(X))
#define make_num(X) call_other(atoo("/sys/sys"),"make_num",(X))
#define write listen
#define find_player(X) call_other(atoo("/sys/sys"),"find_player",(X))
#define find_wiz(X) call_other(atoo("/sys/sys"),"find_wiz",(X))
#define who_list() call_other(atoo("/sys/sys"),"who_list")
#define wiz_who_list() call_other(atoo("/sys/sys"),"wiz_who_list")
#define present(X,Y) call_other(atoo("/sys/sys"),"present",(X),(Y))
#define tell_player(X,Y) call_other((X),"listen",(Y))
#define tell_room(X,Y) call_other(atoo("/sys/sys"),"tell_room",(X),(Y))
#define tell_room_except(X,Y,Z) call_other(atoo("/sys/sys"), \
                                           "tell_room_except",(X),(Y),(Z))
#define tell_room_except2(X,Y1,Y2,Z) call_other(atoo("/sys/sys"), \
                                                "tell_room_except2",(X),(Y1), \
                                                (Y2),(Z))