#include // for BUFSIZ #include #include "robot.h" #include "vars.h" char world[MSGSIZ] = "unknown"; long int maxrooms = 0; O_ROOM *room = 0; long int rooms = 0; long int lastlock = 0; long int reach_added = 0; long int newexits = 0; long int newrooms = 0; long int lastcheck = 0; long int now; PATH *path = 0; long int room_sp = 0; long int path_sp = 0; const char *mudhost = 0; int mudport = 0; const char *myname = 0; const char *stexits[] = { "north", "south", "east", "west", "n", "s", "e", "w", "ne", "nw", "se", "sw", "nne", "nnw", "ene", "wnw", "sse", "ssw", "ese", "wsw", "nn", "ss", "ee", "ww", "nnn", "www", "eee", "sss", "in", "out", "leave", "back", "up", "down", "left", "right", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "open", "close", "rec", "cw", "ccw", "wait", "move around", "look around", "door", "arch", "port", "starboard", "fore", "aft", "sideways", 0 }; char room1[BUFSIZ]; char room2[BUFSIZ]; char room3[BUFSIZ]; char room4[BUFSIZ]; char *roomstr[] = { &room1[0], &room2[0], &room3[0], &room4[0] }; int debug = 0; int ismuck = 0; long int hererm = -1; long int homerm = -1; long int recrm = -1; char home[TOKSIZ] = ""; char desc[TOKSIZ] = ""; long int reach_changed = 0; int awake = 0; long int exits = 0; long int exit_sp = 0; long int exit_ct = 0; int terse = 0; char here[TOKSIZ] = ""; const long int numexits = (sizeof (stexits) / sizeof (*stexits)) - 1; long int lastrm = 0; int fmud; int usedesc = 0; const char *plyfile = 0; int exploring = 0; int nextwait = 120; char pagedby[MSGSIZ] = ""; char typecmd[TOKSIZ]; int dead = 0; int takingnotes = 0; int playinghearts = 0; int speed = 5; long int pagedfrom = -1; long int pagedto = -1; long int pagedat = 0; int visitold = 1; int alone = 0; PLAYER *player; long int me = -1; long int players = 0; long int speaktime = 0; char speaker[MSGSIZ] = ""; long int msgtype = M_ACTION; int quiet = 1; long int maxplayer = 0; long int player_sp = 0; char killer[MSGSIZ] = ""; long heraldtime = 0; char herald[MSGSIZ] = ""; const char * const opre = "OUTPUTPREFIX"; char plypre[SMABUF]; char outpre[SMABUF]; char outsuf[SMABUF]; char mydesc[MSGSIZ]; int paging = 0; long int pagedmsgs = 0; int msgstat = 0; // Do we actually need 6-8? Nothing refers to res[678].... char res1[BUFSIZ], res2[BUFSIZ], res3[BUFSIZ], res4[BUFSIZ], res5[BUFSIZ]; static char res6[BUFSIZ], res7[BUFSIZ], res8[BUFSIZ]; char *result[] = { &res1[0], &res2[0], &res3[0], &res4[0], &res5[0], &res6[0], &res7[0], &res8[0] }; const int trusting = 0; char code[64] = ""; long int debug_conv = 0; int male = 0; int hanging = 0; long int meetingroom = -1; int contest_mode = 0; long int pgoal = 0; const char *owner = 0; long int string_sp = 0; long int string_ct = 0; long int dialog_sp = 0; long int dialog_ct = 0; int generous = 0; int vindictive = 0; long int creation = 0; const char * const mname[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; char thief[MSGSIZ] = ""; long int pennies = 0; const long int termtarg = -1; char termloc[MSGSIZ] = ""; const long int termat = 0; long int termwarn = 0; char pathto[TOKSIZ] = ""; const char *osuf = "OUTPUTSUFFIX"; const char * const modestr[] = { "NORMAL", "MOVE", "WHO", "PAGE", "LOOK", "SCORE", "NUMBER", "COMMAND", "PLAYER" }; const char *mapfile = 0; long int statuscmd = 0; long int pagecmd = 0; long int posecmd = 0; long int scorecmd = 0; jmp_buf start_state; const long int playing = 1; char homedesc[TOKSIZ] = ""; int atdesk = 0; char postcmd[BUFSIZ] = ""; int inmove = 0; int printedloc = 0; long int codeset = 0; long int gave = -1;