home *** CD-ROM | disk | FTP | other *** search
- /* f5.c contains these monopoly functions
- reviewprop(),
- transfertitle, eft, ran16, shuffle, getchancecard
- getchestcard(), counthouses, counthotels,
- rolldie(one), rolldice(both), roll(), writeyourturn() */
-
- #include "mono:defines"
- #include "mono:xvariables"
-
- VOID reviewprop()
- {
- struct IntuiMessage *reviewpropmsg;
- struct Window *reviewpropwindow;
- struct RastPort *rportreviewprop;
- ULONG rpclass;
- USHORT rpcode, hold_line;
- struct IntuiText reviewhouse, reviewmorg, reviewowner,
- reviewprop0, reviewprop1, reviewprop2, reviewprop3,
- reviewprop4, reviewprop5, reviewprop6, reviewprop7,
- reviewprop8, reviewprop9, reviewprop10, reviewprop11,
- reviewprop12, reviewprop13, reviewprop14, reviewprop15,
- reviewprop16, reviewprop17, reviewprop18, reviewprop19,
- reviewprop20, reviewprop21, reviewprop22, reviewprop23,
- reviewprop24, reviewprop25, reviewprop26, reviewprop27;
- rpclass=0;
- rpcode=0;
-
-
- reviewhouse.TopEdge=0;
- reviewhouse.FrontPen=8;
- reviewhouse.BackPen=0;
- reviewhouse.DrawMode=JAM1;
- reviewhouse.LeftEdge=133;
- reviewhouse.IText=NULL;
- reviewhouse.ITextFont=NULL;
- reviewhouse.NextText=&reviewmorg;
-
- reviewmorg.TopEdge=0;
- reviewmorg.FrontPen=8;
- reviewmorg.BackPen=0;
- reviewmorg.DrawMode=JAM1;
- reviewmorg.LeftEdge=196;
- reviewmorg.IText=NULL;
- reviewmorg.ITextFont=NULL;
- reviewmorg.NextText=&reviewowner;
-
- reviewowner.TopEdge=0;
- reviewowner.BackPen=0;
- reviewowner.DrawMode=JAM1;
- reviewowner.LeftEdge=252;
- reviewowner.IText=NULL;
- reviewowner.ITextFont=NULL;
- reviewowner.NextText=NULL;
-
- reviewprop0.TopEdge=0;
- reviewprop0.FrontPen=8;
- reviewprop0.BackPen=0;
- reviewprop0.DrawMode=JAM1;
- reviewprop0.LeftEdge=5;
- reviewprop0.IText=NULL;
- reviewprop0.ITextFont=NULL;
- reviewprop0.NextText=NULL;
-
- reviewprop1=reviewprop0;
- reviewprop2=reviewprop1;
- reviewprop3=reviewprop2;
- reviewprop4=reviewprop3;
- reviewprop5=reviewprop4;
- reviewprop6=reviewprop5;
- reviewprop7=reviewprop6;
- reviewprop8=reviewprop7;
- reviewprop9=reviewprop8;
- reviewprop10=reviewprop9;
- reviewprop11=reviewprop10;
- reviewprop12=reviewprop11;
- reviewprop13=reviewprop12;
- reviewprop14=reviewprop13;
- reviewprop15=reviewprop14;
- reviewprop16=reviewprop15;
- reviewprop17=reviewprop16;
- reviewprop18=reviewprop17;
- reviewprop19=reviewprop18;
- reviewprop20=reviewprop19;
- reviewprop21=reviewprop20;
- reviewprop22=reviewprop21;
- reviewprop23=reviewprop22;
- reviewprop24=reviewprop23;
- reviewprop25=reviewprop24;
- reviewprop26=reviewprop25;
- reviewprop27=reviewprop26;
-
-
-
-
- reviewprop0.NextText=&reviewprop1;
- reviewprop1.NextText=&reviewprop2;
- reviewprop2.NextText=&reviewprop3;
- reviewprop3.NextText=&reviewprop4;
- reviewprop4.NextText=&reviewprop5;
- reviewprop5.NextText=&reviewprop6;
- reviewprop6.NextText=&reviewprop7;
- reviewprop7.NextText=&reviewprop8;
- reviewprop8.NextText=&reviewprop9;
- reviewprop9.NextText=&reviewprop10;
- reviewprop10.NextText=&reviewprop11;
- reviewprop11.NextText=&reviewprop12;
- reviewprop12.NextText=&reviewprop13;
- reviewprop13.NextText=NULL;
- reviewprop14.NextText=&reviewprop15;
- reviewprop15.NextText=&reviewprop16;
- reviewprop16.NextText=&reviewprop17;
- reviewprop17.NextText=&reviewprop18;
- reviewprop18.NextText=&reviewprop19;
- reviewprop19.NextText=&reviewprop20;
- reviewprop20.NextText=&reviewprop21;
- reviewprop21.NextText=&reviewprop22;
- reviewprop22.NextText=&reviewprop23;
- reviewprop23.NextText=&reviewprop24;
- reviewprop24.NextText=&reviewprop25;
- reviewprop25.NextText=&reviewprop26;
- reviewprop26.NextText=&reviewprop27;
- reviewprop27.NextText=NULL;
-
- reviewprop0.TopEdge=15;
- reviewprop1.TopEdge=27;
- reviewprop2.TopEdge=39;
- reviewprop3.TopEdge=51;
- reviewprop4.TopEdge=63;
- reviewprop5.TopEdge=75;
- reviewprop6.TopEdge=87;
- reviewprop7.TopEdge=99;
- reviewprop8.TopEdge=111;
- reviewprop9.TopEdge=123;
- reviewprop10.TopEdge=135;
- reviewprop11.TopEdge=147;
- reviewprop12.TopEdge=159;
- reviewprop13.TopEdge=171;
-
- reviewprop14.TopEdge=15;
- reviewprop15.TopEdge=27;
- reviewprop16.TopEdge=39;
- reviewprop17.TopEdge=51;
- reviewprop18.TopEdge=63;
- reviewprop19.TopEdge=75;
- reviewprop20.TopEdge=87;
- reviewprop21.TopEdge=99;
- reviewprop22.TopEdge=111;
- reviewprop23.TopEdge=123;
- reviewprop24.TopEdge=135;
- reviewprop25.TopEdge=147;
- reviewprop26.TopEdge=159;
- reviewprop27.TopEdge=171;
-
- reviewprop0.IText=(UBYTE *)"MEDITERRANEAN";
- reviewprop1.IText=(UBYTE *)"BALTIC";
- reviewprop2.IText=(UBYTE *)"READING RR";
- reviewprop3.IText=(UBYTE *)"ORIENTAL";
- reviewprop4.IText=(UBYTE *)"VERMONT";
- reviewprop5.IText=(UBYTE *)"CONNECTICUT";
- reviewprop6.IText=(UBYTE *)"ST. CHARLES";
- reviewprop7.IText=(UBYTE *)"ELECTRIC CO.";
- reviewprop8.IText=(UBYTE *)"STATES";
- reviewprop9.IText=(UBYTE *)"VIRGINIA";
- reviewprop10.IText=(UBYTE *)"PENNSYLVANIA";
- reviewprop11.IText=(UBYTE *)"ST. JAMES";
- reviewprop12.IText=(UBYTE *)"TENNESSEE";
- reviewprop13.IText=(UBYTE *)"NEW YORK";
-
- reviewprop14.IText=(UBYTE *)"KENTUCKY";
- reviewprop15.IText=(UBYTE *)"INDIANA";
- reviewprop16.IText=(UBYTE *)"ILLINOIS";
- reviewprop17.IText=(UBYTE *)"B. & O. RR";
- reviewprop18.IText=(UBYTE *)"ATLANTIC";
- reviewprop19.IText=(UBYTE *)"VENTNOR";
- reviewprop20.IText=(UBYTE *)"WATER WORKS";
- reviewprop21.IText=(UBYTE *)"MARVIN GARDENS";
- reviewprop22.IText=(UBYTE *)"PACIFIC";
- reviewprop23.IText=(UBYTE *)"NORTH CAROLINA";
- reviewprop24.IText=(UBYTE *)"PENNSYLVANIA";
- reviewprop25.IText=(UBYTE *)"SHORT LINE";
- reviewprop26.IText=(UBYTE *)"PARK PLACE";
- reviewprop27.IText=(UBYTE *)"BOARDWALK";
-
- reviewprop0.FrontPen=purple;
- reviewprop1.FrontPen=purple;
- reviewprop2.FrontPen=lt_gray;
- reviewprop3.FrontPen=lt_blue;
- reviewprop4.FrontPen=lt_blue;
- reviewprop5.FrontPen=lt_blue;
- reviewprop6.FrontPen=maroon;
- reviewprop7.FrontPen=dk_gray;
- reviewprop8.FrontPen=maroon;
- reviewprop9.FrontPen=maroon;
- reviewprop10.FrontPen=lt_gray;
- reviewprop11.FrontPen=orange;
- reviewprop12.FrontPen=orange;
- reviewprop13.FrontPen=orange;
-
- reviewprop14.FrontPen=red;
- reviewprop15.FrontPen=red;
- reviewprop16.FrontPen=red;
- reviewprop17.FrontPen=lt_gray;
- reviewprop18.FrontPen=yellow;
- reviewprop19.FrontPen=yellow;
- reviewprop20.FrontPen=royal_blue;
- reviewprop21.FrontPen=yellow;
- reviewprop22.FrontPen=green;
- reviewprop23.FrontPen=green;
- reviewprop24.FrontPen=green;
- reviewprop25.FrontPen=lt_gray;
- reviewprop26.FrontPen=dk_blue;
- reviewprop27.FrontPen=dk_blue;
-
-
- pageone:
- nreviewpropw.Screen=screen1;
- if ((reviewpropwindow=(struct Window *)OpenWindow(&nreviewpropw))==NULL)
- cleanexit("Can't open reviewprop window.\n");
- rportreviewprop=reviewpropwindow->RPort;
-
- PrintIText(rportreviewprop, &reviewprop0, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=15;
- reviewmorg.TopEdge=15;
- reviewowner.TopEdge=15;
- reviewhouse.FrontPen=purple;
- reviewmorg.FrontPen=purple;
- if (numhouses[1] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[1] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[1] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[1] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[1] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[1] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[1]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[1] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[1] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[1] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[1] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[1] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=27;
- reviewmorg.TopEdge=27;
- reviewowner.TopEdge=27;
- reviewhouse.FrontPen=purple;
- reviewmorg.FrontPen=purple;
- if (numhouses[3] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[3] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[3] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[3] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[3] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[3] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[3]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[3] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[3] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[3] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[3] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[3] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=39;
- reviewmorg.TopEdge=39;
- reviewowner.TopEdge=39;
- reviewhouse.FrontPen=lt_gray;
- reviewmorg.FrontPen=lt_gray;
- reviewhouse.IText=(UBYTE *)"n/a";
- reviewhouse.LeftEdge=125;
- if (ismorg[5]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[5] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[5] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[5] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[5] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[5] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=51;
- reviewmorg.TopEdge=51;
- reviewowner.TopEdge=51;
- reviewhouse.FrontPen=lt_blue;
- reviewmorg.FrontPen=lt_blue;
- if (numhouses[6] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[6] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[6] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[6] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[6] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[6] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[6]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[6] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[6] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[6] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[6] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[6] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=63;
- reviewmorg.TopEdge=63;
- reviewowner.TopEdge=63;
- reviewhouse.FrontPen=lt_blue;
- reviewmorg.FrontPen=lt_blue;
- if (numhouses[8] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[8] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[8] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[8] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[8] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[8] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[8]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[8] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[8] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[8] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[8] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[8] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=75;
- reviewmorg.TopEdge=75;
- reviewowner.TopEdge=75;
- reviewhouse.FrontPen=lt_blue;
- reviewmorg.FrontPen=lt_blue;
- if (numhouses[9] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[9] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[9] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[9] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[9] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[9] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[9]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[9] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[9] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[9] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[9] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[9] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=87;
- reviewmorg.TopEdge=87;
- reviewowner.TopEdge=87;
- reviewhouse.FrontPen=maroon;
- reviewmorg.FrontPen=maroon;
- if (numhouses[11] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[11] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[11] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[11] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[11] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[11] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[11]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[11] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[11] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[11] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[11] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[11] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=99;
- reviewmorg.TopEdge=99;
- reviewowner.TopEdge=99;
- reviewhouse.FrontPen=dk_gray;
- reviewmorg.FrontPen=dk_gray;
- reviewhouse.IText=(UBYTE *)"n/a";
- reviewhouse.LeftEdge=125;
- if (ismorg[12]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[12] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[12] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[12] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[12] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[12] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=111;
- reviewmorg.TopEdge=111;
- reviewowner.TopEdge=111;
- reviewhouse.FrontPen=maroon;
- reviewmorg.FrontPen=maroon;
- if (numhouses[13] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[13] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[13] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[13] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[13] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[13] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[13]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[13] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[13] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[13] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[13] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[13] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=123;
- reviewmorg.TopEdge=123;
- reviewowner.TopEdge=123;
- reviewhouse.FrontPen=maroon;
- reviewmorg.FrontPen=maroon;
- if (numhouses[14] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[14] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[14] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[14] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[14] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[14] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[14]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[14] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[14] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[14] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[14] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[14] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=135;
- reviewmorg.TopEdge=135;
- reviewowner.TopEdge=135;
- reviewhouse.FrontPen=lt_gray;
- reviewmorg.FrontPen=lt_gray;
- reviewhouse.IText=(UBYTE *)"n/a";
- reviewhouse.LeftEdge=125;
- if (ismorg[15]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[15] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[15] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[15] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[15] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[15] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=147;
- reviewmorg.TopEdge=147;
- reviewowner.TopEdge=147;
- reviewhouse.FrontPen=orange;
- reviewmorg.FrontPen=orange;
- if (numhouses[16] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[16] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[16] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[16] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[16] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[16] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[16]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[16] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[16] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[16] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[16] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[16] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=159;
- reviewmorg.TopEdge=159;
- reviewowner.TopEdge=159;
- reviewhouse.FrontPen=orange;
- reviewmorg.FrontPen=orange;
- if (numhouses[18] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[18] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[18] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[18] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[18] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[18] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[18]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[18] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[18] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[18] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[18] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[18] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=171;
- reviewmorg.TopEdge=171;
- reviewowner.TopEdge=171;
- reviewhouse.FrontPen=orange;
- reviewmorg.FrontPen=orange;
- if (numhouses[19] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[19] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[19] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[19] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[19] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[19] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[19]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[19] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[19] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[19] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[19] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[19] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- DrawBorder(rportreviewprop, &line0border, 0, 0);
-
- line0_text=82;
- for (j=0, hold_line=line0_text; j<SHOW_LINES; j++)
- instructIT[j].IText=instructline[hold_line++];
-
- ckpg1:
- Wait(1<<reviewpropwindow->UserPort->mp_SigBit);
- while((reviewpropmsg=(struct IntuiMessage *)
- GetMsg(reviewpropwindow->UserPort))!=NULL)
- {
- rpclass=reviewpropmsg->Class;
- rpcode=reviewpropmsg->Code;
- ReplyMsg(reviewpropmsg);
- }
- if (rpclass == CLOSEWINDOW)
- {
- CloseWindow(reviewpropwindow);
- goto exrp;
- }
- if (rpclass == GADGETUP)
- {
- CloseWindow(reviewpropwindow);
- goto pagetwo;
- }
- if ( (rpclass == RAWKEY) && (rpcode == HELP) )
- {
- instruction();
- goto ckpg1;
- }
-
- pagetwo:
- nreviewpropw.Screen=screen1;
- if ((reviewpropwindow=(struct Window *)OpenWindow(&nreviewpropw))==NULL)
- cleanexit("Can't open reviewprop window.\n");
- rportreviewprop=reviewpropwindow->RPort;
-
- PrintIText(rportreviewprop, &reviewprop14, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=15;
- reviewmorg.TopEdge=15;
- reviewowner.TopEdge=15;
- reviewhouse.FrontPen=red;
- reviewmorg.FrontPen=red;
- if (numhouses[21] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[21] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[21] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[21] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[21] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[21] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[21]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[21] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[21] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[21] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[21] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[21] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=27;
- reviewmorg.TopEdge=27;
- reviewowner.TopEdge=27;
- reviewhouse.FrontPen=red;
- reviewmorg.FrontPen=red;
- if (numhouses[23] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[23] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[23] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[23] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[23] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[23] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[23]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[23] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[23] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[23] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[23] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[23] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=39;
- reviewmorg.TopEdge=39;
- reviewowner.TopEdge=39;
- reviewhouse.FrontPen=red;
- reviewmorg.FrontPen=red;
- if (numhouses[24] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[24] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[24] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[24] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[24] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[24] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[24]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[24] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[24] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[24] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[24] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[24] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=51;
- reviewmorg.TopEdge=51;
- reviewowner.TopEdge=51;
- reviewhouse.FrontPen=lt_gray;
- reviewmorg.FrontPen=lt_gray;
- reviewhouse.IText=(UBYTE *)"n/a";
- reviewhouse.LeftEdge=125;
- if (ismorg[25]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[25] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[25] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[25] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[25] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[25] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=63;
- reviewmorg.TopEdge=63;
- reviewowner.TopEdge=63;
- reviewhouse.FrontPen=yellow;
- reviewmorg.FrontPen=yellow;
- if (numhouses[26] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[26] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[26] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[26] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[26] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[26] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[26]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[26] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[26] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[26] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[26] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[26] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=75;
- reviewmorg.TopEdge=75;
- reviewowner.TopEdge=75;
- reviewhouse.FrontPen=yellow;
- reviewmorg.FrontPen=yellow;
- if (numhouses[27] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[27] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[27] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[27] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[27] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[27] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[27]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[27] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[27] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[27] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[27] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[27] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=87;
- reviewmorg.TopEdge=87;
- reviewowner.TopEdge=87;
- reviewhouse.FrontPen=royal_blue;
- reviewmorg.FrontPen=royal_blue;
- reviewhouse.IText=(UBYTE *)"n/a";
- reviewhouse.LeftEdge=125;
- if (ismorg[28]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[28] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[28] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[28] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[28] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[28] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=99;
- reviewmorg.TopEdge=99;
- reviewowner.TopEdge=99;
- reviewhouse.FrontPen=yellow;
- reviewmorg.FrontPen=yellow;
- if (numhouses[29] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[29] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[29] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[29] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[29] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[29] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[29]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[29] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[29] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[29] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[29] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[29] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=111;
- reviewmorg.TopEdge=111;
- reviewowner.TopEdge=111;
- reviewhouse.FrontPen=green;
- reviewmorg.FrontPen=green;
- if (numhouses[31] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[31] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[31] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[31] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[31] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[31] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[31]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[31] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[31] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[31] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[31] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[31] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=123;
- reviewmorg.TopEdge=123;
- reviewowner.TopEdge=123;
- reviewhouse.FrontPen=green;
- reviewmorg.FrontPen=green;
- if (numhouses[32] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[32] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[32] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[32] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[32] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[32] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[32]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[32] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[32] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[32] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[32] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[32] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=135;
- reviewmorg.TopEdge=135;
- reviewowner.TopEdge=135;
- reviewhouse.FrontPen=green;
- reviewmorg.FrontPen=green;
- if (numhouses[34] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[34] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[34] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[34] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[34] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[34] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[34]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[34] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[34] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[34] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[34] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[34] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=147;
- reviewmorg.TopEdge=147;
- reviewowner.TopEdge=147;
- reviewhouse.FrontPen=lt_gray;
- reviewmorg.FrontPen=lt_gray;
- reviewhouse.IText=(UBYTE *)"n/a";
- reviewhouse.LeftEdge=125;
- if (ismorg[35]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[35] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[35] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[35] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[35] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[35] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=159;
- reviewmorg.TopEdge=159;
- reviewowner.TopEdge=159;
- reviewhouse.FrontPen=dk_blue;
- reviewmorg.FrontPen=dk_blue;
- if (numhouses[37] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[37] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[37] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[37] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[37] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[37] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[37]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[37] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[37] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[37] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[37] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[37] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- reviewhouse.LeftEdge=133;
- reviewhouse.TopEdge=171;
- reviewmorg.TopEdge=171;
- reviewowner.TopEdge=171;
- reviewhouse.FrontPen=dk_blue;
- reviewmorg.FrontPen=dk_blue;
- if (numhouses[39] == 0) reviewhouse.IText=(UBYTE *)"0";
- if (numhouses[39] == 1) reviewhouse.IText=(UBYTE *)"1";
- if (numhouses[39] == 2) reviewhouse.IText=(UBYTE *)"2";
- if (numhouses[39] == 3) reviewhouse.IText=(UBYTE *)"3";
- if (numhouses[39] == 4) reviewhouse.IText=(UBYTE *)"4";
- if (numhouses[39] == 5)
- {
- reviewhouse.IText=(UBYTE *)"HOTEL";
- reviewhouse.LeftEdge=117;
- }
- if (ismorg[39]) reviewmorg.IText=(UBYTE *)"YES";
- else reviewmorg.IText=(UBYTE *)" ";
- if (owner[39] == 9)
- {
- reviewowner.FrontPen=white;
- reviewowner.IText=(UBYTE *)"BANK";
- }
- if (owner[39] == 0)
- {
- reviewowner.FrontPen=25;
- reviewowner.IText=&name0[0];
- }
- if (owner[39] == 1)
- {
- reviewowner.FrontPen=26;
- reviewowner.IText=&name1[0];
- }
- if (owner[39] == 2)
- {
- reviewowner.FrontPen=27;
- reviewowner.IText=&name2[0];
- }
- if (owner[39] == 3)
- {
- reviewowner.FrontPen=28;
- reviewowner.IText=&name3[0];
- }
- PrintIText(rportreviewprop, &reviewhouse, 0, 0);
-
- DrawBorder(rportreviewprop, &line0border, 0, 0);
-
-
- ckpg2:
- Wait(1<<reviewpropwindow->UserPort->mp_SigBit);
- while((reviewpropmsg=(struct IntuiMessage *)
- GetMsg(reviewpropwindow->UserPort))!=NULL)
- {
- rpclass=reviewpropmsg->Class;
- rpcode=reviewpropmsg->Code;
- ReplyMsg(reviewpropmsg);
- }
- if (rpclass == CLOSEWINDOW)
- {
- CloseWindow(reviewpropwindow);
- goto exrp;
- }
- if (rpclass == GADGETUP)
- {
- CloseWindow(reviewpropwindow);
- goto pageone;
- }
- if ( (rpclass == RAWKEY) && (rpcode == HELP) )
- {
- instruction();
- goto ckpg2;
- }
- exrp:
- }
-
- VOID writeyourturn()
- {
- SetAPen(rportboard, black);
- RectFill(rportboard, 65, 109, 254, 120);
- PrintIText(rportboard, &cname, 61, 103);
- }
-
- VOID transfertitle(buyer, seller, deed, price)
- USHORT buyer, seller, deed, price;
- {
- if ((LONG)price > bankroll[buyer])
- {
- odqpflag=TRUE;
- overdrawn(buyer, (LONG)price);
- odqpflag=FALSE;
- }
- if ((LONG)price > bankroll[buyer])
- {
- if (seller == BANK) didntbuyfrombank=TRUE;
- else didntbuyfrombank=FALSE;
- goto extrans;
- }
- bankroll[buyer]=bankroll[buyer]-(LONG)price;
- bankroll[seller]=bankroll[seller]+(LONG)price;
- if (buyer == SLUSH) buyer=BANK;
- owner[deed]=buyer;
- if (ismorg[deed])
- {
- if (buyer != BANK) tenpercent(buyer, deed);
- if (buyer == BANK)
- {
- ismorg[deed]=FALSE;
- em(deed, FALSE);
- }
- }
- if (buyer != BANK)
- {
- if ( (deed == 12) || (deed == 28) ) numutil[buyer]++;
- if ( (deed == 5) || (deed == 15) || (deed == 25) || (deed == 35) )
- numrr[buyer]++;
- }
- if ( (owner[1] != BANK) && (owner[1] == owner[3]) )
- {
- ismono[1]=TRUE;
- ismono[3]=TRUE;
- }
- else
- {
- ismono[1]=FALSE;
- ismono[3]=FALSE;
- }
- if ( (owner[6] != BANK) && (owner[6] == owner[8]) && (owner[8] == owner[9]) )
- {
- ismono[6]=TRUE;
- ismono[8]=TRUE;
- ismono[9]=TRUE;
- }
- else
- {
- ismono[6]=FALSE;
- ismono[8]=FALSE;
- ismono[9]=FALSE;
- }
- if ( (owner[11] != BANK) && (owner[11] == owner[13])
- && (owner[13] == owner[14]) )
- {
- ismono[11]=TRUE;
- ismono[13]=TRUE;
- ismono[14]=TRUE;
- }
- else
- {
- ismono[11]=FALSE;
- ismono[13]=FALSE;
- ismono[14]=FALSE;
- }
- if ( (owner[16] != BANK) && (owner[16] == owner[18])
- && (owner[18] == owner[19]) )
- {
- ismono[16]=TRUE;
- ismono[18]=TRUE;
- ismono[19]=TRUE;
- }
- else
- {
- ismono[16]=FALSE;
- ismono[18]=FALSE;
- ismono[19]=FALSE;
- }
- if ( (owner[21] != BANK) && (owner[21] == owner[23])
- && (owner[23] == owner[24]) )
- {
- ismono[21]=TRUE;
- ismono[23]=TRUE;
- ismono[24]=TRUE;
- }
- else
- {
- ismono[21]=FALSE;
- ismono[23]=FALSE;
- ismono[24]=FALSE;
- }
- if ( (owner[26] != BANK) && (owner[26] == owner[27])
- && (owner[27] == owner[29]) )
- {
- ismono[26]=TRUE;
- ismono[27]=TRUE;
- ismono[29]=TRUE;
- }
- else
- {
- ismono[26]=FALSE;
- ismono[27]=FALSE;
- ismono[29]=FALSE;
- }
- if ( (owner[31] != BANK) && (owner[31] == owner[32])
- && (owner[32] == owner[34]) )
- {
- ismono[31]=TRUE;
- ismono[32]=TRUE;
- ismono[34]=TRUE;
- }
- else
- {
- ismono[31]=FALSE;
- ismono[32]=FALSE;
- ismono[34]=FALSE;
- }
- if ( (owner[37] != BANK) && (owner[37] == owner[39]) )
- {
- ismono[37]=TRUE;
- ismono[39]=TRUE;
- }
- else
- {
- ismono[37]=FALSE;
- ismono[39]=FALSE;
- }
- fixmenu();
- extrans:
- }
-
- VOID eft(from, to, amount)
- USHORT from, to, amount;
- {
- if (bankroll[BANK] < 5000) bankroll[BANK]=99999;
- if (amount > bankroll[from]) overdrawn(from, amount);
- if (amount > bankroll[from])
- {
- if (building || mortgaging)
- {
- building=FALSE;
- mortgaging=FALSE;
- goto exeft;
- }
- outofgame(from, to);
- }
- if (amount <= bankroll[from])
- {
- bankroll[to]=bankroll[to]+(LONG)amount;
- bankroll[from]=bankroll[from]-(LONG)amount;
- }
- exeft:
- fixmenu();
- }
-
- USHORT ran16()
- {
- LONG r, portion;
- portion=134217728;
- r=rand();
- if (r <= portion) return(0);
- if ( (r <= portion*2) && (r > portion) ) return(1);
- if ( (r <= portion*3) && (r > portion*2) ) return(2);
- if ( (r <= portion*4) && (r > portion*3) ) return(3);
- if ( (r <= portion*5) && (r > portion*4) ) return(4);
- if ( (r <= portion*6) && (r > portion*5) ) return(5);
- if ( (r <= portion*7) && (r > portion*6) ) return(6);
- if ( (r <= portion*8) && (r > portion*7) ) return(7);
- if ( (r <= portion*9) && (r > portion*8) ) return(8);
- if ( (r <= portion*10) && (r > portion*9) ) return(9);
- if ( (r <= portion*11) && (r > portion*10) ) return(10);
- if ( (r <= portion*12) && (r > portion*11) ) return(11);
- if ( (r <= portion*13) && (r > portion*12) ) return(12);
- if ( (r <= portion*14) && (r > portion*13) ) return(13);
- if ( (r <= portion*15) && (r > portion*14) ) return(14);
- if ( (r <= 2147483647) && (r > portion*15) ) return(15);
-
- return(99);
- }
-
- VOID shuffle(deck)
- USHORT deck;
- {
- USHORT iter;
- USHORT verify[16];
- USHORT card, k;
- BOOL tryagain;
-
- for (iter=1; iter<16; iter++) verify[iter]=99;
-
- k=0;
- verify[0]=ran16();
-
- doitagainshuff:
- tryagain=FALSE;
- card=ran16();
- for (iter=0; iter<16; iter++)
- {
- if (card == verify[iter])
- {
- tryagain=TRUE;
- iter=17;
- }
- }
- if (tryagain) goto doitagainshuff;
- verify[k++]=card;
- tryagain=FALSE;
- if (k < 16) goto doitagainshuff;
-
- for (iter=0; iter<15; iter++) cards[deck][iter]=verify[iter];
- }
-
- USHORT getchancecard()
- {
- USHORT cardout;
- USHORT iter;
-
- pickcard:
- for (iter=0; iter<16; iter++)
- {
- if (cards[0][iter] != 99)
- {
- cardout=cards[0][iter];
- cards[0][iter]=99;
- iter=17;
- return(cardout);
- }
- }
- shuffle(0);
- goto pickcard;
- return(0);
- }
-
- USHORT getchestcard()
- {
- USHORT cardout;
- USHORT iter;
-
- pickcard:
- for (iter=0; iter<16; iter++)
- {
- if (cards[1][iter] != 99)
- {
- cardout=cards[1][iter];
- cards[1][iter]=99;
- iter=17;
- return(cardout);
- }
- }
- shuffle(1);
- goto pickcard;
- return(0);
- }
-
- USHORT counthouses()
- {
- USHORT iter;
- USHORT total=0;
-
- for (iter=0; iter<40; iter++)
- {
- if (owner[iter] == nowrolling)
- {
- if (numhouses[iter] < 5) total=total+numhouses[iter];
- }
- }
- return(total);
- }
-
- USHORT counthotels()
- {
- USHORT total=0;
- USHORT iter;
-
- for (iter=0; iter<40; iter++)
- {
- if (owner[iter] == nowrolling)
- {
- if (numhouses[iter] == 5) total=total++;
- }
- }
- return(total);
- }
-
- USHORT rolldie()
- {
- LONG r;
-
- r=rand();
- if (r <= 357913941) return(1);
- if ( (r <= 715827882) && (r > 357913941) ) return(2);
- if ( (r <= 1073741823) && (r > 715827882) ) return(3);
- if ( (r <= 1431655765) && (r > 1073741823) ) return(4);
- if ( (r <= 1789569706) && (r > 1431655765) ) return(5);
- if ( (r <= 2147483647) && (r > 1789569706) ) return(6);
- return(0);
- }
-
- VOID rolldice()
- {
- dice0=rolldie();
- dice1=rolldie();
- drawdice();
- }
-
- VOID roll()
- {
- if (trieddoubles)
- {
- trieddoubles=FALSE;
- goto updateturn;
- }
- if (isinjail[nowrolling])
- {
- DisplayBeep(screen1);
- goto exroll;
- }
- if (jaildoubled)
- {
- doublesrolled=FALSE;
- goto moveit;
- }
- if (trydoublethrice)
- {
- trydoublethrice=FALSE;
- goto moveit;
- }
-
- rolldice();
- dicecup(TRUE); /* show dice */
- if (dice0 == dice1)
- {
- doublesrolled=TRUE;
- numdoubles++;
- if (numdoubles == 3)
- {
- sendtojail();
- goto updateturn;
- }
- }
- moveit:
- jaildoubled=FALSE;
-
- movetoken();
- if ( (doublesrolled) && (!isinjail[nowrolling]) )
- {
- doublesrolled=FALSE;
- if (!notplaying[nowrolling]) goto exroll;
- }
-
- updateturn:
- /* following advances player turn counter */
- numdoubles=0;
- doublesrolled=FALSE;
- jaildoubled=FALSE;
- trieddoubles=FALSE;
- trydoublethrice=FALSE;
- if (ntp > 1)
- {
- switch (nowrolling)
- {
- case 0:
- nowrolling=1;
- break;
- case 1:
- nowrolling=2;
- break;
- case 2:
- nowrolling=3;
- break;
- case 3:
- nowrolling=0;
- }
- }
- if (notplaying[nowrolling])
- {
- if (ntp == 1) goto exroll;
- if (ntp != 1) goto updateturn;
- }
- if (nowrolling == 0)
- {
- cname.FrontPen=25;
- cname.IText=&name0[0];
- }
- if (nowrolling == 1)
- {
- cname.FrontPen=26;
- cname.IText=&name1[0];
- }
- if (nowrolling == 2)
- {
- cname.FrontPen=27;
- cname.IText=&name2[0];
- }
- if (nowrolling == 3)
- {
- cname.FrontPen=28;
- cname.IText=&name3[0];
- }
- writeyourturn();
- exroll:
- fixmenu();
- dicecup(FALSE);
- }
-
-