home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_oth / monopoly.lzh / monopoly_source.LZH / variables < prev    next >
Encoding:
Text File  |  1992-01-06  |  54.5 KB  |  1,720 lines

  1. /*  inc/variables contains global variables for monopoly   */
  2.  
  3.  
  4. /* general usage pointers */
  5. /*
  6. struct GfxBase       *GfxBase;
  7. struct IntuitionBase *IntuitionBase;
  8. */
  9. struct IntuiMessage  *message, *infomsg, *propinfomsg, *chancemsg, *chestmsg,
  10.                      *transactmsg, *listpropmsg, *moneybagmsg, *overdrawnmsg,
  11.              *tenpercentmsg, *auctionmsg, *offerbmsg, 
  12.              *offersmsg, *offertmsg, *whodomsg;
  13.  
  14. /* Globals for displaying an image */
  15. struct Screen   *screen1;
  16. struct Window   *boardwindow, *instructwindow, *infowindow, *propinfowindow,
  17.                 *chancewindow, *chestwindow, *gowindow, *transactwindow,
  18.         *listpropwindow, *moneybagwindow, *overdrawnwindow,
  19.         *tenpercentwindow, *auctionwindow, *offerbwindow, 
  20.         *offerswindow, *offertwindow, *whodowindow, *waitwindow;
  21. struct RastPort *rportboard, *rportinstruct, *rportinfo, *rportpropinfo,
  22.                 *rportchance, *rportchest, *rportgo, *rporttransact,
  23.         *rportlistprop, *rportmoneybag, *rportoverdrawn,
  24.         *rporttenpercent, *rportauction, *rportofferb, 
  25.         *rportoffers, *rportoffert, *rportwhodo, *rportwait;
  26. struct ViewPort *vport1;
  27. struct BitMap   tBitMap;      /* Temp BitMap struct for small pics  */
  28.  
  29.  
  30. int   i, j, error;
  31. BYTE  c;
  32. ULONG pBytes, bidcost, offerbcost;
  33. USHORT mouseX, mouseY, menunum, itemnum, subnum,
  34.        nhp, ncp, ntp, nsp,     
  35.        /*  # human, computer, total, starting players  */
  36.        gagid,  /*  gadgetID#  */
  37.        nowrolling,  /*  who's turn it is  */
  38.        typeplayer0, typeplayer1, typeplayer2, typeplayer3,
  39.               /*  HUMAN -- COMPUTER -- DEAD  */
  40.        dice0, dice1,   /*  amount shown on dice  */
  41.        playerat[4],  /* token locations   */
  42.        freecard[4],  /*  number of get-out-of-jail-free cards per player */
  43.                  /*   property attribute arrays   */
  44.        owner[40], propcost[40], numhouses[40], rentnone[40], rentone[40],
  45.        renttwo[40], rentthree[40], rentfour[40], renthotel[40], numutil[4],
  46.        numrr[4], housecost[40], cards[2][16], jaildouble[4], numdoubles,
  47.        property, buyee, jailvectorlocation22[16][2], 
  48.        jailvectorlocation30[35][2], jailvectorlocation33[31][2],
  49.        jailvectorlocation36[22][2];
  50. SHORT listproppage;
  51. BOOL done, endnum, endname, verifyname, nameagain, instruct,
  52.      isinjail[4], endpal, doublerr, doubleutil, jaildoubled, trieddoubles,
  53.      changetoken0, changetoken1, changetoken2, changetoken3,
  54.      donepropinfo, buyfrombank, notplaying[4], ismono[40], ismorg[40],
  55.      isutil[40], isrr[40], donechance, donechest, trydoublethrice,
  56.      doublesrolled, donetransact, pickedprop, donelistprop, doneod,
  57.      bid, odqpflag, didntbuyfrombank, building, mortgaging, free_parking;
  58. LONG bankroll[6], net_worth[4], lamount;  /*  player banks  */
  59.  
  60. char houses0[]="with no houses.", 
  61.      houses1[]="with one house.", houses2[]="with two houses.",
  62.      houses3[]="with three houses.", houses4[]="with four houses.",
  63.      houses5[]="with an hotel.",
  64.      period[]=".", assess[]="Your bill is $";
  65. char outputstr[19], odamount[8], tenpercentbroll[8];
  66.  
  67.  
  68.                    /*  print intructions  */
  69. struct IntuiText Page1a, Page1b, Page1c, Page1d, Page1e, Page1f,
  70.                     Page1g, Page1h, Page1i, Page1j, Page1k, Page1l,
  71.                     Page1m, Page1n,
  72.  
  73.                     Page2a, Page2b, Page2c, Page2d, Page2e, Page2f,
  74.                     Page2g, Page2h, Page2i, Page2j, Page2k, Page2l,
  75.                     Page2m, Page2n, Page2o, Page2p, Page2q,
  76.  
  77.                     Page3a, Page3b, Page3c, Page3d, Page3e, Page3f,
  78.                     Page3g, Page3h, Page3i, Page3j, Page3k, Page3l,
  79.                     Page3m, Page3n, Page3o, Page3p, Page3q, Page3r,
  80.             Page3s,
  81.             
  82.             Page4a, Page4b, Page4c, Page4d, Page4e, Page4f,
  83.                     Page4g, Page4h, Page4i, Page4j, Page4k, Page4l,
  84.                     Page4m, Page4n, Page4o, Page4p, Page4q, Page4r,
  85.             Page4s,
  86.  
  87.                     Page5a, Page5b, Page5c, Page5d, Page5e, Page5f,
  88.                     Page5g, Page5h, Page5i, Page5j, Page5k, Page5l,
  89.                     Page5m, Page5n, Page5o, Page5p, Page5q, Page5r,
  90.             Page5s,
  91.  
  92.                     Page6a, Page6b, Page6c, Page6d, Page6e, Page6f,
  93.                     Page6g, Page6h, Page6i, Page6j, Page6k, Page6l,
  94.                     Page6m, Page6n, Page6o, Page6p, Page6q, Page6r,
  95.             Page6s,
  96.  
  97.                     Page7a, Page7b, Page7c, Page7d, Page7e, Page7f,
  98.                     Page7g, Page7h, Page7i, Page7j, Page7k, Page7l,
  99.                     Page7m, Page7n, Page7o, Page7p, Page7q, Page7r,
  100.             Page7s;
  101.  
  102. struct IntuiText intro0text, intro0atext, intro1text, intro2text,
  103.                  intro3text, intro4text,
  104.                  nhptext, ncptext, xnumtext, xname0text,
  105.                  xname1text, xname2text, xname3text,
  106.          xname3atext, xname3btext,
  107.                  xname4text, xname5text, xnamegagtext,
  108.          verifyngagtext, denyngagtext, verifyn0text,
  109.          verifyn1text, outstr, cname,
  110.          name0text, name1text, name2text, name3text;
  111. struct IntuiText wait_LStext2 =
  112.    {
  113.    black, yellow, JAM1, 8, 20, NULL,
  114.    NULL, NULL
  115.    };
  116. struct IntuiText wait_LStext1 =
  117.    {
  118.    black, yellow, JAM1, 8, 10, NULL,
  119.    NULL, &wait_LStext2
  120.    };
  121.  
  122. struct IntuiText CONTINUEtext =
  123.    {
  124.    green, black, JAM1, 48, 1, NULL,
  125.    (UBYTE *)"CONTINUE", NULL
  126.    };
  127. struct IntuiText YEStext =
  128.    {
  129.    green, black, JAM1, 10, 1, NULL,
  130.    (UBYTE *)"YES", NULL
  131.    };
  132. struct IntuiText NOtext =
  133.    {
  134.    red, black, JAM1, 5, 1, NULL,
  135.    (UBYTE *)"NO", NULL
  136.    }; 
  137. struct IntuiText PERCENTtext =
  138.    {
  139.    red, black, JAM1, 5, 1, NULL,
  140.    (UBYTE *)"10%", NULL
  141.    }; 
  142. struct IntuiText TAXtext =
  143.    {
  144.    red, black, JAM1, 5, 1, NULL,
  145.    (UBYTE *)"$200", NULL
  146.    }; 
  147.  
  148. struct IntuiText dnscrolltext =
  149.    {
  150.    lt_gray, black, JAM1, 5, 1, NULL,
  151.    (UBYTE *)"SCROLL DOWN", NULL
  152.    };
  153. USHORT dnscrollbord[] =
  154.    {
  155.    -2, -2,
  156.    97, -2,
  157.    97, 10,
  158.    -2, 10,
  159.    -2, -2
  160.    };
  161. struct Border dnscrollborder =
  162.    {
  163.    0, 0, lt_gray, 0, JAM1, 5, &dnscrollbord[0], NULL
  164.    };
  165.  
  166. struct Gadget dnscrollgag =
  167.    {
  168.    NULL,   /*   next gadg   */
  169.    220, 188,
  170.    96, 9,
  171.    GADGHCOMP,
  172.    RELVERIFY | BOTTOMBORDER,
  173.    BOOLGADGET,
  174.    (APTR)&dnscrollborder,
  175.    NULL,
  176.    &dnscrolltext,
  177.    NULL,
  178.    NULL,
  179.    33,
  180.    NULL
  181.    };
  182.  
  183. struct IntuiText upscrolltext =
  184.    {
  185.    dk_gray, black, JAM1, 5, 1, NULL,
  186.    (UBYTE *)"SCROLL UP", NULL
  187.    };
  188. USHORT upscrollbord[] =
  189.    {
  190.    -2, -2,
  191.    81, -2,
  192.    81, 10,
  193.    -2, 10,
  194.    -2, -2
  195.    };
  196. struct Border upscrollborder =
  197.    {
  198.    0, 0, dk_gray, 0, JAM1, 5, &upscrollbord[0], NULL
  199.    };
  200.  
  201. struct Gadget upscrollgag =
  202.    {
  203.    NULL,   /*   next gadg   */
  204.    20, 188,
  205.    80, 9,
  206.    GADGHCOMP,
  207.    RELVERIFY | BOTTOMBORDER,
  208.    BOOLGADGET,
  209.    (APTR)&upscrollborder,
  210.    NULL,
  211.    &upscrolltext,
  212.    NULL,
  213.    NULL,
  214.    32,
  215.    NULL
  216.    };
  217.  
  218. USHORT nextpagebord[] =
  219.    {
  220.    -2, -2,
  221.    81, -2,
  222.    81, 10,
  223.    -2, 10,
  224.    -2, -2
  225.    };
  226. struct Border nextpageborder =
  227.    {
  228.    0, 0, green, 0, JAM1, 5, &nextpagebord[0], NULL
  229.    };
  230.  
  231. struct IntuiText nextpagetext =
  232.    {
  233.    green, black, JAM1, 5, 1, NULL,
  234.    (UBYTE *)"NEXT PAGE", NULL
  235.    };
  236.  
  237. struct Gadget instructpagegag =
  238.    {
  239.    NULL,   /*   next gadg   */
  240.    120, 188,
  241.    80, 9,
  242.    GADGHCOMP,
  243.    RELVERIFY | BOTTOMBORDER,
  244.    BOOLGADGET,
  245.    (APTR)&nextpageborder,
  246.    NULL,
  247.    &nextpagetext,
  248.    NULL,
  249.    NULL,
  250.    31,
  251.    NULL
  252.    };
  253. struct NewWindow ninstructw = {
  254.    0, 0,                                /*  Left, Top      */
  255.    320, 200,                     /*  Width, Height     */ 
  256.    yellow, purple,                 /*  detail, block pens */
  257.    CLOSEWINDOW | GADGETUP | RAWKEY,                   /*  IDCMP Flags      */
  258.    ACTIVATE | SMART_REFRESH | WINDOWCLOSE,   /*  flags         */
  259.    NULL,                              /*  & first gadget     */
  260.    NULL,                          /*  CheckMark       */ 
  261.    (UBYTE *)"    COMPUTER SPECIFIC INSTRUCTIONS",/*  Title          */
  262.    NULL,                       /*  Screen          */  
  263.    NULL,                          /*  Custom BitMap     */
  264.    320, 200,                     /*  Minimums     */ 
  265.    320, 200,                      /*  Maximums     */
  266.    CUSTOMSCREEN,                 /*  screentype     */
  267. };
  268.  
  269. struct IntuiText instructIT[SHOW_LINES];
  270. struct IntuiMessage *instructmsg;
  271. UBYTE *instructline[MAX_LINES+1];
  272. USHORT line0_text=0;
  273. SHORT context_line;
  274.  
  275. struct Gadget nhpgag, ncpgag, xnumgag, name0gag, name1gag, name2gag, 
  276.               name3gag, xnamegag, verifyngag, denyngag,
  277.           donepropinfogag, donechancegag, bidgag, nobidgag;
  278. USHORT line0bord[] =
  279.    {
  280.    5, 0,
  281.    313, 0
  282.    };
  283. struct Border line13border =
  284.    {
  285.    0, 180, dk_gray, black, JAM1, 2, &line0bord[0], NULL
  286.    };
  287. struct Border line12border =
  288.    {
  289.    0, 168, dk_gray, black, JAM1, 2, &line0bord[0], &line13border
  290.    };
  291. struct Border line11border =
  292.    {
  293.    0, 156, dk_gray, black, JAM1, 2, &line0bord[0], &line12border
  294.    };
  295. struct Border line10border =
  296.    {
  297.    0, 144, dk_gray, black, JAM1, 2, &line0bord[0], &line11border
  298.    };
  299. struct Border line9border =
  300.    {
  301.    0, 132, dk_gray, black, JAM1, 2, &line0bord[0], &line10border
  302.    };
  303. struct Border line8border =
  304.    {
  305.    0, 120, dk_gray, black, JAM1, 2, &line0bord[0], &line9border
  306.    };
  307. struct Border line7border =
  308.    {
  309.    0, 108, dk_gray, black, JAM1, 2, &line0bord[0], &line8border
  310.    };
  311. struct Border line6border =
  312.    {
  313.    0, 96, dk_gray, black, JAM1, 2, &line0bord[0], &line7border
  314.    };
  315. struct Border line5border =
  316.    {
  317.    0, 84, dk_gray, black, JAM1, 2, &line0bord[0], &line6border
  318.    };
  319. struct Border line4border =
  320.    {
  321.    0, 72, dk_gray, black, JAM1, 2, &line0bord[0], &line5border
  322.    };
  323. struct Border line3border =
  324.    {
  325.    0, 60, dk_gray, black, JAM1, 2, &line0bord[0], &line4border
  326.    };
  327. struct Border line2border =
  328.    {
  329.    0, 48, dk_gray, black, JAM1, 2, &line0bord[0], &line3border
  330.    };
  331. struct Border line1border =
  332.    {
  333.    0, 36, dk_gray, black, JAM1, 2, &line0bord[0], &line2border
  334.    };
  335. struct Border line0border =
  336.    {
  337.    0, 24, dk_gray, black, JAM1, 2, &line0bord[0], &line1border
  338.    };
  339.  
  340.  
  341.  
  342. struct Gadget nextpagegag =
  343.    {
  344.    NULL,
  345.    120, 185,
  346.    80, 10,
  347.    GADGHCOMP,
  348.    GADGIMMEDIATE | RELVERIFY,
  349.    BOOLGADGET,
  350.    (APTR)&nextpageborder,
  351.    NULL,
  352.    &nextpagetext,
  353.    NULL,
  354.    NULL,
  355.    31,
  356.    NULL
  357.    };
  358. USHORT bidbord[] =
  359.    {
  360.    -1, -1,
  361.    44, -1,
  362.    44, 9,
  363.    -1, 9,
  364.    };
  365. struct Border bidborder =
  366.    {
  367.    -1, -1, red, black, JAM1,
  368.    4, &bidbord[0], NULL
  369.    };
  370.  
  371. USHORT nobord[] =
  372.    {
  373.    -2, -2,
  374.    31, -2,
  375.    31, 10,
  376.    -2, 10,
  377.    -2, -2
  378.    };
  379. USHORT yesbord[] =
  380.    {
  381.    -2, -2,
  382.    41, -2,
  383.    41, 10,
  384.    -2, 10,
  385.    -2, -2
  386.    };
  387. USHORT taxbord[] =
  388.    {
  389.    -2, -2,
  390.    51, -2,
  391.    51, 10,
  392.    -2, 10,
  393.    -2, -2
  394.    };
  395. USHORT continuebord[] =
  396.    {
  397.    -2, -2,
  398.    176, -2,
  399.    176, 10,
  400.    -2, 10,
  401.    -2, -2
  402.    };
  403. struct Border continueborder =
  404.    {
  405.    0, 0, green, 0, JAM1, 5,
  406.    &continuebord[0], NULL
  407.    };
  408. struct Border yesborder =
  409.    {
  410.    0, 0, green, 0, JAM1, 5, &yesbord[0], NULL
  411.    };
  412. struct Border noborder =
  413.    {
  414.    0, 0, red, 0, JAM1, 5, &nobord[0], NULL
  415.    };
  416. struct Border taxborder =
  417.    {
  418.    0, 0, red, 0, JAM1, 5, &taxbord[0], NULL
  419.    };
  420. struct Border percentborder =
  421.    {
  422.    0, 0, red, 0, JAM1, 5, &yesbord[0], NULL
  423.    };
  424. struct Gadget nogag =
  425.    {
  426.    NULL,
  427.    NULL, NULL,
  428.    30, 10,
  429.    GADGHCOMP,
  430.    GADGIMMEDIATE | RELVERIFY,
  431.    BOOLGADGET,
  432.    (APTR)&noborder,
  433.    NULL,
  434.    &NOtext,
  435.    NULL,
  436.    NULL,
  437.    2,
  438.    NULL
  439.    };
  440. struct Gadget yesgag =
  441.    {
  442.    &nogag,
  443.    NULL, NULL,
  444.    40, 10,
  445.    GADGHCOMP,
  446.    GADGIMMEDIATE | RELVERIFY,
  447.    BOOLGADGET,
  448.    (APTR)&yesborder,
  449.    NULL,
  450.    &YEStext,
  451.    NULL,
  452.    NULL,
  453.    1,
  454.    NULL
  455.    };
  456. struct Gadget continuegag =
  457.    {
  458.    NULL,
  459.    8, 130,
  460.    176, 10,
  461.    GADGHCOMP,
  462.    GADGIMMEDIATE | RELVERIFY,
  463.    BOOLGADGET,
  464.    (APTR)&continueborder,
  465.    NULL,
  466.    &CONTINUEtext,
  467.    NULL,
  468.    NULL,
  469.    0,
  470.    NULL
  471.    };
  472. struct Gadget taxgag =
  473.    {
  474.    NULL,
  475.    NULL, NULL,
  476.    50, 10,
  477.    GADGHCOMP,
  478.    GADGIMMEDIATE | RELVERIFY,
  479.    BOOLGADGET,
  480.    (APTR)&taxborder,
  481.    NULL,
  482.    &TAXtext,
  483.    NULL,
  484.    NULL,
  485.    29,
  486.    NULL
  487.    };
  488. struct Gadget percentgag =
  489.    {
  490.    &taxgag,
  491.    NULL, NULL,
  492.    40, 10,
  493.    GADGHCOMP,
  494.    GADGIMMEDIATE | RELVERIFY,
  495.    BOOLGADGET,
  496.    (APTR)&percentborder,
  497.    NULL,
  498.    &PERCENTtext,
  499.    NULL,
  500.    NULL,
  501.    28,
  502.    NULL
  503.    };
  504. struct StringInfo nhpinfo, ncpinfo,
  505.                   n0info, n1info, n2info, n3info;
  506. UBYTE name0[35] = {"Ed"};
  507. UBYTE name1[35] = {"Kay"};
  508. UBYTE name2[35] = {"enter a name here"};
  509. UBYTE name3[35] = {"test name"};
  510. UBYTE nameundobuf[35];
  511. UBYTE nbufnhp[2] = {"0"};
  512. UBYTE nbufncp[2] = {"0"};
  513. UBYTE nbufbid[6] = {"0"};
  514. UBYTE nbufofferb[6] = {"0"};
  515. UBYTE undobufi[6];
  516.  
  517.   /*  variables for pallete control  */
  518. struct Gadget redgag, greengag, bluegag,   /*  sliders  */
  519.               palc25gag, palc26gag, palc27gag, palc28gag,  /*  color boxes  */
  520.               palokgag, restorepalgag, cancelpalgag;   /*  palette commands  */
  521. struct PropInfo rpinfo, gpinfo, bpinfo;
  522. struct IntuiText palintrotext, redgagtext, greengagtext, bluegagtext,
  523.                  paloktext, restorepaltext;
  524. struct IntuiText transactnote0 =
  525.    {
  526.    white, black,
  527.    JAM1,
  528.    5, 20,
  529.    NULL, NULL, NULL  
  530.    };
  531. struct IntuiText transactnote1 =
  532.    {
  533.    white, black,
  534.    JAM1,
  535.    5, 30,
  536.    NULL, NULL, NULL  
  537.    };
  538. struct IntuiText transactnote2 =
  539.    {
  540.    white, black,
  541.    JAM1,
  542.    5, 40,
  543.    NULL, NULL, NULL  
  544.    };
  545. struct IntuiText transactnote3 =
  546.    {
  547.    yellow, black,
  548.    JAM1,
  549.    5, 50,
  550.    NULL, NULL, NULL  
  551.    };
  552. struct IntuiText transactnote4 =
  553.    {
  554.    yellow, black,
  555.    JAM1,
  556.    5, 60,
  557.    NULL, NULL, NULL  
  558.    };
  559. struct IntuiText transactnote5 =
  560.    {
  561.    yellow, black,
  562.    JAM1,
  563.    5, 70,
  564.    NULL, NULL, NULL  
  565.    };
  566. struct Image redknob, greenknob, blueknob;  /* used by autoknob  */
  567.  
  568.      /*  color box images use planepick to set color   */
  569. struct Image image25 = {
  570.              0, 0, 20, 20, 1, NULL, 0, 25, NULL  };
  571. struct Image image26 = {
  572.              0, 0, 20, 20, 1, NULL, 0, 26, NULL  };
  573. struct Image image27 = {
  574.              0, 0, 20, 20, 1, NULL, 0, 27, NULL  };
  575. struct Image image28 = {
  576.              0, 0, 20, 20, 1, NULL, 0, 28, NULL  };
  577.  
  578. USHORT palokbord[] = {
  579. -3, -2,
  580. 73, -2,
  581. 73, 10,
  582. -3, 10,
  583. -3, -2  };
  584.  
  585. USHORT restorepalbord[] = {
  586. -2, -2,
  587. 176, -2,
  588. 176, 10,
  589. -2, 10,
  590. -2, -2  };
  591.  
  592. struct Border palokborder = {
  593. 0, 0, green, 0, JAM1, 5,
  594. &palokbord[0], NULL  };
  595.  
  596.  
  597. struct Border  restorepalborder = {
  598. 0, 0, orange, 0, JAM1, 5,
  599. &restorepalbord[0], NULL  };
  600.  
  601. /*  variables for get player information  */
  602. USHORT namebord[] = {
  603. -3, -2,
  604. 301, -2,
  605. 301, 10,
  606. -3, 10,
  607. -3, -2  };
  608.  
  609. struct Border name0border = {
  610. 0, 0,
  611. lt_blue, 0, JAM1,
  612. 5,
  613. &namebord[0],
  614. NULL  };
  615.  
  616. struct Border name1border = {
  617. 0, 0,
  618. purple, 0, JAM1,
  619. 5,
  620. &namebord[0],
  621. NULL  };
  622.  
  623. struct Border name2border = {
  624. 0, 0,
  625. yellow, 0, JAM1,
  626. 5,
  627. &namebord[0],
  628. NULL  };
  629.  
  630. struct Border name3border = {
  631. 0, 0,
  632. dk_blue, 0, JAM1,
  633. 5,
  634. &namebord[0],
  635. NULL  };
  636.  
  637. USHORT xnamebord[] = {
  638. -3, -2,
  639. 162, -2,
  640. 162, 10,
  641. -3, 10,
  642. -3, -2  };
  643.  
  644. struct Border xnameborder = {
  645. 0, 0,
  646. green, 0, JAM1,
  647. 5,
  648. &xnamebord[0],
  649. NULL  };
  650.  
  651. USHORT verifynamebord[] = {
  652. -3, -2,
  653. 162, -2,
  654. 162, 10,
  655. -3, 10,
  656. -3, -2  };
  657.  
  658. struct Border verifynborder = {
  659. 0, 0,
  660. green, 0, JAM1,
  661. 5,
  662. &verifynamebord[0],
  663. NULL  };
  664.  
  665. USHORT denynamebord[] = {
  666. -3, -2,
  667. 98, -2,
  668. 98, 10,
  669. -3, 10,
  670. -3, -2  };
  671.  
  672. struct Border denynborder = {
  673. 0, 0,
  674. red, 0, JAM1,
  675. 5,
  676. &denynamebord[0],
  677. NULL  };
  678.  
  679. USHORT xnbord[] = {
  680. -3, -2,
  681. 65, -2,
  682. 65, 10,
  683. -3, 10,
  684. -3, -2  };
  685.  
  686. struct Border xnborder = {
  687. 0, 0,
  688. green, 0, JAM1,
  689. 5,
  690. &xnbord[0],
  691. NULL  };
  692.  
  693. USHORT nhpbord[] = {
  694. 9, -1,
  695. 16, -1,
  696. 16, 10,
  697. 9, 10,
  698. 9, -1  };
  699.  
  700. USHORT nhpoutline[] = {
  701. -76, -15,
  702. 111, -15,
  703. 111, 0,
  704. 24, 0,
  705. 24, 12,
  706. -1, 12,
  707. -1, 0,
  708. -76, 0,
  709. -76, -15  };
  710.  
  711. struct Border nhpobord = {
  712. 0, 0,
  713. lt_blue, 0, JAM1,
  714. 9,
  715. &nhpoutline[0],
  716. NULL  };
  717.  
  718. struct Border nhpborder = {
  719. -1, -1,        /*  leftedge, topedge  */
  720. lt_blue, 0, JAM1,   /*  fpen, bpen   */
  721. 5,             /*  (#vertices + 1) = count   */
  722. &nhpbord[0],   /*  pointer to vertex array   */
  723. &nhpobord  };       /*  pointer to next struct Border   */ 
  724.  
  725. USHORT ncpbord[] = {
  726. 9, -1,
  727. 16, -1,
  728. 16, 10,
  729. 9, 10,
  730. 9, -1  };
  731.  
  732. USHORT ncpoutline[] = {
  733. -91, -15,
  734. 120, -15,
  735. 120, 0,
  736. 24, 0,
  737. 24, 12,
  738. -1, 12,
  739. -1, 0,
  740. -91, 0,
  741. -91, -15  };
  742.  
  743. struct Border ncpobord = {
  744. 0, 0,
  745. 13, 0, JAM1,
  746. 9,
  747. &ncpoutline[0],
  748. NULL  };
  749.  
  750. struct Border ncpborder = {
  751. -1, -1,        /*  leftedge, topedge  */
  752. 13, 0, JAM1,   /*  fpen, bpen   */
  753. 5,             /*  (#vertices + 1) = count   */
  754. &ncpbord[0],   /*  pointer to vertex array   */
  755. &ncpobord  };       /*  pointer to next struct Border   */
  756.  
  757. struct GelsInfo GInfo;      /* For all Gels. */
  758.  
  759. struct Bob *Redbob, *Greenbob, *Bluebob, *Yellowbob;
  760.  
  761. SHORT Reddata[35] = {
  762.     14336, 31744, 65024, 32256, 32256, 15360, 0,
  763.     0, 0, 0, 32768,  32768, 16384, 14336,
  764.     0, 0, 0, 0, 0, 0, 0,
  765.     0, 30720, 64512, 64512, 64512, 31744, 14336, 
  766.     0, 30720, 64512, 31744, 31744, 15360, 0    
  767.     };  
  768.  
  769. SHORT Greendata[35] = {
  770.     14336, 1024, 512, 512, 512, 0, 0,
  771.     0, 30720, 64512, 64512, 64512, 31744, 14336,
  772.     0, 0, 0, 0, 0, 0, 0,
  773.     0, 30720, 64512, 64512, 64512, 31744, 14336,
  774.     0, 30720, 64512, 31744, 31744, 15360, 0 
  775.     };
  776.  
  777. SHORT Bluedata[35] = {
  778.     14336, 31744, 65024, 32256, 32256, 15360, 0,
  779.     0, 30720, 64512, 64512, 64512, 31744, 14336,
  780.     0, 0, 0, 0, 0, 0, 0, 
  781.     0, 30720, 64512, 64512, 64512, 31744, 14336,
  782.     0, 30720, 64512, 31744, 31744, 15360, 0
  783.     };  
  784.  
  785. SHORT Yellowdata[35] = {
  786.     14336, 1024, 512, 512, 512, 0, 0,
  787.     0, 0, 0, 32768, 32768, 16384, 14336, 
  788.     0, 30720, 64512, 31744, 31744, 15360, 0,
  789.     0, 30720, 64512, 64512, 64512, 31744, 14336,
  790.      0, 30720, 64512, 31744, 31744, 15360, 0
  791.     };
  792.  
  793.  
  794. USHORT *Red_chip = 0;
  795. USHORT *Green_chip = 0;
  796. USHORT *Blue_chip = 0;
  797. USHORT *Yellow_chip = 0;
  798.  
  799.        /*  initial coordinates for bob  */ 
  800. USHORT startRX, startRY, startGX, startGY, 
  801.        startBX, startBY, startYX, startYY;
  802.  
  803.  
  804. /*  arrays to hold locations for tokens on each property  */
  805.  
  806. USHORT go[2][4] = {
  807. /*         R    G    B    Y                          */
  808.     { 266, 281, 281, 266 },        /*  X values  */ 
  809.         { 178, 178, 190, 190 }         /*  Y values  */
  810. };
  811. USHORT med[2][4] = {
  812. /*         R    G    B    Y                          */
  813.     { 242, 251, 251, 242 },        /*  X values  */ 
  814.         { 181, 181, 190, 190 }         /*  Y values  */
  815. };
  816. USHORT cc1[2][4] = {
  817. /*         R    G    B    Y                          */
  818.     { 221, 230, 221, 230 },        /*  X values  */ 
  819.         { 181, 181, 190, 190 }         /*  Y values  */
  820. };
  821. USHORT bal[2][4] = {
  822. /*         R    G    B    Y                          */
  823.     { 200, 209, 200, 209 },        /*  X values  */ 
  824.         { 181, 181, 190, 190 }         /*  Y values  */
  825. };
  826. USHORT itax[2][4] = {
  827. /*         R    G    B    Y                          */
  828.     { 179, 188, 179, 188 },        /*  X values  */ 
  829.         { 181, 181, 190, 190 }         /*  Y values  */
  830. };
  831. USHORT rrr[2][4] = {
  832. /*         R    G    B    Y                          */
  833.     { 150, 164, 150, 164 },        /*  X values  */ 
  834.         { 181, 181, 190, 190 }         /*  Y values  */
  835. };
  836. USHORT or[2][4] = {
  837. /*         R    G    B    Y                          */
  838.     { 125, 134, 125, 134 },        /*  X values  */ 
  839.         { 181, 181, 190, 190 }         /*  Y values  */
  840. };
  841. USHORT c1[2][4] = {
  842. /*         R    G    B    Y                          */
  843.     { 104, 113, 104, 113 },        /*  X values  */ 
  844.         { 181, 181, 190, 190 }         /*  Y values  */
  845. };
  846. USHORT ver[2][4] = {
  847. /*         R    G    B    Y                          */
  848.     {  83,  92,  83,  92 },        /*  X values  */ 
  849.         { 181, 181, 190, 190 }         /*  Y values  */
  850. };
  851. USHORT con[2][4] = {
  852. /*         R    G    B    Y                          */
  853.     {  62,  71,  62,  71 },        /*  X values  */ 
  854.         { 181, 181, 190, 190 }         /*  Y values  */
  855. };
  856. USHORT vis[2][4] = {
  857. /*         R    G    B    Y                          */
  858.     {  27,  27,  36,  49 },        /*  X values  */ 
  859.         { 177, 187, 192, 192 }         /*  Y values  */
  860. };
  861. USHORT stc[2][4] = {
  862. /*         R    G    B    Y                          */
  863.     {  44,  39,  33,  27 },        /*  X values  */ 
  864.         { 159, 165, 159, 165 }         /*  Y values  */
  865. };
  866. USHORT eco[2][4] = {
  867. /*         R    G    B    Y                          */
  868.     {  51,  44,  36,  29 },        /*  X values  */ 
  869.         { 141, 149, 141, 149 }         /*  Y values  */
  870. };
  871. USHORT sts[2][4] = {
  872. /*         R    G    B    Y                          */
  873.     {  44,  39,  33,  27 },        /*  X values  */ 
  874.         { 125, 131, 125, 131 }         /*  Y values  */
  875. };
  876. USHORT va[2][4] = {
  877. /*         R    G    B    Y                          */
  878.     {  45,  39,  33,  27 },        /*  X values  */ 
  879.         { 112, 117, 112, 117 }         /*  Y values  */
  880. };
  881. USHORT rrp[2][4] = {
  882. /*         R    G    B    Y                          */
  883.     {  50,  44,  37,  30 },        /*  X values  */ 
  884.         {  92, 101,  92, 101 }         /*  Y values  */
  885. };
  886. USHORT stj[2][4] = {
  887. /*         R    G    B    Y                          */
  888.     {  44,  38,  32,  26 },        /*  X values  */ 
  889.         {  74,  79,  74,  79 }         /*  Y values  */
  890. };
  891. USHORT cc2[2][4] = {
  892. /*         R    G    B    Y                          */
  893.     {  51,  43,  35,  28 },        /*  X values  */ 
  894.         {  60,  64,  60,  64 }         /*  Y values  */
  895. };
  896. USHORT tn[2][4] = {
  897. /*         R    G    B    Y                          */
  898.     {  44,  38,  32,  26 },        /*  X values  */ 
  899.         {  44,  49,  44,  49 }         /*  Y values  */
  900. };
  901. USHORT ny[2][4] = {
  902. /*         R    G    B    Y                          */
  903.     {  44,  38,  32,  26 },        /*  X values  */ 
  904.         {  29,  34,  29,  34 }         /*  Y values  */
  905. };
  906. USHORT fp[2][4] = {
  907. /*         R    G    B    Y                          */
  908.     {  47,  47,  33,  33 },        /*  X values  */ 
  909.         {  16,   5,   5,  16 }         /*  Y values  */
  910. };
  911. USHORT ky[2][4] = {
  912. /*         R    G    B    Y                          */
  913.     {  71,  71,  62,  62 },        /*  X values  */ 
  914.         {  12,   3,   3,  12 }         /*  Y values  */
  915. };
  916. USHORT c2[2][4] = {
  917. /*         R    G    B    Y                          */
  918.     {  92,  92,  83,  83 },        /*  X values  */ 
  919.         {  17,   6,   6,  17 }         /*  Y values  */
  920. };
  921. USHORT in[2][4] = {
  922. /*         R    G    B    Y                          */
  923.     { 113, 113, 104, 104 },        /*  X values  */ 
  924.         {  12,   3,   3,  12 }         /*  Y values  */
  925. };
  926. USHORT il[2][4] = {
  927. /*         R    G    B    Y                          */
  928.     { 134, 134, 125, 125 },        /*  X values  */ 
  929.         {  12,   3,   3,  12 }         /*  Y values  */
  930. };
  931. USHORT rrb[2][4] = {
  932. /*         R    G    B    Y                          */
  933.     { 164, 164, 148, 148 },        /*  X values  */ 
  934.         {  17,   4,   4,  17 }         /*  Y values  */
  935. };
  936. USHORT at[2][4] = {
  937. /*         R    G    B    Y                          */
  938.     { 188, 188, 179, 179 },        /*  X values  */ 
  939.         {  12,   3,   3,  12 }         /*  Y values  */
  940. };
  941. USHORT ven[2][4] = {
  942. /*         R    G    B    Y                          */
  943.     { 209, 209, 200, 200 },        /*  X values  */ 
  944.         {  12,   3,   3,  12 }         /*  Y values  */
  945. };
  946. USHORT ww[2][4] = {
  947. /*         R    G    B    Y                          */
  948.     { 231, 231, 221, 221 },        /*  X values  */ 
  949.         {  16,   6,   6,  16 }         /*  Y values  */
  950. };
  951. USHORT mar[2][4] = {
  952. /*         R    G    B    Y                          */
  953.     { 252, 252, 243, 243 },        /*  X values  */ 
  954.         {  12,   3,   3,  12 }         /*  Y values  */
  955. };
  956. USHORT gtj[2][4] = {
  957. /*         R    G    B    Y                          */
  958.     { 283, 283, 267, 267 },        /*  X values  */ 
  959.         {  16,   6,   6,  16 }         /*  Y values  */
  960. };
  961. USHORT pac[2][4] = {
  962. /*         R    G    B    Y                          */
  963.     { 281, 287, 269, 275 },        /*  X values  */ 
  964.         {  29,  34,  29,  34 }         /*  Y values  */
  965. };
  966. USHORT nc[2][4] = {
  967. /*         R    G    B    Y                          */
  968.     { 281, 287, 267, 275 },        /*  X values  */ 
  969.         {  44,  49,  44,  49 }         /*  Y values  */
  970. };
  971. USHORT cc3[2][4] = {
  972. /*         R    G    B    Y                          */
  973.     { 277, 284, 263, 270 },        /*  X values  */ 
  974.         {  59,  64,  59,  64 }         /*  Y values  */
  975. };
  976. USHORT pen[2][4] = {
  977. /*         R    G    B    Y                          */
  978.     { 281, 287, 269, 275 },        /*  X values  */ 
  979.         {  74,  79,  74,  79 }         /*  Y values  */
  980. };
  981. USHORT rrs[2][4] = {
  982. /*         R    G    B    Y                          */
  983.     { 283, 283, 265, 265 },        /*  X values  */ 
  984.         {  92, 102,  92, 102 }         /*  Y values  */
  985. };
  986. USHORT c3[2][4] = {
  987. /*         R    G    B    Y                          */
  988.     { 278, 285, 263, 271 },        /*  X values  */ 
  989.         { 114, 119, 114, 119 }         /*  Y values  */
  990. };
  991. USHORT pp[2][4] = {
  992. /*         R    G    B    Y                          */
  993.     { 281, 287, 269, 275 },        /*  X values  */ 
  994.         { 129, 134, 129, 134 }         /*  Y values  */
  995. };
  996. USHORT ptax[2][4] = {
  997. /*         R    G    B    Y                          */
  998.     { 278, 285, 263, 270 },        /*  X values  */ 
  999.         { 145, 149, 145, 149 }         /*  Y values  */
  1000. };
  1001. USHORT bw[2][4] = {
  1002. /*         R    G    B    Y                          */
  1003.     { 281, 287, 269, 275 },        /*  X values  */ 
  1004.         { 159, 164, 159, 164 }         /*  Y values  */
  1005. };
  1006.  
  1007. USHORT injail[2][4] = {
  1008. /*         R    G    B    Y                          */
  1009.     {  38,  50,  38,  50 },        /*  X values  */ 
  1010.         { 174, 174, 183, 183 }         /*  Y values  */
  1011. };
  1012.  
  1013. struct Menu    Menu0,      /*  PROJECT         */
  1014.                Menu1,      /*  TRANSACTIONS    */
  1015.                Menu2,      /*  DEALS           */
  1016.                Menu3,      /*  ROLL            */
  1017.                Menu4,      /*  DIRECTIONS      */
  1018.            Menu5,      /*  TRANSACT-PROPS  */
  1019.                Menu6,      /*  PROP-TRANSACTIONS  */
  1020.            Menu7,      /*  PROP-DEALS       */
  1021.                Menu8,      /*  LISTPROP.page    */
  1022.            Menu9,      /*  LISTPROP.prop    */
  1023.            Menu10,     /*  OD-TRANSACTIONS  */
  1024.            Menu11,     /*  OD-DEALS  */
  1025.            Menu12,     /*  AUCTION  player name*/
  1026.            Menu13,     /*  OFFER-BUY.buyer  */
  1027.            Menu14,     /*  OFFER-BUY.assets  */
  1028.            Menu15,     /*  OFFER-SELL.to_whom  */
  1029.            Menu16;     /*  AUCTION  info     */
  1030.            
  1031. struct MenuItem    Menu0Item0,   /*  Change Token Colors   */
  1032.                    Menu0Item1,   /*  New Game              */
  1033.                    Menu0Item2,   /*  Old Game              */
  1034.                    Menu0Item3,   /*  Save Game             */
  1035.                    Menu0Item4,   /*  QUIT                  */
  1036.  
  1037.                    Menu1Item0,   /*  Build House        */
  1038.               Menu1Item0Sub0,  /*  player names  */
  1039.               Menu1Item0Sub1,  /*  player names  */
  1040.               Menu1Item0Sub2,  /*  player names  */
  1041.               Menu1Item0Sub3,  /*  player names  */
  1042.                    Menu1Item1,   /*  Sell House         */
  1043.                       Menu1Item1Sub0,  /*  player names  */
  1044.               Menu1Item1Sub1,  /*  player names  */
  1045.               Menu1Item1Sub2,  /*  player names  */
  1046.               Menu1Item1Sub3,  /*  player names  */
  1047.                    Menu1Item2,   /*  Mortgage Property  */
  1048.                       Menu1Item2Sub0,  /*  player names  */
  1049.               Menu1Item2Sub1,  /*  player names  */
  1050.               Menu1Item2Sub2,  /*  player names  */
  1051.               Menu1Item2Sub3,  /*  player names  */
  1052.                    Menu1Item3,   /*  Lift Mortgage      */
  1053.                       Menu1Item3Sub0,  /*  player names  */
  1054.               Menu1Item3Sub1,  /*  player names  */
  1055.               Menu1Item3Sub2,  /*  player names  */
  1056.               Menu1Item3Sub3,  /*  player names  */
  1057.                    Menu1Item4,   /*  Review Property    */
  1058.                    Menu1Item5,   /*  View Title Deeds   */
  1059.                    Menu2Item0,   /*  Offer To Sell    */
  1060.                    Menu2Item1,   /*  Offer To Buy     */
  1061.                    Menu2Item2,   /*  Offer To Trade   */
  1062.                    Menu2Item3,   /*  Examine Bankroll */
  1063.                       Menu2Item3Sub0,   /*  player 1  */
  1064.                       Menu2Item3Sub1,   /*  player 2  */
  1065.                       Menu2Item3Sub2,   /*  player 3  */
  1066.                       Menu2Item3Sub3,   /*  player 4  */
  1067.  
  1068.                    Menu3Item0,   /*  Roll Dice              */
  1069.                    Menu3Item1,   /*  Use Get Out Free Card  */
  1070.                    Menu3Item2,   /*  Try To Roll Doubles    */
  1071.            Menu3Item3,   /*  Pay $50                */
  1072.  
  1073.                    Menu4Item0,   /*  Next Page  */
  1074.                    Menu4Item1,   /*  Previous Page  */
  1075.            Menu4Item2,   /*  Leave Instructions  */
  1076.            Menu5Item0,          /*  PURPLE  */
  1077.               Menu5Item0Sub0,   /*  MEDITERRANIAN  */              
  1078.               Menu5Item0Sub1,   /*  BALTIC      */          
  1079.            Menu5Item1,          /*  LT_BLUE  */
  1080.               Menu5Item1Sub0,   /*  ORIENTAL  */              
  1081.               Menu5Item1Sub1,   /*  VERMONT      */          
  1082.               Menu5Item1Sub2,   /*  CONNECTICUT      */          
  1083.            Menu5Item2,          /*  MAROON  */
  1084.               Menu5Item2Sub0,   /*  ST. CHARLES  */              
  1085.               Menu5Item2Sub1,   /*  STATES      */          
  1086.               Menu5Item2Sub2,   /*  VIRGINIA      */          
  1087.            Menu5Item3,          /*  ORANGE  */
  1088.               Menu5Item3Sub0,   /*  ST. JAMES  */              
  1089.               Menu5Item3Sub1,   /*  TENNESSEE      */          
  1090.               Menu5Item3Sub2,   /*  NEW YORK      */          
  1091.            Menu5Item4,          /*  RED  */
  1092.               Menu5Item4Sub0,   /*  KENTUCKY  */              
  1093.               Menu5Item4Sub1,   /*  INDIANA      */          
  1094.               Menu5Item4Sub2,   /*  ILLINOIS      */          
  1095.            Menu5Item5,          /*  YELLOW  */
  1096.               Menu5Item5Sub0,   /*  ATLANTIC  */              
  1097.               Menu5Item5Sub1,   /*  VENTNOR      */          
  1098.               Menu5Item5Sub2,   /*  MARVIN  */
  1099.            Menu5Item6,          /*  GREEN  */
  1100.               Menu5Item6Sub0,   /*  PACIFIC  */              
  1101.               Menu5Item6Sub1,   /*  NORTH CAROLINA      */          
  1102.               Menu5Item6Sub2,   /*  PENNSYLVANIA  */
  1103.            Menu5Item7,          /*  DK_BLUE  */
  1104.               Menu5Item7Sub0,   /*  PARK PLACE  */              
  1105.               Menu5Item7Sub1,   /*  BOARDWALK      */          
  1106.            Menu5Item8,          /*  RAILROADS  */
  1107.               Menu5Item8Sub0,    /*  READING      */          
  1108.               Menu5Item8Sub1,    /*  PENNSYLVANIA  */              
  1109.               Menu5Item8Sub2,    /*  B. & O.  */
  1110.               Menu5Item8Sub3,    /*  SHORT LINE  */
  1111.            Menu5Item9,          /*  UTILITIES  */
  1112.               Menu5Item9Sub0,    /*  ELECTRIC CO.  */              
  1113.               Menu5Item9Sub1,    /*  WATER WORKS      */
  1114.            Menu6Item0,    /*  BUILD HOUSE  */
  1115.                       Menu6Item0Sub0,  /*  player names  */
  1116.               Menu6Item0Sub1,  /*  player names  */
  1117.               Menu6Item0Sub2,  /*  player names  */
  1118.               Menu6Item0Sub3,  /*  player names  */          
  1119.            Menu6Item1,    /*  SELL HOUSE  */
  1120.                       Menu6Item1Sub0,  /*  player names  */
  1121.               Menu6Item1Sub1,  /*  player names  */
  1122.               Menu6Item1Sub2,  /*  player names  */
  1123.               Menu6Item1Sub3,  /*  player names  */          
  1124.            Menu6Item2,    /*  MORTGAGE PROP  */     
  1125.                       Menu6Item2Sub0,  /*  player names  */
  1126.               Menu6Item2Sub1,  /*  player names  */
  1127.               Menu6Item2Sub2,  /*  player names  */
  1128.               Menu6Item2Sub3,  /*  player names  */     
  1129.            Menu6Item3,    /*  LIFT MORTGAGE  */     
  1130.                       Menu6Item3Sub0,  /*  player names  */
  1131.               Menu6Item3Sub1,  /*  player names  */
  1132.               Menu6Item3Sub2,  /*  player names  */
  1133.               Menu6Item3Sub3,  /*  player names  */     
  1134.            Menu6Item4,    /*  REVIEW PROP  */          
  1135.            Menu6Item5,    /*  VIEW TITLES  */
  1136.            Menu7Item0,    /*  OFFER SELL  */          
  1137.            Menu7Item1,    /*  OFFER BUY  */          
  1138.            Menu7Item2,    /*  OFFER TRADE  */          
  1139.            Menu7Item3,    /*  EXAMINE BANKROLL  */
  1140.               Menu7Item3Sub0,    /*   who's?     */               
  1141.               Menu7Item3Sub1,    /*   who's?     */               
  1142.               Menu7Item3Sub2,    /*   who's?     */               
  1143.               Menu7Item3Sub3,    /*   who's?     */               
  1144.                    Menu8Item0,   /*  Next Page  */
  1145.                    Menu8Item1,   /*  Previous Page  */
  1146.            Menu8Item2,   /*  Leave Instructions  */
  1147.            Menu8Item3,   /*  EXAMINE BANKROLL  */ 
  1148.               Menu8Item3Sub0,    /*   who's?     */               
  1149.               Menu8Item3Sub1,    /*   who's?     */               
  1150.               Menu8Item3Sub2,    /*   who's?     */               
  1151.               Menu8Item3Sub3,    /*   who's?     */           
  1152.            Menu9Item0,          /*  PURPLE  */
  1153.               Menu9Item0Sub0,   /*  MEDITERRANIAN  */              
  1154.               Menu9Item0Sub1,   /*  BALTIC      */          
  1155.            Menu9Item1,          /*  LT_BLUE  */
  1156.               Menu9Item1Sub0,   /*  ORIENTAL  */              
  1157.               Menu9Item1Sub1,   /*  VERMONT      */          
  1158.               Menu9Item1Sub2,   /*  CONNECTICUT      */          
  1159.            Menu9Item2,          /*  MAROON  */
  1160.               Menu9Item2Sub0,   /*  ST. CHARLES  */              
  1161.               Menu9Item2Sub1,   /*  STATES      */          
  1162.               Menu9Item2Sub2,   /*  VIRGINIA      */          
  1163.            Menu9Item3,          /*  ORANGE  */
  1164.               Menu9Item3Sub0,   /*  ST. JAMES  */              
  1165.               Menu9Item3Sub1,   /*  TENNESSEE      */          
  1166.               Menu9Item3Sub2,   /*  NEW YORK      */          
  1167.            Menu9Item4,          /*  RED  */
  1168.               Menu9Item4Sub0,   /*  KENTUCKY  */              
  1169.               Menu9Item4Sub1,   /*  INDIANA      */          
  1170.               Menu9Item4Sub2,   /*  ILLINOIS      */          
  1171.            Menu9Item5,          /*  YELLOW  */
  1172.               Menu9Item5Sub0,   /*  ATLANTIC  */              
  1173.               Menu9Item5Sub1,   /*  VENTNOR      */          
  1174.               Menu9Item5Sub2,   /*  MARVIN  */
  1175.            Menu9Item6,          /*  GREEN  */
  1176.               Menu9Item6Sub0,   /*  PACIFIC  */              
  1177.               Menu9Item6Sub1,   /*  NORTH CAROLINA      */          
  1178.               Menu9Item6Sub2,   /*  PENNSYLVANIA  */
  1179.            Menu9Item7,          /*  DK_BLUE  */
  1180.               Menu9Item7Sub0,   /*  PARK PLACE  */              
  1181.               Menu9Item7Sub1,   /*  BOARDWALK      */          
  1182.            Menu9Item8,          /*  RAILROADS  */
  1183.               Menu9Item8Sub0,    /*  READING      */          
  1184.               Menu9Item8Sub1,    /*  PENNSYLVANIA  */              
  1185.               Menu9Item8Sub2,    /*  B. & O.  */
  1186.               Menu9Item8Sub3,    /*  SHORT LINE  */
  1187.            Menu9Item9,          /*  UTILITIES  */
  1188.               Menu9Item9Sub0,    /*  ELECTRIC CO.  */              
  1189.               Menu9Item9Sub1,    /*  WATER WORKS      */
  1190.                    Menu10Item0,    /*  BUILD HOUSE  */
  1191.                       Menu10Item0Sub0,  /*  player names  */
  1192.               Menu10Item0Sub1,  /*  player names  */
  1193.               Menu10Item0Sub2,  /*  player names  */
  1194.               Menu10Item0Sub3,  /*  player names  */
  1195.            Menu10Item1,    /*  SELL HOUSE  */
  1196.                       Menu10Item1Sub0,  /*  player names  */
  1197.               Menu10Item1Sub1,  /*  player names  */
  1198.               Menu10Item1Sub2,  /*  player names  */
  1199.               Menu10Item1Sub3,  /*  player names  */          
  1200.            Menu10Item2,    /*  MORTGAGE PROP  */
  1201.                       Menu10Item2Sub0,  /*  player names  */
  1202.               Menu10Item2Sub1,  /*  player names  */
  1203.               Menu10Item2Sub2,  /*  player names  */
  1204.               Menu10Item2Sub3,  /*  player names  */          
  1205.            Menu10Item3,    /*  LIFT MORTGAGE  */
  1206.                       Menu10Item3Sub0,  /*  player names  */
  1207.               Menu10Item3Sub1,  /*  player names  */
  1208.               Menu10Item3Sub2,  /*  player names  */
  1209.               Menu10Item3Sub3,  /*  player names  */          
  1210.            Menu10Item4,    /*  REVIEW PROP  */          
  1211.            Menu10Item5,    /*  VIEW TITLES  */
  1212.            Menu11Item0,    /*  OFFER SELL  */          
  1213.            Menu11Item1,    /*  OFFER BUY  */          
  1214.            Menu11Item2,    /*  OFFER TRADE  */          
  1215.            Menu11Item3,    /*  EXAMINE BANKROLL  */
  1216.               Menu11Item3Sub0,    /*   who's?     */               
  1217.               Menu11Item3Sub1,    /*   who's?     */               
  1218.               Menu11Item3Sub2,    /*   who's?     */               
  1219.               Menu11Item3Sub3,    /*   who's?     */
  1220.            Menu12Item0,        /*   player     */
  1221.            Menu12Item1,        /*   with       */
  1222.                Menu12Item2,        /*   highest    */ 
  1223.            Menu12Item3,        /*   bid        */
  1224.            Menu13Item0,        /*   OFFER-BUY  player 0    */
  1225.            Menu13Item1,        /*   player 1       */
  1226.                Menu13Item2,        /*   player 2    */ 
  1227.            Menu13Item3,        /*   player 3        */
  1228.            Menu14Item0,          /*  OFFER-BUY  -- PURPLE  */
  1229.               Menu14Item0Sub0,   /*  MEDITERRANIAN  */              
  1230.               Menu14Item0Sub1,   /*  BALTIC      */          
  1231.            Menu14Item1,          /*  LT_BLUE  */
  1232.               Menu14Item1Sub0,   /*  ORIENTAL  */              
  1233.               Menu14Item1Sub1,   /*  VERMONT      */          
  1234.               Menu14Item1Sub2,   /*  CONNECTICUT      */          
  1235.            Menu14Item2,          /*  MAROON  */
  1236.               Menu14Item2Sub0,   /*  ST. CHARLES  */              
  1237.               Menu14Item2Sub1,   /*  STATES      */          
  1238.               Menu14Item2Sub2,   /*  VIRGINIA      */          
  1239.            Menu14Item3,          /*  ORANGE  */
  1240.               Menu14Item3Sub0,   /*  ST. JAMES  */              
  1241.               Menu14Item3Sub1,   /*  TENNESSEE      */          
  1242.               Menu14Item3Sub2,   /*  NEW YORK      */          
  1243.            Menu14Item4,          /*  RED  */
  1244.               Menu14Item4Sub0,   /*  KENTUCKY  */              
  1245.               Menu14Item4Sub1,   /*  INDIANA      */          
  1246.               Menu14Item4Sub2,   /*  ILLINOIS      */          
  1247.            Menu14Item5,          /*  YELLOW  */
  1248.               Menu14Item5Sub0,   /*  ATLANTIC  */              
  1249.               Menu14Item5Sub1,   /*  VENTNOR      */          
  1250.               Menu14Item5Sub2,   /*  MARVIN  */
  1251.            Menu14Item6,          /*  GREEN  */
  1252.               Menu14Item6Sub0,   /*  PACIFIC  */              
  1253.               Menu14Item6Sub1,   /*  NORTH CAROLINA      */          
  1254.               Menu14Item6Sub2,   /*  PENNSYLVANIA  */
  1255.            Menu14Item7,          /*  DK_BLUE  */
  1256.               Menu14Item7Sub0,   /*  PARK PLACE  */              
  1257.               Menu14Item7Sub1,   /*  BOARDWALK      */          
  1258.            Menu14Item8,          /*  RAILROADS  */
  1259.               Menu14Item8Sub0,    /*  READING      */          
  1260.               Menu14Item8Sub1,    /*  PENNSYLVANIA  */              
  1261.               Menu14Item8Sub2,    /*  B. & O.  */
  1262.               Menu14Item8Sub3,    /*  SHORT LINE  */
  1263.            Menu14Item9,          /*  UTILITIES  */
  1264.               Menu14Item9Sub0,    /*  ELECTRIC CO.  */              
  1265.               Menu14Item9Sub1,    /*  WATER WORKS      */
  1266.                    Menu14Item10,          /*  GET-OUT-JAIL-FREE   */
  1267.            Menu15Item0,          /* player name   */              
  1268.            Menu15Item1,           /* player name   */              
  1269.            Menu15Item2,           /* player name   */              
  1270.            Menu15Item3,           /* player name   */
  1271.            Menu16Item0,           /* review prop   */
  1272.            Menu16Item1,           /* title deeds   */               
  1273.            Menu16Item2,           /* bankroll      */ 
  1274.            Menu16Item2Sub0,
  1275.            Menu16Item2Sub1,
  1276.            Menu16Item2Sub2,
  1277.            Menu16Item2Sub3;
  1278.            
  1279.    
  1280.    struct IntuiText  M0I0_text,  M0I1_text, M0I2_text, M0I3_text, M0I4_text,
  1281.                      M1I0_text, M1I0S0_text, M1I0S1_text, M1I0S2_text, 
  1282.              M1I0S3_text,
  1283.              M1I1_text, M1I1S0_text, M1I1S1_text, M1I1S2_text, 
  1284.              M1I1S3_text,
  1285.              M1I2_text, M1I2S0_text, M1I2S1_text, M1I2S2_text, 
  1286.              M1I2S3_text,
  1287.              M1I3_text, M1I3S0_text, M1I3S1_text, M1I3S2_text, 
  1288.              M1I3S3_text,
  1289.              M1I4_text, M1I5_text,
  1290.                      M2I0_text, M2I1_text, M2I2_text, M2I3_text,
  1291.              M2I3S0_text, M2I3S1_text, M2I3S2_text, M2I3S3_text,
  1292.                      M3I0_text, M3I1_text, M3I2_text, M3I3_text,
  1293.                      M4I0_text, M4I1_text, M4I2_text,
  1294.              M5I0_text, M5I0S0_text, M5I0S1_text,
  1295.              M5I1_text, M5I1S0_text, M5I1S1_text, M5I1S2_text,
  1296.              M5I2_text, M5I2S0_text, M5I2S1_text, M5I2S2_text,
  1297.              M5I3_text, M5I3S0_text, M5I3S1_text, M5I3S2_text,
  1298.              M5I4_text, M5I4S0_text, M5I4S1_text, M5I4S2_text,
  1299.              M5I5_text, M5I5S0_text, M5I5S1_text, M5I5S2_text,
  1300.              M5I6_text, M5I6S0_text, M5I6S1_text, M5I6S2_text,
  1301.              M5I7_text, M5I7S0_text, M5I7S1_text,
  1302.              M5I8_text, M5I8S0_text, M5I8S1_text, M5I8S2_text, 
  1303.              M5I8S3_text,
  1304.              M5I9_text, M5I9S0_text, M5I9S1_text,
  1305.              M6I0_text, M6I0S0_text, M6I0S1_text, M6I0S2_text, 
  1306.              M6I0S3_text,
  1307.              M6I1_text, M6I1S0_text, M6I1S1_text, M6I1S2_text, 
  1308.              M6I1S3_text,
  1309.              M6I2_text, M6I2S0_text, M6I2S1_text, M6I2S2_text, 
  1310.              M6I2S3_text,
  1311.              M6I3_text, M6I3S0_text, M6I3S1_text, M6I3S2_text, 
  1312.              M6I3S3_text,
  1313.              M6I4_text, M6I5_text,
  1314.              M7I0_text, M7I1_text, M7I2_text, M7I3_text,
  1315.              M7I3S0_text, M7I3S1_text, M7I3S2_text, M7I3S3_text,
  1316.                      M8I0_text, M8I1_text, M8I2_text, M8I3_text,
  1317.              M8I3S0_text, M8I3S1_text, M8I3S2_text, M8I3S3_text,
  1318.              M9I0_text, M9I0S0_text, M9I0S1_text,
  1319.              M9I1_text, M9I1S0_text, M9I1S1_text, M9I1S2_text,
  1320.              M9I2_text, M9I2S0_text, M9I2S1_text, M9I2S2_text,
  1321.              M9I3_text, M9I3S0_text, M9I3S1_text, M9I3S2_text,
  1322.              M9I4_text, M9I4S0_text, M9I4S1_text, M9I4S2_text,
  1323.              M9I5_text, M9I5S0_text, M9I5S1_text, M9I5S2_text,
  1324.              M9I6_text, M9I6S0_text, M9I6S1_text, M9I6S2_text,
  1325.              M9I7_text, M9I7S0_text, M9I7S1_text,
  1326.              M9I8_text, M9I8S0_text, M9I8S1_text, M9I8S2_text, 
  1327.              M9I8S3_text,
  1328.              M9I9_text, M9I9S0_text, M9I9S1_text,
  1329.              M10I0_text, M10I0S0_text, M10I0S1_text, M10I0S2_text, 
  1330.              M10I0S3_text,
  1331.              M10I1_text, M10I1S0_text, M10I1S1_text, M10I1S2_text, 
  1332.              M10I1S3_text, 
  1333.              M10I2_text, M10I2S0_text, M10I2S1_text, M10I2S2_text, 
  1334.              M10I2S3_text,
  1335.                      M10I3_text, M10I3S0_text, M10I3S1_text, M10I3S2_text, 
  1336.              M10I3S3_text,
  1337.              M10I4_text, M10I5_text,
  1338.              M11I0_text, M11I1_text, M11I2_text, M11I3_text,
  1339.              M11I3S0_text, M11I3S1_text, M11I3S2_text, M11I3S3_text,
  1340.              M12I0_text, M12I1_text, M12I2_text, M12I3_text,
  1341.              M13I0_text, M13I1_text, M13I2_text, M13I3_text,
  1342.              M14I0_text, M14I0S0_text, M14I0S1_text,
  1343.              M14I1_text, M14I1S0_text, M14I1S1_text, M14I1S2_text,
  1344.              M14I2_text, M14I2S0_text, M14I2S1_text, M14I2S2_text,
  1345.              M14I3_text, M14I3S0_text, M14I3S1_text, M14I3S2_text,
  1346.              M14I4_text, M14I4S0_text, M14I4S1_text, M14I4S2_text,
  1347.              M14I5_text, M14I5S0_text, M14I5S1_text, M14I5S2_text,
  1348.              M14I6_text, M14I6S0_text, M14I6S1_text, M14I6S2_text,
  1349.              M14I7_text, M14I7S0_text, M14I7S1_text,
  1350.              M14I8_text, M14I8S0_text, M14I8S1_text, M14I8S2_text, 
  1351.              M14I8S3_text,
  1352.              M14I9_text, M14I9S0_text, M14I9S1_text,
  1353.              M14I10_text,
  1354.              M15I0_text, M15I1_text, M15I2_text, M15I3_text,
  1355.              M16I0_text, M16I1_text, M16I2_text,
  1356.              M16I2S0_text, M16I2S1_text, M16I2S2_text, M16I2S3_text,
  1357.                      mesg0, mesg1, mesg2, mesg3, mesg4, mesg5, mesg6,
  1358.                      mesg7, mesg8, mesg9, mesg10;
  1359. /* Structures for new Screen, new Window */
  1360.  
  1361. struct   TextAttr       TextFont = {
  1362.    "topaz.font",                    /* Font Name   */
  1363.    TOPAZ_EIGHTY,                    /* Font Height */
  1364.    FS_NORMAL,                       /* Style       */
  1365.    FPF_ROMFONT,                     /* Preferences */
  1366.    };
  1367.  
  1368. struct   NewScreen      ns = {
  1369.    0, 0,                                  /* LeftEdge and TopEdge   */
  1370.    0, 0,                                  /* Width and Height       */
  1371.    0,                                     /* Depth                  */
  1372.    red, lt_blue,                          /* DetailPen and BlockPen */
  1373.    NULL,                                  /* Special display modes  */
  1374.    CUSTOMSCREEN,                          /* Screen Type            */
  1375.    &TextFont,                             /* Use my font            */
  1376.    NULL,                                  /* Title                  */
  1377.    NULL,                                  /* No gadgets yet         */
  1378.    NULL,                                  /* Ptr to CustomBitmap    */
  1379.    };
  1380.  
  1381. struct NewWindow nwhodow = {
  1382.    63, 29,                       /*  Left, Top      */
  1383.    194, 143,                    /*  Width, Height     */ 
  1384.    white, black,                /*  detail, block pens */
  1385.    RAWKEY,                                    /*  IDCMP Flags      */
  1386.    ACTIVATE | SMART_REFRESH | BORDERLESS ,  /*  flags         */
  1387.    NULL,                         /*  & first gadget     */
  1388.    NULL,                         /*  CheckMark       */ 
  1389.    NULL,                    /*  Title          */
  1390.    NULL,                      /*  Screen          */  
  1391.    NULL,                         /*  Custom BitMap     */
  1392.    0, 0,                    /*  Minimums     */ 
  1393.    0, 0,                     /*  Maximums     */
  1394.    CUSTOMSCREEN,                /*  screentype     */
  1395. };
  1396.  
  1397. struct NewWindow nreviewpropw = {
  1398.    0, 0,                         /*  Left, Top      */
  1399.    320, 200,                    /*  Width, Height     */ 
  1400.    dk_blue, red,                       /*  detail, block pens */
  1401.    GADGETUP | CLOSEWINDOW | RAWKEY,                  /*  IDCMP Flags      */
  1402.    ACTIVATE | SMART_REFRESH | WINDOWCLOSE,  /*  flags         */
  1403.    &nextpagegag,                  /*   & first gadget     */
  1404.    NULL,                         /*  CheckMark       */ 
  1405.    "PROPERTY    HOUSES MORTGAGED?  OWNER",  /*  Title  */
  1406.    NULL,                      /*  Screen          */  
  1407.    NULL,                         /*  Custom BitMap     */
  1408.    0, 0,                    /*  Minimums     */ 
  1409.    0, 0,                     /*  Maximums     */
  1410.    CUSTOMSCREEN,                /*  screentype     */
  1411. };
  1412. struct NewWindow nofferbw = {
  1413.    63, 29,                       /*  Left, Top      */
  1414.    194, 143,                    /*  Width, Height     */ 
  1415.    white, black,                /*  detail, block pens */
  1416.    RAWKEY,                                    /*  IDCMP Flags      */
  1417.    ACTIVATE | SMART_REFRESH | BORDERLESS ,  /*  flags         */
  1418.    NULL,                         /*  & first gadget     */
  1419.    NULL,                         /*  CheckMark       */ 
  1420.    NULL,                    /*  Title          */
  1421.    NULL,                      /*  Screen          */  
  1422.    NULL,                         /*  Custom BitMap     */
  1423.    0, 0,                    /*  Minimums     */ 
  1424.    0, 0,                     /*  Maximums     */
  1425.    CUSTOMSCREEN,                /*  screentype     */
  1426. };
  1427.  
  1428. struct NewWindow noffersw = {
  1429.    63, 29,                       /*  Left, Top      */
  1430.    194, 143,                    /*  Width, Height     */ 
  1431.    white, black,                /*  detail, block pens */
  1432.    RAWKEY,                                    /*  IDCMP Flags      */
  1433.    ACTIVATE | SMART_REFRESH | BORDERLESS ,  /*  flags         */
  1434.    NULL,                         /*  & first gadget     */
  1435.    NULL,                         /*  CheckMark       */ 
  1436.    NULL,                    /*  Title          */
  1437.    NULL,                      /*  Screen          */  
  1438.    NULL,                         /*  Custom BitMap     */
  1439.    0, 0,                    /*  Minimums     */ 
  1440.    0, 0,                     /*  Maximums     */
  1441.    CUSTOMSCREEN,                /*  screentype     */
  1442. };
  1443.  
  1444. struct NewWindow noffertw = {
  1445.    63, 29,                       /*  Left, Top      */
  1446.    194, 143,                    /*  Width, Height     */ 
  1447.    white, black,                /*  detail, block pens */
  1448.    RAWKEY,                                    /*  IDCMP Flags      */
  1449.    ACTIVATE | SMART_REFRESH | BORDERLESS ,  /*  flags         */
  1450.    NULL,                         /*  & first gadget     */
  1451.    NULL,                         /*  CheckMark       */ 
  1452.    NULL,                    /*  Title          */
  1453.    NULL,                      /*  Screen          */  
  1454.    NULL,                         /*  Custom BitMap     */
  1455.    0, 0,                    /*  Minimums     */ 
  1456.    0, 0,                     /*  Maximums     */
  1457.    CUSTOMSCREEN,                /*  screentype     */
  1458. };
  1459.  
  1460. struct NewWindow nauctionw = {
  1461.    63, 29,                       /*  Left, Top      */
  1462.    194, 143,                    /*  Width, Height     */ 
  1463.    white, black,                /*  detail, block pens */
  1464.    RAWKEY,                                    /*  IDCMP Flags      */
  1465.    ACTIVATE | SMART_REFRESH | BORDERLESS ,  /*  flags         */
  1466.    NULL,                         /*  & first gadget     */
  1467.    NULL,                         /*  CheckMark       */ 
  1468.    NULL,                    /*  Title          */
  1469.    NULL,                      /*  Screen          */  
  1470.    NULL,                         /*  Custom BitMap     */
  1471.    0, 0,                    /*  Minimums     */ 
  1472.    0, 0,                     /*  Maximums     */
  1473.    CUSTOMSCREEN,                /*  screentype     */
  1474. };
  1475.  
  1476. struct NewWindow ntenpercentw = {
  1477.    63, 29,                       /*  Left, Top      */
  1478.    194, 143,                    /*  Width, Height     */ 
  1479.    white, black,                /*  detail, block pens */
  1480.    GADGETUP | RAWKEY,                                /*  IDCMP Flags      */
  1481.    ACTIVATE | SMART_REFRESH | BORDERLESS ,  /*  flags         */
  1482.    NULL,                         /*  & first gadget     */
  1483.    NULL,                         /*  CheckMark       */ 
  1484.    NULL,                    /*  Title          */
  1485.    NULL,                      /*  Screen          */  
  1486.    NULL,                         /*  Custom BitMap     */
  1487.    0, 0,                    /*  Minimums     */ 
  1488.    0, 0,                     /*  Maximums     */
  1489.    CUSTOMSCREEN,                /*  screentype     */
  1490. };
  1491.  
  1492. struct NewWindow noverdrawnw = {
  1493.    63, 29,                       /*  Left, Top      */
  1494.    194, 143,                    /*  Width, Height     */ 
  1495.    white, black,                /*  detail, block pens */
  1496.    MENUPICK | CLOSEWINDOW | RAWKEY,                  /*  IDCMP Flags      */
  1497.    ACTIVATE | SMART_REFRESH | BORDERLESS |
  1498.       WINDOWCLOSE,                          /*  flags         */
  1499.    NULL,                         /*  & first gadget     */
  1500.    NULL,                         /*  CheckMark       */ 
  1501.    NULL,                    /*  Title          */
  1502.    NULL,                      /*  Screen          */  
  1503.    NULL,                         /*  Custom BitMap     */
  1504.    0, 0,                    /*  Minimums     */ 
  1505.    0, 0,                     /*  Maximums     */
  1506.    CUSTOMSCREEN,                /*  screentype     */
  1507. };
  1508.  
  1509. struct NewWindow nmoneybagw = {
  1510.    0, 0,                        /*  Left, Top      */
  1511.    194, 35,                    /*  Width, Height     */ 
  1512.    brite_green, red,                   /*  detail, block pens */
  1513.    CLOSEWINDOW | RAWKEY,                    /*  IDCMP Flags      */
  1514.    ACTIVATE | SMART_REFRESH | WINDOWDRAG |
  1515.    WINDOWCLOSE,                             /*  flags         */
  1516.    NULL,                         /*  & first gadget     */
  1517.    NULL,                         /*  CheckMark       */ 
  1518.    (UBYTE *)"YOUR CASH",            /*  Title          */
  1519.    NULL,                      /*  Screen          */  
  1520.    NULL,                         /*  Custom BitMap     */
  1521.    0, 0,                    /*  Minimums     */ 
  1522.    0, 0,                     /*  Maximums     */
  1523.    CUSTOMSCREEN,                /*  screentype     */
  1524. };
  1525.  
  1526. struct NewWindow nlistpropw = {
  1527.    63, 29,                       /*  Left, Top      */
  1528.    194, 143,                    /*  Width, Height     */ 
  1529.    white, black,                /*  detail, block pens */
  1530.    MENUPICK | RAWKEY,                                /*  IDCMP Flags      */
  1531.    ACTIVATE | SMART_REFRESH | BORDERLESS,   /*  flags         */
  1532.    NULL,                         /*  & first gadget     */
  1533.    NULL,                         /*  CheckMark       */ 
  1534.    NULL,                    /*  Title          */
  1535.    NULL,                      /*  Screen          */  
  1536.    NULL,                         /*  Custom BitMap     */
  1537.    0, 0,                    /*  Minimums     */ 
  1538.    0, 0,                     /*  Maximums     */
  1539.    CUSTOMSCREEN,                /*  screentype     */
  1540. };
  1541.  
  1542. struct NewWindow ntransactw = {
  1543.    63, 29,                       /*  Left, Top      */
  1544.    194, 143,                    /*  Width, Height     */ 
  1545.    white, black,                /*  detail, block pens */
  1546.    GADGETUP | MOUSEBUTTONS |                /*  IDCMP Flags      */
  1547.    RAWKEY | MENUPICK,                       /*  IDCMP Flags      */
  1548.    ACTIVATE | SMART_REFRESH | BORDERLESS,   /*  flags         */
  1549.    &continuegag,                  /*  & first gadget     */
  1550.    NULL,                         /*  CheckMark       */ 
  1551.    NULL,                    /*  Title          */
  1552.    NULL,                      /*  Screen          */  
  1553.    NULL,                         /*  Custom BitMap     */
  1554.    0, 0,                    /*  Minimums     */ 
  1555.    0, 0,                     /*  Maximums     */
  1556.    CUSTOMSCREEN,                /*  screentype     */
  1557. };
  1558.  
  1559. struct NewWindow ninfow = {
  1560.    0, 0,                               /*  Left, Top      */
  1561.    320, 200,                    /*  Width, Height     */ 
  1562.    0, 4,                    /*  detail, block pens */
  1563.    GADGETDOWN | RAWKEY,                              /*  IDCMP          */
  1564.    ACTIVATE | SMART_REFRESH,                /*   flags         */
  1565.    NULL,                      /*   & first gadget     */
  1566.    NULL,                         /*  CheckMark       */ 
  1567.    NULL,                    /*  Title          */
  1568.    NULL,                      /*  Screen          */  
  1569.    NULL,                         /*  Custom BitMap     */
  1570.    0, 0,                    /*  Minimums     */ 
  1571.    0, 0,                     /*  Maximums     */
  1572.    CUSTOMSCREEN,                /*  screentype     */
  1573. };
  1574.  
  1575. struct NewWindow npropinfow = {
  1576.    63, 29,                               /*  Left, Top      */
  1577.    194, 143,                    /*  Width, Height     */ 
  1578.    white, black,                /*  detail, block pens */
  1579.    GADGETUP | MENUPICK | RAWKEY,                                /*  IDCMP          */
  1580.    ACTIVATE | BORDERLESS,                   /*   flags         */
  1581.    NULL,                      /*   & first gadget     */
  1582.    NULL,                         /*  CheckMark       */ 
  1583.    NULL,                    /*  Title          */
  1584.    NULL,                      /*  Screen          */  
  1585.    NULL,                         /*  Custom BitMap     */
  1586.    0, 0,                    /*  Minimums     */ 
  1587.    0, 0,                     /*  Maximums     */
  1588.    CUSTOMSCREEN,                /*  screentype     */
  1589. };
  1590.  
  1591. struct NewWindow nchancew = {
  1592.    0, 0,                               /*  Left, Top      */
  1593.    320, 200,                    /*  Width, Height     */ 
  1594.    0, 4,                    /*  detail, block pens */
  1595.    GADGETDOWN | RAWKEY,                              /*  IDCMP          */
  1596.    ACTIVATE | SMART_REFRESH,                /*   flags         */
  1597.    NULL,                      /*   & first gadget     */
  1598.    NULL,                         /*  CheckMark       */ 
  1599.    NULL,                    /*  Title          */
  1600.    NULL,                      /*  Screen          */  
  1601.    NULL,                         /*  Custom BitMap     */
  1602.    0, 0,                    /*  Minimums     */ 
  1603.    0, 0,                     /*  Maximums     */
  1604.    CUSTOMSCREEN,                /*  screentype     */
  1605. };
  1606.  
  1607. struct NewWindow ngow = {
  1608.    0, 0,                               /*  Left, Top      */
  1609.    320, 200,                    /*  Width, Height     */ 
  1610.    0, 4,                    /*  detail, block pens */
  1611.    GADGETDOWN | RAWKEY,                              /*  IDCMP          */
  1612.    ACTIVATE | SMART_REFRESH,                /*   flags         */
  1613.    NULL,                      /*   & first gadget     */
  1614.    NULL,                         /*  CheckMark       */ 
  1615.    NULL,                    /*  Title          */
  1616.    NULL,                      /*  Screen          */  
  1617.    NULL,                         /*  Custom BitMap     */
  1618.    0, 0,                    /*  Minimums     */ 
  1619.    0, 0,                     /*  Maximums     */
  1620.    CUSTOMSCREEN,                /*  screentype     */
  1621. };
  1622.  
  1623. struct NewWindow nchestw = {
  1624.    0, 0,                               /*  Left, Top      */
  1625.    320, 200,                    /*  Width, Height     */ 
  1626.    0, 4,                    /*  detail, block pens */
  1627.    GADGETDOWN | RAWKEY,                              /*  IDCMP          */
  1628.    ACTIVATE | SMART_REFRESH,                /*   flags         */
  1629.    NULL,                      /*   & first gadget     */
  1630.    NULL,                         /*  CheckMark       */ 
  1631.    NULL,                    /*  Title          */
  1632.    NULL,                      /*  Screen          */  
  1633.    NULL,                         /*  Custom BitMap     */
  1634.    0, 0,                    /*  Minimums     */ 
  1635.    0, 0,                     /*  Maximums     */
  1636.    CUSTOMSCREEN,                /*  screentype     */
  1637. };
  1638.  
  1639. struct NewWindow options = {
  1640.  
  1641.    0, 0, 320, 200, purple, yellow,
  1642.    RAWKEY, 
  1643.    NULL,
  1644.    NULL,
  1645.    NULL, NULL,
  1646.    NULL, NULL, 0, 0, 0, 0, CUSTOMSCREEN,
  1647. };
  1648.  
  1649. struct NewWindow wait_LS = {
  1650.  
  1651.    20, 80, 280, 40, purple, black,
  1652.    RAWKEY, 
  1653.    ACTIVATE | SMART_REFRESH,
  1654.    NULL,
  1655.    NULL, 
  1656.    NULL, 
  1657.    NULL, NULL, 0, 0, 0, 0, CUSTOMSCREEN,
  1658. };
  1659.  
  1660. struct   NewWindow      nw = {
  1661.    0, 0,                                   /* LeftEdge and TopEdge */
  1662.    0, 0,                                   /* Width and Height */
  1663.    1, 10,                                  /* DetailPen and BlockPen */
  1664.    GADGETUP | GADGETDOWN | MOUSEBUTTONS |  /* IDCMP Flags        */
  1665.    RAWKEY | MENUPICK,                      /* IDCMP Flags        */        
  1666.    ACTIVATE | BORDERLESS | SMART_REFRESH,  /* Flags */
  1667.    NULL, NULL,                             /* Gadget & Image pointers*/
  1668.    NULL,                                   /* Title string */
  1669.    NULL,                                   /* Put Screen ptr here */
  1670.    NULL,                                   /* SuperBitMap pointer */
  1671.    0, 0,                                   /* MinWidth and MinHeight */
  1672.    0, 0,                                   /* MaxWidth and MaxHeight */
  1673.    CUSTOMSCREEN,                           /* Type of window */
  1674.    };
  1675.  
  1676. USHORT  allBgColor[32];
  1677.  
  1678. /* Message strings for IFFP codes. */
  1679. char MsgOkay[]        = {"(IFF_OKAY) No FORM ILBM in the file." };
  1680. char MsgEndMark[]     = {"(END_MARK) How did you get this message?" };
  1681. char MsgDone[]        = {"(IFF_DONE) All done."};
  1682. char MsgDos[]         = {"(DOS_ERROR) The DOS returned an error." };
  1683. char MsgNot[]         = {"(NOT_IFF) Not an IFF file." };
  1684. char MsgNoFile[]      = {"(NO_FILE) No such file found." };
  1685. char MsgClientError[] =
  1686.              {"(CLIENT_ERROR) ShowILBM bug or insufficient RAM."};
  1687. char MsgForm[]        = {"(BAD_FORM) A malformed FORM ILBM." };
  1688. char MsgShort[]       = {"(SHORT_CHUNK) A malformed FORM ILBM." };
  1689. char MsgBad[]         = {"(BAD_IFF) A mangled IFF file." };
  1690.  
  1691. /* THESE MUST APPEAR IN RIGHT ORDER!! */
  1692. char *IFFPMessages[-LAST_ERROR+1] = {
  1693.     /*IFF_OKAY*/  MsgOkay,
  1694.     /*END_MARK*/  MsgEndMark,
  1695.     /*IFF_DONE*/  MsgDone,
  1696.     /*DOS_ERROR*/ MsgDos,
  1697.     /*NOT_IFF*/   MsgNot,
  1698.     /*NO_FILE*/   MsgNoFile,
  1699.     /*CLIENT_ERROR*/ MsgClientError,
  1700.     /*BAD_FORM*/  MsgForm,
  1701.     /*SHORT_CHUNK*/  MsgShort,
  1702.     /*BAD_IFF*/   MsgBad
  1703.     };
  1704.  
  1705. typedef struct {
  1706.    ClientFrame clientFrame;
  1707.    UBYTE foundBMHD;
  1708.    UBYTE nColorRegs;
  1709.    BitMapHeader bmHdr;
  1710.    Color4 colorMap[maxColorReg];
  1711.    /* If you want to read any other property chunks, e.g. GRAB or CAMG,
  1712.     * add fields to this record to store them. */
  1713.    } ILBMFrame;
  1714.  
  1715. extern ILBMFrame ilbmFrame;
  1716. UBYTE save_name[35]={"ram:monopoly.save"};
  1717. UBYTE picture_file[]={"monopoly.board"};
  1718. int rcolorpot, gcolorpot, bcolorpot;
  1719. SHORT oldlistproppage;
  1720.