home *** CD-ROM | disk | FTP | other *** search
- /* f3.c contains these functions for monopoly:
- showrr(), showutil(), showprop(), show2(), show3() */
-
- #include "mono:defines"
- #include "mono:xvariables"
-
- VOID show3(sname1, sname2, sname3, prop)
- char *sname1, *sname2, *sname3;
- USHORT prop;
- {
- USHORT propb, propc;
- UBYTE *rentstr, *coststr;
-
- mesg1.IText=sname1;
- PrintIText(rportpropinfo, &mesg0, 0, 0);
- PrintIText(rportpropinfo, &mesg1, 0, 0);
- if (ismorg[prop])
- {
- mesg7.FrontPen=green;
- mesg7.IText=(UBYTE *)"Property is MORTGAGED!";
- mesg8.FrontPen=green;
- mesg8.IText=(UBYTE *)"Pay NO rent!";
- if (owner[prop] == nowrolling)
- {
- mesg7.FrontPen=red;
- mesg8.FrontPen=red;
- mesg8.IText=(UBYTE *)"Collect NO rent!";
- }
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- PrintIText(rportpropinfo, &mesg8, 0, 0);
- goto bypassrent3;
- }
- if (prop == 6)
- {
- coststr="It will cost $100.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $6";
- if (ismono[prop]) rentstr="The rent is $12.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $30.";
- if (numhouses[prop] == 2) rentstr="The rent is $90.";
- if (numhouses[prop] == 3) rentstr="The rent is $270.";
- if (numhouses[prop] == 4) rentstr="The rent is $400.";
- if (numhouses[prop] == 5) rentstr="The rent is $550.";
- propb=8;
- propc=9;
- }
- if (prop == 8)
- {
- coststr="It will cost $100.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $6.";
- if (ismono[prop]) rentstr="The rent is $12.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $30.";
- if (numhouses[prop] == 2) rentstr="The rent is $90.";
- if (numhouses[prop] == 3) rentstr="The rent is $270.";
- if (numhouses[prop] == 4) rentstr="The rent is $400.";
- if (numhouses[prop] == 5) rentstr="The rent is $550.";
- propb=6;
- propc=9;
- }
- if (prop == 9)
- {
- coststr="It will cost $120.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $8.";
- if (ismono[prop]) rentstr="The rent is $16.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $40.";
- if (numhouses[prop] == 2) rentstr="The rent is $100.";
- if (numhouses[prop] == 3) rentstr="The rent is $300.";
- if (numhouses[prop] == 4) rentstr="The rent is $450.";
- if (numhouses[prop] == 5) rentstr="The rent is $600.";
- propb=6;
- propc=8;
- }
- if (prop == 11)
- {
- coststr="It will cost $140.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $10.";
- if (ismono[prop]) rentstr="The rent is $20.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $50.";
- if (numhouses[prop] == 2) rentstr="The rent is $150.";
- if (numhouses[prop] == 3) rentstr="The rent is $450.";
- if (numhouses[prop] == 4) rentstr="The rent is $625.";
- if (numhouses[prop] == 5) rentstr="The rent is $750.";
- propb=13;
- propc=14;
- }
- if (prop == 13)
- {
- coststr="It will cost $140.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $10.";
- if (ismono[prop]) rentstr="The rent is $20.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $50.";
- if (numhouses[prop] == 2) rentstr="The rent is $150.";
- if (numhouses[prop] == 3) rentstr="The rent is $450.";
- if (numhouses[prop] == 4) rentstr="The rent is $625.";
- if (numhouses[prop] == 5) rentstr="The rent is $750.";
- propb=11;
- propc=14;
- }
- if (prop == 14)
- {
- coststr="It will cost $160.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $12.";
- if (ismono[prop]) rentstr="The rent is $24.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $60.";
- if (numhouses[prop] == 2) rentstr="The rent is $180.";
- if (numhouses[prop] == 3) rentstr="The rent is $500.";
- if (numhouses[prop] == 4) rentstr="The rent is $700.";
- if (numhouses[prop] == 5) rentstr="The rent is $900.";
- propb=11;
- propc=13;
- }
- if (prop == 16)
- {
- coststr="It will cost $180.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $14.";
- if (ismono[prop]) rentstr="The rent is $28.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $70.";
- if (numhouses[prop] == 2) rentstr="The rent is $200.";
- if (numhouses[prop] == 3) rentstr="The rent is $550.";
- if (numhouses[prop] == 4) rentstr="The rent is $750.";
- if (numhouses[prop] == 5) rentstr="The rent is $950.";
- propb=18;
- propc=19;
- }
- if (prop == 18)
- {
- coststr="It will cost $180.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $14.";
- if (ismono[prop]) rentstr="The rent is $28.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $70.";
- if (numhouses[prop] == 2) rentstr="The rent is $200.";
- if (numhouses[prop] == 3) rentstr="The rent is $550.";
- if (numhouses[prop] == 4) rentstr="The rent is $750.";
- if (numhouses[prop] == 5) rentstr="The rent is $950.";
- propb=16;
- propc=19;
- }
- if (prop == 19)
- {
- coststr="It will cost $200.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $16.";
- if (ismono[prop]) rentstr="The rent is $32.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $80.";
- if (numhouses[prop] == 2) rentstr="The rent is $220.";
- if (numhouses[prop] == 3) rentstr="The rent is $600.";
- if (numhouses[prop] == 4) rentstr="The rent is $800.";
- if (numhouses[prop] == 5) rentstr="The rent is $1000.";
- propb=16;
- propc=18;
- }
- if (prop == 21)
- {
- coststr="It will cost $220.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $18.";
- if (ismono[prop]) rentstr="The rent is $36.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $90.";
- if (numhouses[prop] == 2) rentstr="The rent is $250.";
- if (numhouses[prop] == 3) rentstr="The rent is $700.";
- if (numhouses[prop] == 4) rentstr="The rent is $875.";
- if (numhouses[prop] == 5) rentstr="The rent is $1050.";
- propb=23;
- propc=24;
- }
- if (prop == 23)
- {
- coststr="It will cost $220.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $18.";
- if (ismono[prop]) rentstr="The rent is $36.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $90.";
- if (numhouses[prop] == 2) rentstr="The rent is $250.";
- if (numhouses[prop] == 3) rentstr="The rent is $700.";
- if (numhouses[prop] == 4) rentstr="The rent is $875.";
- if (numhouses[prop] == 5) rentstr="The rent is $1050.";
- propb=21;
- propc=24;
- }
- if (prop == 24)
- {
- coststr="It will cost $240.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $20.";
- if (ismono[prop]) rentstr="The rent is $40.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $100.";
- if (numhouses[prop] == 2) rentstr="The rent is $300.";
- if (numhouses[prop] == 3) rentstr="The rent is $750.";
- if (numhouses[prop] == 4) rentstr="The rent is $925.";
- if (numhouses[prop] == 5) rentstr="The rent is $1100.";
- propb=21;
- propc=23;
- }
- if (prop == 26)
- {
- coststr="It will cost $260.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $22.";
- if (ismono[prop]) rentstr="The rent is $44.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $110.";
- if (numhouses[prop] == 2) rentstr="The rent is $330.";
- if (numhouses[prop] == 3) rentstr="The rent is $800.";
- if (numhouses[prop] == 4) rentstr="The rent is $975.";
- if (numhouses[prop] == 5) rentstr="The rent is $1150.";
- propb=27;
- propc=29;
- }
- if (prop == 27)
- {
- coststr="It will cost $260.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $22.";
- if (ismono[prop]) rentstr="The rent is $44.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $110.";
- if (numhouses[prop] == 2) rentstr="The rent is $330.";
- if (numhouses[prop] == 3) rentstr="The rent is $800.";
- if (numhouses[prop] == 4) rentstr="The rent is $975.";
- if (numhouses[prop] == 5) rentstr="The rent is $1150.";
- propb=26;
- propc=29;
- }
- if (prop == 29)
- {
- coststr="It will cost $280.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $24.";
- if (ismono[prop]) rentstr="The rent is $48.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $120.";
- if (numhouses[prop] == 2) rentstr="The rent is $360.";
- if (numhouses[prop] == 3) rentstr="The rent is $850.";
- if (numhouses[prop] == 4) rentstr="The rent is $1025.";
- if (numhouses[prop] == 5) rentstr="The rent is $1200.";
- propb=26;
- propc=27;
- }
- if (prop == 31)
- {
- coststr="It will cost $300.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $26.";
- if (ismono[prop]) rentstr="The rent is $52.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $130.";
- if (numhouses[prop] == 2) rentstr="The rent is $390.";
- if (numhouses[prop] == 3) rentstr="The rent is $900.";
- if (numhouses[prop] == 4) rentstr="The rent is $1100.";
- if (numhouses[prop] == 5) rentstr="The rent is $1275.";
- propb=32;
- propc=34;
- }
- if (prop == 32)
- {
- coststr="It will cost $300.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $26.";
- if (ismono[prop]) rentstr="The rent is $52.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $130.";
- if (numhouses[prop] == 2) rentstr="The rent is $390.";
- if (numhouses[prop] == 3) rentstr="The rent is $900.";
- if (numhouses[prop] == 4) rentstr="The rent is $1100.";
- if (numhouses[prop] == 5) rentstr="The rent is $1275.";
- propb=31;
- propc=34;
- }
- if (prop == 34)
- {
- coststr="It will cost $320.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $28.";
- if (ismono[prop]) rentstr="The rent is $56.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $150.";
- if (numhouses[prop] == 2) rentstr="The rent is $450.";
- if (numhouses[prop] == 3) rentstr="The rent is $1000.";
- if (numhouses[prop] == 4) rentstr="The rent is $1200.";
- if (numhouses[prop] == 5) rentstr="The rent is $1400.";
- propb=31;
- propc=32;
- }
-
- if ( (owner[prop] != nowrolling) && (owner[prop] != 9) )
- {
- mesg6.FrontPen=red;
- mesg9.FrontPen=red;
- if (numhouses[prop] == 0)
- {
- if (!ismono[prop])
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses0[0];
- eft(nowrolling, owner[prop], rentnone[prop]);
- }
- if ( (ismono[prop]) && (numhouses[prop] == 0) )
- {
- mesg9.IText=rentstr;
- mesg4.IText=&houses0[0];
- mesg7.IText=(UBYTE *)"Part of a MONOPOLY,";
- mesg8.IText=(UBYTE *)"pay DOUBLE rent!";
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- PrintIText(rportpropinfo, &mesg8, 0, 0);
- PrintIText(rportpropinfo, &mesg9, 0, 5);
- eft(nowrolling, owner[prop], 2*rentnone[prop]);
- }
- }
- if (numhouses[prop] == 1)
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses1[0];
- eft(nowrolling, owner[prop], rentone[prop]);
- }
- if (numhouses[prop] == 2)
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses2[0];
- eft(nowrolling, owner[prop], renttwo[prop]);
- }
- if (numhouses[prop] == 3)
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses3[0];
- eft(nowrolling, owner[prop], rentthree[prop]);
- }
- if (numhouses[prop] == 4)
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses4[0];
- eft(nowrolling, owner[prop], rentfour[prop]);
- }
- if (numhouses[prop] == 5)
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses5[0];
- eft(nowrolling, owner[prop], renthotel[prop]);
- }
- PrintIText(rportpropinfo, &mesg2, 0, 10);
- PrintIText(rportpropinfo, &mesg3, 0, 10);
- PrintIText(rportpropinfo, &mesg4, 0, 10);
- if (!ismono[prop]) PrintIText(rportpropinfo, &mesg6, 0, 10);
- if ( (ismono[prop]) && (numhouses[prop] > 0) )
- PrintIText(rportpropinfo, &mesg6, 0, 10);
- }
-
- if (owner[prop] == 9)
- {
- mesg2.IText=coststr;
- mesg2.FrontPen=red;
- mesg3.IText=sname2;
- mesg4.IText=(UBYTE *)"is owned by";
- if (owner[propb] == 9)
- {
- mesg5.FrontPen=white;
- mesg5.IText=(UBYTE *)"the bank.";
- }
- if (owner[propb] == 0)
- {
- mesg5.FrontPen=25;
- mesg5.IText=&name0[0];
- }
- if (owner[propb] == 1)
- {
- mesg5.FrontPen=26;
- mesg5.IText=&name1[0];
- }
- if (owner[propb] == 2)
- {
- mesg5.FrontPen=27;
- mesg5.IText=&name2[0];
- }
- if (owner[propb] == 3)
- {
- mesg5.FrontPen=28;
- mesg5.IText=&name3[0];
- }
- mesg6.IText=sname3;
- mesg7.IText=(UBYTE *)"is owned by";
- if (owner[propc] == 9)
- {
- mesg8.FrontPen=white;
- mesg8.IText=(UBYTE *)"the bank.";
- }
- if (owner[propc] == 0)
- {
- mesg8.FrontPen=25;
- mesg8.IText=&name0[0];
- }
- if (owner[propc] == 1)
- {
- mesg8.FrontPen=26;
- mesg8.IText=&name1[0];
- }
- if (owner[propc] == 2)
- {
- mesg8.FrontPen=27;
- mesg8.IText=&name2[0];
- }
- if (owner[propc] == 3)
- {
- mesg8.FrontPen=28;
- mesg8.IText=&name3[0];
- }
- PrintIText(rportpropinfo, &mesg2, 0, 0);
- PrintIText(rportpropinfo, &mesg3, 0, 5);
- PrintIText(rportpropinfo, &mesg4, 0, 5);
- PrintIText(rportpropinfo, &mesg5, 0, 5);
- PrintIText(rportpropinfo, &mesg6, 0, 8);
- PrintIText(rportpropinfo, &mesg7, 0, 8);
- PrintIText(rportpropinfo, &mesg8, 0, 8);
- PrintIText(rportpropinfo, &mesg10, 0, 0);
- }
- bypassrent3:
- if (owner[prop] == nowrolling)
- {
- mesg3.IText=(UBYTE *)"You own this property.";
- PrintIText(rportpropinfo, &mesg3, 0, 0);
- }
- }
-
- VOID show2(sname1, sname2, prop)
- char *sname1, *sname2;
- USHORT prop;
- {
- USHORT prop1;
- UBYTE *rentstr, *coststr;
-
- mesg1.IText=sname1;
- PrintIText(rportpropinfo, &mesg0, 0, 0);
- PrintIText(rportpropinfo, &mesg1, 0, 0);
- if (ismorg[prop])
- {
- mesg7.FrontPen=green;
- mesg7.IText=(UBYTE *)"Property is MORTGAGED!";
- mesg8.FrontPen=green;
- mesg8.IText=(UBYTE *)"Pay NO rent!";
- if (owner[prop] == nowrolling)
- {
- mesg7.FrontPen=red;
- mesg8.FrontPen=red;
- mesg8.IText=(UBYTE *)"Collect NO rent!";
- }
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- PrintIText(rportpropinfo, &mesg8, 0, 0);
- goto bypassrent2;
- }
- if (prop == 1)
- {
- prop1=3;
- coststr="It will cost $60.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $2.";
- if (ismono[prop]) rentstr="The rent is $4.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $10.";
- if (numhouses[prop] == 2) rentstr="The rent is $30.";
- if (numhouses[prop] == 3) rentstr="The rent is $90.";
- if (numhouses[prop] == 4) rentstr="The rent is $160.";
- if (numhouses[prop] == 5) rentstr="The rent is $250.";
- }
- if (prop == 3)
- {
- prop1=1;
- coststr="It will cost $60.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $4.";
- if (ismono[prop]) rentstr="The rent is $8.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $20.";
- if (numhouses[prop] == 2) rentstr="The rent is $60.";
- if (numhouses[prop] == 3) rentstr="The rent is $180.";
- if (numhouses[prop] == 4) rentstr="The rent is $320.";
- if (numhouses[prop] == 5) rentstr="The rent is $450.";
- }
- if (prop == 37)
- {
- prop1=39;
- coststr="It will cost $350.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $35.";
- if (ismono[prop]) rentstr="The rent is $70.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $175.";
- if (numhouses[prop] == 2) rentstr="The rent is $500.";
- if (numhouses[prop] == 3) rentstr="The rent is $1100.";
- if (numhouses[prop] == 4) rentstr="The rent is $1300.";
- if (numhouses[prop] == 5) rentstr="The rent is $1500.";
- }
- if (prop == 39)
- {
- prop1=37;
- coststr="It will cost $400.";
- if (numhouses[prop] == 0)
- {
- rentstr="The rent is $50.";
- if (ismono[prop]) rentstr="The rent is $100.";
- }
- if (numhouses[prop] == 1) rentstr="The rent is $200.";
- if (numhouses[prop] == 2) rentstr="The rent is $600.";
- if (numhouses[prop] == 3) rentstr="The rent is $1400.";
- if (numhouses[prop] == 4) rentstr="The rent is $1700.";
- if (numhouses[prop] == 5) rentstr="The rent is $2000.";
- }
-
- if ( (owner[prop] != nowrolling) && (owner[prop] != 9) )
- {
- mesg6.FrontPen=red;
- mesg9.FrontPen=red;
- if (numhouses[prop] == 0)
- {
- if (!ismono[prop])
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses0[0];
- eft(nowrolling, owner[prop], rentnone[prop]);
- }
- if ( (ismono[prop]) && (numhouses[prop] == 0) )
- {
- mesg4.IText=&houses0[0];
- mesg7.IText=(UBYTE *)"Part of a MONOPOLY,";
- mesg8.IText=(UBYTE *)"pay DOUBLE rent!";
- mesg9.IText=rentstr;
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- PrintIText(rportpropinfo, &mesg8, 0, 0);
- PrintIText(rportpropinfo, &mesg9, 0, 5);
- eft(nowrolling, owner[prop], 2*rentnone[prop]);
- }
- }
- if (numhouses[prop] == 1)
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses1[0];
- eft(nowrolling, owner[prop], rentone[prop]);
- }
- if (numhouses[prop] == 2)
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses2[0];
- eft(nowrolling, owner[prop], renttwo[prop]);
- }
- if (numhouses[prop] == 3)
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses3[0];
- eft(nowrolling, owner[prop], rentthree[prop]);
- }
- if (numhouses[prop] == 4)
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses4[0];
- eft(nowrolling, owner[prop], rentfour[prop]);
- }
- if (numhouses[prop] == 5)
- {
- mesg6.IText=rentstr;
- mesg4.IText=&houses5[0];
- eft(nowrolling, owner[prop], renthotel[prop]);
- }
- PrintIText(rportpropinfo, &mesg2, 0, 10);
- PrintIText(rportpropinfo, &mesg3, 0, 10);
- PrintIText(rportpropinfo, &mesg4, 0, 10);
- if (!ismono[prop]) PrintIText(rportpropinfo, &mesg6, 0, 10);
- if ( (ismono[prop]) && (numhouses[prop] > 0) )
- PrintIText(rportpropinfo, &mesg6, 0, 10);
- }
-
- if (owner[prop] == 9)
- {
- mesg2.IText=coststr;
- mesg2.FrontPen=red;
- mesg4.IText=sname2;
- mesg5.IText=(UBYTE *)"is owned by";
- if (owner[prop1] == 9)
- {
- mesg6.FrontPen=white;
- mesg6.IText=(UBYTE *)"the bank.";
- }
- if (owner[prop1] == 0)
- {
- mesg6.FrontPen=25;
- mesg6.IText=&name0[0];
- }
- if (owner[prop1] == 1)
- {
- mesg6.FrontPen=26;
- mesg6.IText=&name1[0];
- }
- if (owner[prop1] == 2)
- {
- mesg6.FrontPen=27;
- mesg6.IText=&name2[0];
- }
- if (owner[prop1] == 3)
- {
- mesg6.FrontPen=28;
- mesg6.IText=&name3[0];
- }
-
- PrintIText(rportpropinfo, &mesg2, 0, 10);
- PrintIText(rportpropinfo, &mesg4, 0, 10);
- PrintIText(rportpropinfo, &mesg5, 0, 10);
- PrintIText(rportpropinfo, &mesg6, 0, 10);
- PrintIText(rportpropinfo, &mesg10, 0, 0);
- }
-
- bypassrent2:
- if (owner[prop] == nowrolling)
- {
- mesg3.IText=(UBYTE *)"You own this property.";
- PrintIText(rportpropinfo, &mesg3, 0, 0);
- }
- }
-
- VOID showrr(prop)
- USHORT prop;
- {
- mesg0.IText=(UBYTE *)"You have landed on the";
- PrintIText(rportpropinfo, &mesg0, 0, 0);
- PrintIText(rportpropinfo, &mesg1, 0, 0);
- if (ismorg[prop])
- {
- mesg7.FrontPen=green;
- mesg7.IText=(UBYTE *)"Property is MORTGAGED!";
- mesg8.FrontPen=green;
- mesg8.IText=(UBYTE *)"Pay NO rent!";
- if (owner[prop] == nowrolling)
- {
- mesg7.FrontPen=red;
- mesg8.FrontPen=red;
- mesg8.IText=(UBYTE *)"Collect NO rent!";
- }
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- PrintIText(rportpropinfo, &mesg8, 0, 0);
- goto bypassrentrr;
- }
-
- if ( (owner[prop] != nowrolling) && (owner[prop] != 9) )
- {
- mesg4.IText=(UBYTE *)"owns this railroad";
- if ( (owner[prop] != nowrolling) && (owner[prop] == 0) )
- {
- mesg3.FrontPen=25;
- mesg3.IText=&name0[0];
- }
- if ( (owner[prop] != nowrolling) && (owner[prop] == 1) )
- {
- mesg3.FrontPen=26;
- mesg3.IText=&name1[0];
- }
- if ( (owner[prop] != nowrolling) && (owner[prop] == 2) )
- {
- mesg3.FrontPen=27;
- mesg3.IText=&name2[0];
- }
- if ( (owner[prop] != nowrolling) && (owner[prop] == 3) )
- {
- mesg3.FrontPen=28;
- mesg3.IText=&name3[0];
- }
- PrintIText(rportpropinfo, &mesg3, 0, 0);
- PrintIText(rportpropinfo, &mesg4, 0, 0);
- if (numrr[owner[prop]] == 1)
- {
- mesg5.IText=(UBYTE *)"only.";
- PrintIText(rportpropinfo, &mesg5, 0, 0);
- mesg7.IText=(UBYTE *)"Pay $25 rent.";
- mesg7.FrontPen=red;
- if (doublerr)
- {
- mesg7.IText=(UBYTE *)"Pay $50 rent.";
- eft(nowrolling, owner[prop], 25);
- }
- eft(nowrolling, owner[prop], 25);
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- }
- if (numrr[owner[prop]] == 2)
- {
- mesg5.IText=(UBYTE *)"as well as one";
- PrintIText(rportpropinfo, &mesg5, 0, 0);
- mesg6.IText=(UBYTE *)"other.";
- PrintIText(rportpropinfo, &mesg6, 0, 0);
- mesg8.IText=(UBYTE *)"Pay $50 rent.";
- mesg8.FrontPen=red;
- if (doublerr)
- {
- mesg8.IText=(UBYTE *)"Pay $100 rent.";
- eft(nowrolling, owner[prop], 50);
- }
- PrintIText(rportpropinfo, &mesg8, 0, 0);
- eft(nowrolling, owner[prop], 50);
- }
- if (numrr[owner[prop]] == 3)
- {
- mesg5.IText=(UBYTE *)"as well as two";
- PrintIText(rportpropinfo, &mesg5, 0, 0);
- mesg6.IText=(UBYTE *)"others.";
- PrintIText(rportpropinfo, &mesg6, 0, 0);
- mesg8.IText=(UBYTE *)"Pay $100 rent.";
- mesg8.FrontPen=red;
- if (doublerr)
- {
- mesg8.IText=(UBYTE *)"Pay $200 rent.";
- eft(nowrolling, owner[prop], 100);
- }
- PrintIText(rportpropinfo, &mesg8, 0, 0);
- eft(nowrolling, owner[prop], 100);
- }
- if (numrr[owner[prop]] == 4)
- {
- mesg5.IText=(UBYTE *)"as well as three";
- PrintIText(rportpropinfo, &mesg5, 0, 0);
- mesg6.IText=(UBYTE *)"others.";
- PrintIText(rportpropinfo, &mesg6, 0, 0);
- mesg8.IText=(UBYTE *)"Pay $200 rent.";
- mesg8.FrontPen=red;
- if (doublerr)
- {
- mesg8.IText=(UBYTE *)"Pay $400 rent.";
- eft(nowrolling, owner[prop], 200);
- }
- eft(nowrolling, owner[prop], 200);
- PrintIText(rportpropinfo, &mesg8, 0, 0);
- }
- }
-
- if (owner[prop] == 9)
- {
- mesg2.FrontPen=red;
- mesg2.IText=(UBYTE *)"The cost is $200.";
- mesg3.FrontPen=royal_blue;
- mesg3.IText=(UBYTE *)"Other Railroad owners:";
- mesg4.FrontPen=lt_blue;
- mesg6.FrontPen=lt_blue;
- mesg8.FrontPen=lt_blue;
- if (prop == 5)
- {
- mesg4.IText=(UBYTE *)"PENNSYLVANIA RR by";
- mesg6.IText=(UBYTE *)"B. & O. RR by";
- mesg8.IText=(UBYTE *)"SHORT LINE by";
- switch (owner[15])
- {
- case 9:
- mesg5.IText=(UBYTE *)"the bank.";
- mesg5.FrontPen=white;
- break;
- case 0:
- mesg5.IText=&name0[0];
- mesg5.FrontPen=25;
- break;
- case 1:
- mesg5.IText=&name1[0];
- mesg5.FrontPen=26;
- break;
- case 2:
- mesg5.IText=&name2[0];
- mesg5.FrontPen=27;
- break;
- case 3:
- mesg5.IText=&name3[0];
- mesg5.FrontPen=28;
- break;
- }
- switch (owner[25])
- {
- case 9:
- mesg7.IText=(UBYTE *)"the bank.";
- mesg7.FrontPen=white;
- break;
- case 0:
- mesg7.IText=&name0[0];
- mesg7.FrontPen=25;
- break;
- case 1:
- mesg7.IText=&name1[0];
- mesg7.FrontPen=26;
- break;
- case 2:
- mesg7.IText=&name2[0];
- mesg7.FrontPen=27;
- break;
- case 3:
- mesg7.IText=&name3[0];
- mesg7.FrontPen=28;
- break;
- }
- switch (owner[35])
- {
- case 9:
- mesg9.IText=(UBYTE *)"the bank.";
- mesg9.FrontPen=white;
- break;
- case 0:
- mesg9.IText=&name0[0];
- mesg9.FrontPen=25;
- break;
- case 1:
- mesg9.IText=&name1[0];
- mesg9.FrontPen=26;
- break;
- case 2:
- mesg9.IText=&name2[0];
- mesg9.FrontPen=27;
- break;
- case 3:
- mesg9.IText=&name3[0];
- mesg9.FrontPen=28;
- break;
- }
- }
- if (prop == 15)
- {
- mesg4.IText=(UBYTE *)"READING RR by";
- mesg6.IText=(UBYTE *)"B. & O. RR by";
- mesg8.IText=(UBYTE *)"SHORT LINE by";
- switch (owner[5])
- {
- case 9:
- mesg5.IText=(UBYTE *)"the bank.";
- mesg5.FrontPen=white;
- break;
- case 0:
- mesg5.IText=&name0[0];
- mesg5.FrontPen=25;
- break;
- case 1:
- mesg5.IText=&name1[0];
- mesg5.FrontPen=26;
- break;
- case 2:
- mesg5.IText=&name2[0];
- mesg5.FrontPen=27;
- break;
- case 3:
- mesg5.IText=&name3[0];
- mesg5.FrontPen=28;
- break;
- }
- switch (owner[25])
- {
- case 9:
- mesg7.IText=(UBYTE *)"the bank.";
- mesg7.FrontPen=white;
- break;
- case 0:
- mesg7.IText=&name0[0];
- mesg7.FrontPen=25;
- break;
- case 1:
- mesg7.IText=&name1[0];
- mesg7.FrontPen=26;
- break;
- case 2:
- mesg7.IText=&name2[0];
- mesg7.FrontPen=27;
- break;
- case 3:
- mesg7.IText=&name3[0];
- mesg7.FrontPen=28;
- break;
- }
- switch (owner[35])
- {
- case 9:
- mesg9.IText=(UBYTE *)"the bank.";
- mesg9.FrontPen=white;
- break;
- case 0:
- mesg9.IText=&name0[0];
- mesg9.FrontPen=25;
- break;
- case 1:
- mesg9.IText=&name1[0];
- mesg9.FrontPen=26;
- break;
- case 2:
- mesg9.IText=&name2[0];
- mesg9.FrontPen=27;
- break;
- case 3:
- mesg9.IText=&name3[0];
- mesg9.FrontPen=28;
- break;
- }
- }
- if (prop == 25)
- {
- mesg4.IText=(UBYTE *)"READING RR by";
- mesg6.IText=(UBYTE *)"PENNSYLVANIA RR by";
- mesg8.IText=(UBYTE *)"SHORT LINE by";
- switch (owner[5])
- {
- case 9:
- mesg5.IText=(UBYTE *)"the bank.";
- mesg5.FrontPen=white;
- break;
- case 0:
- mesg5.IText=&name0[0];
- mesg5.FrontPen=25;
- break;
- case 1:
- mesg5.IText=&name1[0];
- mesg5.FrontPen=26;
- break;
- case 2:
- mesg5.IText=&name2[0];
- mesg5.FrontPen=27;
- break;
- case 3:
- mesg5.IText=&name3[0];
- mesg5.FrontPen=28;
- break;
- }
- switch (owner[15])
- {
- case 9:
- mesg7.IText=(UBYTE *)"the bank.";
- mesg7.FrontPen=white;
- break;
- case 0:
- mesg7.IText=&name0[0];
- mesg7.FrontPen=25;
- break;
- case 1:
- mesg7.IText=&name1[0];
- mesg7.FrontPen=26;
- break;
- case 2:
- mesg7.IText=&name2[0];
- mesg7.FrontPen=27;
- break;
- case 3:
- mesg7.IText=&name3[0];
- mesg7.FrontPen=28;
- break;
- }
- switch (owner[35])
- {
- case 9:
- mesg9.IText=(UBYTE *)"the bank.";
- mesg9.FrontPen=white;
- break;
- case 0:
- mesg9.IText=&name0[0];
- mesg9.FrontPen=25;
- break;
- case 1:
- mesg9.IText=&name1[0];
- mesg9.FrontPen=26;
- break;
- case 2:
- mesg9.IText=&name2[0];
- mesg9.FrontPen=27;
- break;
- case 3:
- mesg9.IText=&name3[0];
- mesg9.FrontPen=28;
- break;
- }
- }
- if (prop == 35)
- {
- mesg4.IText=(UBYTE *)"READING RR by";
- mesg6.IText=(UBYTE *)"PENNSYLVANIA RR by";
- mesg8.IText=(UBYTE *)"B. & O. RR by";
- switch (owner[5])
- {
- case 9:
- mesg5.IText=(UBYTE *)"the bank.";
- mesg5.FrontPen=white;
- break;
- case 0:
- mesg5.IText=&name0[0];
- mesg5.FrontPen=25;
- break;
- case 1:
- mesg5.IText=&name1[0];
- mesg5.FrontPen=26;
- break;
- case 2:
- mesg5.IText=&name2[0];
- mesg5.FrontPen=27;
- break;
- case 3:
- mesg5.IText=&name3[0];
- mesg5.FrontPen=28;
- break;
- }
- switch (owner[15])
- {
- case 9:
- mesg7.IText=(UBYTE *)"the bank.";
- mesg7.FrontPen=white;
- break;
- case 0:
- mesg7.IText=&name0[0];
- mesg7.FrontPen=25;
- break;
- case 1:
- mesg7.IText=&name1[0];
- mesg7.FrontPen=26;
- break;
- case 2:
- mesg7.IText=&name2[0];
- mesg7.FrontPen=27;
- break;
- case 3:
- mesg7.IText=&name3[0];
- mesg7.FrontPen=28;
- break;
- }
- switch (owner[25])
- {
- case 9:
- mesg9.IText=(UBYTE *)"the bank.";
- mesg9.FrontPen=white;
- break;
- case 0:
- mesg9.IText=&name0[0];
- mesg9.FrontPen=25;
- break;
- case 1:
- mesg9.IText=&name1[0];
- mesg9.FrontPen=26;
- break;
- case 2:
- mesg9.IText=&name2[0];
- mesg9.FrontPen=27;
- break;
- case 3:
- mesg9.IText=&name3[0];
- mesg9.FrontPen=28;
- break;
- }
- }
- SetAPen(rportpropinfo, 0);
- RectFill(rportpropinfo, 0, 0, 180, 40);
- mesg0.IText=(UBYTE *)"You have landed on the";
- PrintIText(rportpropinfo, &cname, 0, -8);
- PrintIText(rportpropinfo, &mesg0, 0, -8);
- PrintIText(rportpropinfo, &mesg1, 0, -8);
- PrintIText(rportpropinfo, &mesg2, 0, -7);
- PrintIText(rportpropinfo, &mesg3, 0, -2);
- PrintIText(rportpropinfo, &mesg4, 0, 0);
- PrintIText(rportpropinfo, &mesg5, 0, 0);
- PrintIText(rportpropinfo, &mesg6, 0, 0);
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- PrintIText(rportpropinfo, &mesg8, 0, 0);
- PrintIText(rportpropinfo, &mesg9, 0, 0);
- PrintIText(rportpropinfo, &mesg10, 0, 0);
- }
- bypassrentrr:
- if (owner[prop] == nowrolling)
- {
- mesg3.IText=(UBYTE *)"You own it.";
- PrintIText(rportpropinfo, &mesg3, 0, 0);
- }
- doublerr=FALSE;
- }
-
- VOID showutil(prop)
- USHORT prop;
- {
- USHORT money;
- mesg0.IText=(UBYTE *)"You have landed on the";
- if (prop == 12)
- {
- mesg1.IText=(UBYTE *)"ELECTRIC COMPANY.";
- mesg0.FrontPen=yellow;
- mesg1.FrontPen=yellow;
- mesg3.FrontPen=yellow;
- mesg4.FrontPen=yellow;
- mesg6.FrontPen=yellow;
- mesg7.FrontPen=yellow;
- mesg8.FrontPen=yellow;
- mesg9.FrontPen=yellow;
- }
- if (prop == 28)
- {
- mesg1.IText=(UBYTE *)"WATER WORKS.";
- mesg0.FrontPen=royal_blue;
- mesg1.FrontPen=royal_blue;
- mesg1.FrontPen=royal_blue;
- mesg3.FrontPen=royal_blue;
- mesg4.FrontPen=royal_blue;
- mesg6.FrontPen=royal_blue;
- mesg7.FrontPen=royal_blue;
- mesg8.FrontPen=royal_blue;
- mesg9.FrontPen=royal_blue;
- }
- PrintIText(rportpropinfo, &mesg0, 0, 0);
- PrintIText(rportpropinfo, &mesg1, 0, 0);
- if (ismorg[prop])
- {
- mesg7.FrontPen=green;
- mesg7.IText=(UBYTE *)"Property is MORTGAGED!";
- mesg8.FrontPen=green;
- mesg8.IText=(UBYTE *)"Pay NO rent!";
- if (owner[prop] == nowrolling)
- {
- mesg7.FrontPen=red;
- mesg8.FrontPen=red;
- mesg8.IText=(UBYTE *)"Collect NO rent!";
- }
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- PrintIText(rportpropinfo, &mesg8, 0, 0);
- goto bypassrentutil;
- }
- if (owner[prop] == 9)
- {
- mesg3.IText=(UBYTE *)"It will cost $150.";
- mesg3.FrontPen=red;
- if (prop == 12)
- {
- mesg5.IText=(UBYTE *)"WATER WORKS";
- mesg5.FrontPen=royal_blue;
- mesg6.FrontPen=royal_blue;
- }
- if (prop == 28)
- {
- mesg5.IText=(UBYTE *)"ELECTRIC COMPANY";
- mesg5.FrontPen=yellow;
- mesg6.FrontPen=yellow;
- }
- mesg6.IText=(UBYTE *)"is owned by";
- if (prop == 12)
- {
- if (owner[28] == 9)
- {
- mesg7.IText=(UBYTE *)"the bank.";
- mesg7.FrontPen=white;
- }
- if (owner[28] == 0)
- {
- mesg7.FrontPen=25;
- mesg7.IText=&name0[0];
- }
- if (owner[28] == 1)
- {
- mesg7.FrontPen=26;
- mesg7.IText=&name1[0];
- }
- if (owner[28] == 2)
- {
- mesg7.FrontPen=27;
- mesg7.IText=&name2[0];
- }
- if (owner[28] == 3)
- {
- mesg7.FrontPen=28;
- mesg7.IText=&name3[0];
- }
- }
- if (prop == 28)
- {
- if (owner[12] == 9)
- {
- mesg7.IText=(UBYTE *)"the bank.";
- mesg7.FrontPen=white;
- }
- if (owner[12] == 0)
- {
- mesg7.FrontPen=25;
- mesg7.IText=&name0[0];
- }
- if (owner[12] == 1)
- {
- mesg7.FrontPen=26;
- mesg7.IText=&name1[0];
- }
- if (owner[12] == 2)
- {
- mesg7.FrontPen=27;
- mesg7.IText=&name2[0];
- }
- if (owner[12] == 3)
- {
- mesg7.FrontPen=28;
- mesg7.IText=&name3[0];
- }
- }
- PrintIText(rportpropinfo, &mesg3, 0, 0);
- PrintIText(rportpropinfo, &mesg5, 0, 0);
- PrintIText(rportpropinfo, &mesg6, 0, 0);
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- PrintIText(rportpropinfo, &mesg10, 0, 0);
- }
-
- if ( (owner[prop] != nowrolling) && (owner[prop] == 0) )
- {
- mesg3.FrontPen=25;
- mesg3.IText=&name0[0];
- }
- if ( (owner[prop] != nowrolling) && (owner[prop] == 1) )
- {
- mesg3.FrontPen=26;
- mesg3.IText=&name1[0];
- }
- if ( (owner[prop] != nowrolling) && (owner[prop] == 2) )
- {
- mesg3.FrontPen=27;
- mesg3.IText=&name2[0];
- }
- if ( (owner[prop] != nowrolling) && (owner[prop] == 3) )
- {
- mesg3.FrontPen=28;
- mesg3.IText=&name3[0];
- }
- if ( (owner[prop] != nowrolling) && (owner[prop] != 9) )
- {
- mesg6.IText=(UBYTE *)"The rent is";
- mesg8.IText=(UBYTE *)"amount shown on the";
- mesg9.IText=(UBYTE *)"face of the dice.";
- if (numutil[owner[prop]] == 1)
- {
- mesg7.IText=(UBYTE *)"four times the";
- mesg4.IText=(UBYTE *)"owns this utility.";
- money=4*(dice0+dice1);
- if (doubleutil)
- {
- mesg7.IText=(UBYTE *)"ten times the";
- rolldice();
- money=10*(dice0+dice1);
- }
- eft(nowrolling, owner[prop], money);
- }
- if (numutil[owner[prop]] == 2)
- {
- mesg4.IText=(UBYTE *)"owns both utilities.";
- mesg7.IText=(UBYTE *)"ten times the";
- money=10*(dice0+dice1);
- if (doubleutil)
- {
- rolldice();
- money=10*(dice0+dice1);
- }
- eft(nowrolling, owner[prop], money);
-
- }
- switch (money)
- {
- case 8:
- mesg10.IText=(UBYTE *)"Pay $8.";
- break;
- case 12:
- mesg10.IText=(UBYTE *)"Pay $12.";
- break;
- case 16:
- mesg10.IText=(UBYTE *)"Pay $16.";
- break;
- case 20:
- mesg10.IText=(UBYTE *)"Pay $20.";
- break;
- case 24:
- mesg10.IText=(UBYTE *)"Pay $24.";
- break;
- case 28:
- mesg10.IText=(UBYTE *)"Pay $28.";
- break;
- case 30:
- mesg10.IText=(UBYTE *)"Pay $30.";
- break;
- case 32:
- mesg10.IText=(UBYTE *)"Pay $32.";
- break;
- case 36:
- mesg10.IText=(UBYTE *)"Pay $36.";
- break;
- case 40:
- mesg10.IText=(UBYTE *)"Pay $40.";
- break;
- case 44:
- mesg10.IText=(UBYTE *)"Pay $44.";
- break;
- case 48:
- mesg10.IText=(UBYTE *)"Pay $48.";
- break;
- case 50:
- mesg10.IText=(UBYTE *)"Pay $50.";
- break;
- case 60:
- mesg10.IText=(UBYTE *)"Pay $60.";
- break;
- case 70:
- mesg10.IText=(UBYTE *)"Pay $70.";
- break;
- case 80:
- mesg10.IText=(UBYTE *)"Pay $80.";
- break;
- case 90:
- mesg10.IText=(UBYTE *)"Pay $90.";
- break;
- case 100:
- mesg10.IText=(UBYTE *)"Pay $100.";
- break;
- case 110:
- mesg10.IText=(UBYTE *)"Pay $110.";
- break;
- case 120:
- mesg10.IText=(UBYTE *)"Pay $120.";
- break;
- }
- PrintIText(rportpropinfo, &mesg3, 0, 0);
- PrintIText(rportpropinfo, &mesg4, 0, 0);
- PrintIText(rportpropinfo, &mesg6, 0, -5);
- PrintIText(rportpropinfo, &mesg7, 0, -5);
- PrintIText(rportpropinfo, &mesg8, 0, -5);
- PrintIText(rportpropinfo, &mesg9, 0, -5);
- mesg10.FrontPen=red;
- mesg10.LeftEdge=0;
- PrintIText(rportpropinfo, &mesg10, 0, 0);
- mesg10.LeftEdge=30;
- }
- bypassrentutil:
- if (owner[prop] == nowrolling)
- {
- mesg3.IText=(UBYTE *)"You own it!";
- PrintIText(rportpropinfo, &mesg3, 0, 0);
- }
- doubleutil=FALSE;
- }
-
- VOID showpropinfo(prop)
- USHORT prop;
- {
- BOOL bypass=FALSE;
- USHORT hold_line;
-
- if (prop == 0)
- {
- mesg0.FrontPen=14;
- mesg1.FrontPen=14;
- mesg2.FrontPen=14;
- }
- if ( (prop == 1) || (prop == 3) )
- {
- mesg0.FrontPen=purple;
- mesg1.FrontPen=purple;
- mesg2.FrontPen=purple;
- mesg3.FrontPen=purple;
- mesg4.FrontPen=purple;
- mesg5.FrontPen=purple;
- mesg6.FrontPen=purple;
- mesg7.FrontPen=purple;
- mesg8.FrontPen=purple;
- mesg9.FrontPen=purple;
- }
- if ( (prop == 2) || (prop == 4) || (prop == 5) || (prop == 7) || (prop == 10)
- || (prop == 12) || (prop == 15) || (prop == 17) || (prop == 20) ||
- (prop == 22) || (prop == 25) || (prop == 28) || (prop == 30) ||
- (prop == 33) || (prop == 35) || (prop == 36) || (prop == 38) )
- {
- mesg0.FrontPen=white;
- mesg1.FrontPen=white;
- mesg2.FrontPen=white;
- mesg3.FrontPen=white;
- mesg4.FrontPen=white;
- mesg5.FrontPen=white;
- mesg6.FrontPen=white;
- mesg7.FrontPen=white;
- mesg8.FrontPen=white;
- mesg9.FrontPen=white;
- }
-
- if ( (prop == 6) || (prop == 8) || (prop == 9) )
- {
- mesg0.FrontPen=lt_blue;
- mesg1.FrontPen=lt_blue;
- mesg2.FrontPen=lt_blue;
- mesg3.FrontPen=lt_blue;
- mesg4.FrontPen=lt_blue;
- mesg5.FrontPen=lt_blue;
- mesg6.FrontPen=lt_blue;
- mesg7.FrontPen=lt_blue;
- mesg8.FrontPen=lt_blue;
- mesg9.FrontPen=lt_blue;
- }
-
-
- if ( (prop == 11) || (prop == 13) || (prop == 14) )
- {
- mesg0.FrontPen=maroon;
- mesg1.FrontPen=maroon;
- mesg2.FrontPen=maroon;
- mesg3.FrontPen=maroon;
- mesg4.FrontPen=maroon;
- mesg5.FrontPen=maroon;
- mesg6.FrontPen=maroon;
- mesg7.FrontPen=maroon;
- mesg8.FrontPen=maroon;
- mesg9.FrontPen=maroon;
- }
-
- if ( (prop == 16) || (prop == 18) || (prop == 19) )
- {
- mesg0.FrontPen=orange;
- mesg1.FrontPen=orange;
- mesg2.FrontPen=orange;
- mesg3.FrontPen=orange;
- mesg4.FrontPen=orange;
- mesg5.FrontPen=orange;
- mesg6.FrontPen=orange;
- mesg7.FrontPen=orange;
- mesg8.FrontPen=orange;
- mesg9.FrontPen=orange;
- }
-
- if ( (prop == 21) || (prop == 23) || (prop == 24) )
- {
- mesg0.FrontPen=red;
- mesg1.FrontPen=red;
- mesg2.FrontPen=red;
- mesg3.FrontPen=red;
- mesg4.FrontPen=red;
- mesg5.FrontPen=red;
- mesg6.FrontPen=red;
- mesg7.FrontPen=red;
- mesg8.FrontPen=red;
- mesg9.FrontPen=red;
- }
-
- if ( (prop == 26) || (prop == 27) || (prop == 29) )
- {
- mesg0.FrontPen=yellow;
- mesg1.FrontPen=yellow;
- mesg2.FrontPen=yellow;
- mesg3.FrontPen=yellow;
- mesg4.FrontPen=yellow;
- mesg5.FrontPen=yellow;
- mesg6.FrontPen=yellow;
- mesg7.FrontPen=yellow;
- mesg8.FrontPen=yellow;
- mesg9.FrontPen=yellow;
- }
-
- if ( (prop == 31) || (prop == 32) || (prop == 34) )
- {
- mesg0.FrontPen=green;
- mesg1.FrontPen=green;
- mesg2.FrontPen=green;
- mesg3.FrontPen=green;
- mesg4.FrontPen=green;
- mesg5.FrontPen=green;
- mesg6.FrontPen=green;
- mesg7.FrontPen=green;
- mesg8.FrontPen=green;
- mesg9.FrontPen=green;
- }
-
- if ( (prop == 37) || (prop == 39) )
- {
- mesg0.FrontPen=dk_blue;
- mesg1.FrontPen=dk_blue;
- mesg2.FrontPen=dk_blue;
- mesg3.FrontPen=dk_blue;
- mesg4.FrontPen=dk_blue;
- mesg5.FrontPen=dk_blue;
- mesg6.FrontPen=dk_blue;
- mesg7.FrontPen=dk_blue;
- mesg8.FrontPen=dk_blue;
- mesg9.FrontPen=dk_blue;
- }
-
- mesg0.BackPen=0;
- mesg0.DrawMode=JAM1;
- mesg0.LeftEdge=5;
- mesg0.TopEdge=19;
- mesg0.ITextFont=NULL;
- mesg0.NextText=NULL;
- mesg0.IText=(UBYTE *)"You have landed on";
-
- mesg1.BackPen=0;
- mesg1.DrawMode=JAM1;
- mesg1.LeftEdge=5;
- mesg1.TopEdge=29;
- mesg1.ITextFont=NULL;
- mesg1.NextText=NULL;
-
- mesg2.BackPen=0;
- mesg2.DrawMode=JAM1;
- mesg2.LeftEdge=5;
- mesg2.TopEdge=39;
- mesg2.ITextFont=NULL;
- mesg2.NextText=NULL;
-
- if ( (owner[prop] != nowrolling) &&
- (owner[prop] == 0) )
- {
- mesg2.FrontPen=25;
- mesg2.IText=&name0[0];
- }
- if ( (owner[prop] != nowrolling)
- && (owner[prop] == 1) )
- {
- mesg2.FrontPen=26;
- mesg2.IText=&name1[0];
- }
-
- if ( (owner[prop] != nowrolling)
- && (owner[prop] == 2) )
- {
- mesg2.FrontPen=27;
- mesg2.IText=&name2[0];
- }
- if ( (owner[prop] != nowrolling)
- && (owner[prop] == 3) )
- {
- mesg2.FrontPen=28;
- mesg2.IText=&name3[0];
- }
-
-
- mesg3.BackPen=0;
- mesg3.DrawMode=JAM1;
- mesg3.LeftEdge=5;
- mesg3.TopEdge=49;
- mesg3.ITextFont=NULL;
- mesg3.NextText=NULL;
-
- mesg4.BackPen=0;
- mesg4.DrawMode=JAM1;
- mesg4.LeftEdge=5;
- mesg4.TopEdge=59;
- mesg4.ITextFont=NULL;
- mesg4.NextText=NULL;
-
- mesg5.BackPen=0;
- mesg5.DrawMode=JAM1;
- mesg5.LeftEdge=5;
- mesg5.TopEdge=69;
- mesg5.ITextFont=NULL;
- mesg5.NextText=NULL;
-
- mesg6.BackPen=0;
- mesg6.DrawMode=JAM1;
- mesg6.LeftEdge=5;
- mesg6.TopEdge=79;
- mesg6.ITextFont=NULL;
- mesg6.NextText=NULL;
-
- mesg7.BackPen=0;
- mesg7.DrawMode=JAM1;
- mesg7.LeftEdge=5;
- mesg7.TopEdge=89;
- mesg7.ITextFont=NULL;
- mesg7.NextText=NULL;
-
- mesg8.BackPen=0;
- mesg8.DrawMode=JAM1;
- mesg8.LeftEdge=5;
- mesg8.TopEdge=99;
- mesg8.ITextFont=NULL;
- mesg8.NextText=NULL;
-
- mesg9.BackPen=0;
- mesg9.DrawMode=JAM1;
- mesg9.LeftEdge=5;
- mesg9.TopEdge=109;
- mesg9.ITextFont=NULL;
- mesg9.NextText=NULL;
-
- mesg10.FrontPen=white;
- mesg10.BackPen=0;
- mesg10.DrawMode=JAM1;
- mesg10.LeftEdge=30;
- mesg10.TopEdge=119;
- mesg10.ITextFont=NULL;
- mesg10.NextText=NULL;
- mesg10.IText=(UBYTE *)"Will you buy it?";
-
- npropinfow.FirstGadget=&continuegag;
- if (prop == 4) npropinfow.FirstGadget=&percentgag;
- if (owner[prop] == 9) npropinfow.FirstGadget=&yesgag;
- npropinfow.Screen=screen1;
-
- yesgag.LeftEdge=110;
- yesgag.TopEdge=130;
- nogag.LeftEdge=53;
- nogag.TopEdge=130;
-
- percentgag.LeftEdge=115;
- percentgag.TopEdge=130;
- taxgag.LeftEdge=38;
- taxgag.TopEdge=130;
-
- if ( (owner[prop] != nowrolling) && (owner[prop] != 9) )
- mesg3.IText=(UBYTE *)"owns this property";
-
- if ( (prop != 2) && (prop != 7) && (prop != 17) && (prop != 22) &&
- (prop != 33) && (prop != 36) )
- {
- if ((propinfowindow=(struct Window *)OpenWindow(&npropinfow))==NULL)
- cleanup();
- rportpropinfo=propinfowindow->RPort;
- SetMenuStrip(propinfowindow, &Menu6);
- if (prop == 4)
- {
- OffMenu(propinfowindow, 128);
- OffMenu(propinfowindow, 160);
- if (nowrolling == 0) OffMenu(propinfowindow, 97);
- if (nowrolling == 1) OffMenu(propinfowindow, 2145);
- if (nowrolling == 2) OffMenu(propinfowindow, 4193);
- if (nowrolling == 3) OffMenu(propinfowindow, 6241);
- }
- else
- {
- OnMenu(propinfowindow, 128);
- OnMenu(propinfowindow, 160);
- OnMenu(propinfowindow, 97);
- OnMenu(propinfowindow, 2145);
- if (nsp == 3) OnMenu(propinfowindow, 4193);
- if (nsp == 4) OnMenu(propinfowindow, 6241);
- }
- fixpropmenu(nowrolling);
- PrintIText(rportpropinfo, &cname, 0, 0);
- }
- donepropinfo=FALSE;
- switch (prop)
- {
- case 0:
- mesg3.IText=(UBYTE *)"CONGRATULATIONS!!!";
- mesg5.IText=(UBYTE *)"YOU LANDED ON GO!!";
- mesg7.IText=(UBYTE *)"COLLECT $200!";
- mesg3.FrontPen=dk_blue;
- mesg5.FrontPen=maroon;
- mesg7.FrontPen=green;
- PrintIText(rportpropinfo, &mesg3, 20, 0);
- PrintIText(rportpropinfo, &mesg5, 20, 0);
- PrintIText(rportpropinfo, &mesg7, 40, 0);
- eft(5, nowrolling, 200);
- break;
- case 1:
- show2("MEDITERRANEAN AVE.", "BALTIC AVE.", prop);
- break;
- case 2:
- bypass=TRUE;
- (VOID) chest();
- break;
- case 3:
- show2("BALTIC AVE.", "MEDITERRANEAN AVE.", prop);
- break;
- case 4:
- mesg1.IText=(UBYTE *)"INCOME TAX.";
- mesg3.IText=(UBYTE *)"You may choose to pay";
- mesg4.IText=(UBYTE *)"either $200 OR 10% of";
- mesg5.IText=(UBYTE *)"your TOTAL ASSETS.";
- mesg6.IText=(UBYTE *)"You MAY NOT count";
- mesg7.IText=(UBYTE *)"your assets!";
- mesg9.IText=(UBYTE *)" CHOOSE:";
- mesg3.FrontPen=red;
- mesg4.FrontPen=red;
- mesg5.FrontPen=red;
- mesg6.FrontPen=yellow;
- mesg7.FrontPen=yellow;
- mesg9.FrontPen=green;
- PrintIText(rportpropinfo, &mesg0, 0, 0);
- PrintIText(rportpropinfo, &mesg1, 0, 0);
- PrintIText(rportpropinfo, &mesg3, 0, 0);
- PrintIText(rportpropinfo, &mesg4, 0, 0);
- PrintIText(rportpropinfo, &mesg5, 0, 0);
- PrintIText(rportpropinfo, &mesg6, 0, 0);
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- PrintIText(rportpropinfo, &mesg9, 0, 0);
- break;
- case 5:
- mesg1.IText=(UBYTE *)"READING RAILROAD.";
- showrr(prop);
- break;
- case 6:
- show3("ORIENTAL AVE.", "VERMONT AVE.", "CONNECTICUT AVE.", prop);
- break;
- case 7:
- bypass=TRUE;
- (VOID) chance();
- break;
- case 8:
- show3("VERMONT AVE.", "ORIENTAL AVE.", "CONNECTICUT AVE.", prop);
- break;
- case 9:
- show3("CONNECTICUT AVE.", "ORIENTAL AVE.", "VERMONT AVE.", prop);
- break;
- case 10:
- mesg1.IText=(UBYTE *)"You are";
- mesg2.IText=(UBYTE *)"just visiting jail.";
- mesg1.FrontPen=lt_gray;
- mesg2.FrontPen=lt_gray;
- PrintIText(rportpropinfo, &mesg1, 0, 0);
- PrintIText(rportpropinfo, &mesg2, 0, 0);
- break;
- case 11:
- show3("ST. CHARLES PLACE.", "STATES AVE.", "VIRGINIA AVE.", prop);
- break;
- case 12:
- showutil(prop);
- break;
- case 13:
- show3("STATES AVE.", "ST. CHARLES PLACE.", "VIRGINIA AVE.", prop);
- break;
- case 14:
- show3("VIRGINIA AVE.", "ST. CHARLES PLACE.", "STATES AVE.", prop);
- break;
- case 15:
- mesg1.IText=(UBYTE *)"PENNSYLVANIA RAILROAD.";
- showrr(prop);
- break;
- case 16:
- show3("ST. JAMES PLACE.", "TENNESSEE AVE.", "NEW YORK AVE.", prop);
- break;
- case 17:
- bypass=TRUE;
- (VOID) chest();
- break;
- case 18:
- show3("TENNESSEE AVE.", "ST. JAMES PLACE.", "NEW YORK AVE.", prop);
- break;
- case 19:
- show3("NEW YORK AVE.", "ST. JAMES PLACE.", "TENNESSEE AVE.", prop);
- break;
- case 20:
- /* set up free-parking slush-fund */
- if (free_parking)
- {
- bankroll[nowrolling]=bankroll[nowrolling]+bankroll[SLUSH];
- /* set up a notice */
- }
- mesg2.IText=(UBYTE *)"RELAX!!";
- mesg4.IText=(UBYTE *)"YOU LANDED ON";
- mesg6.IText=(UBYTE *)"FREE PARKING";
- mesg2.FrontPen=purple;
- mesg4.FrontPen=dk_blue;
- mesg6.FrontPen=dk_maroon;
- PrintIText(rportpropinfo, &mesg2, 66, 0);
- PrintIText(rportpropinfo, &mesg4, 40, 0);
- PrintIText(rportpropinfo, &mesg6, 44, 0);
- break;
- case 21:
- show3("KENTUCKY AVE.", "INDIANA AVE.", "ILLINOIS AVE.", prop);
- break;
- case 22:
- bypass=TRUE;
- (VOID) chance();
- break;
- case 23:
- show3("INDIANA AVE.", "KENTUCKY AVE.", "ILLINOIS AVE.", prop);
- break;
- case 24:
- show3("ILLINOIS AVE.", "KENTUCKY AVE.", "INDIANA AVE.", prop);
- break;
- case 25:
- mesg1.IText=(UBYTE *)"B. & O. RAILROAD.";
- showrr(prop);
- break;
- case 26:
- show3("ATLANTIC AVE.", "VENTNOR AVE.", "MARVIN GARDENS.", prop);
- break;
- case 27:
- show3("VENTNOR AVE.", "ATLANTIC AVE.", "MARVIN GARDENS.", prop);
- break;
- case 28:
- showutil(prop);
- break;
- case 29:
- show3("MARVIN GARDENS.", "ATLANTIC AVE.", "VENTNOR AVE.", prop);
- break;
- case 30:
- mesg1.IText=(UBYTE *)"UP AGAINST THE WALL!!";
- mesg3.IText=(UBYTE *)"TOUGH LUCK!";
- mesg5.IText=(UBYTE *)"GO DIRECTLY TO JAIL!";
- mesg7.IText=(UBYTE *)"DO NOT PASS GO!";
- mesg9.IText=(UBYTE *)"DO NOT COLLECT $200!";
- mesg1.FrontPen=yellow;
- mesg3.FrontPen=dk_gray;
- mesg5.FrontPen=lt_gray;
- mesg7.FrontPen=dk_gray;
- mesg9.FrontPen=red;
- PrintIText(rportpropinfo, &mesg1, 0, 0);
- PrintIText(rportpropinfo, &mesg3, 0, 0);
- PrintIText(rportpropinfo, &mesg5, 0, 0);
- PrintIText(rportpropinfo, &mesg7, 0, 0);
- PrintIText(rportpropinfo, &mesg9, 0, 0);
- break;
- case 31:
- show3("PACIFIC AVE.", "NORTH CAROLINA AVE.", "PENNSYLVANIA AVE.", prop);
- break;
- case 32:
- show3("NORTH CAROLINA AVE.", "PACIFIC AVE.", "PENNSYLVANIA AVE.", prop);
- break;
- case 33:
- bypass=TRUE;
- (VOID) chest();
- break;
- case 34:
- show3("PENNSYLVANIA AVE.", "PACIFIC AVE.", "NORTH CAROLINA AVE.", prop);
- break;
- case 35:
- mesg1.IText=(UBYTE *)"SHORT LINE RAILROAD.";
- showrr(prop);
- break;
- case 36:
- bypass=TRUE;
- (VOID) chance();
- break;
- case 37:
- show2("PARK PLACE.", "BOARD WALK.", prop);
- break;
- case 38:
- mesg1.IText=(UBYTE *)"LUXURY TAX.";
- mesg3.IText=(UBYTE *)"You owe $75.";
- mesg3.FrontPen=red;
- PrintIText(rportpropinfo, &mesg0, 0, 0);
- PrintIText(rportpropinfo, &mesg1, 0, 0);
- PrintIText(rportpropinfo, &mesg3, 0, 0);
- eft(nowrolling, 4, 75);
- break;
- case 39:
- show2("BOARD WALK.", "PARK PLACE.", prop);
- break;
- } /* end of switch */
-
- if (!bypass)
- {
- line0_text=148;
- for (j=0, hold_line=line0_text; j<SHOW_LINES; j++)
- instructIT[j].IText=instructline[hold_line++];
-
- while (!donepropinfo)
- {
- if (1<<propinfowindow->UserPort->mp_SigBit) ckpropinfomsg();
- }
- ClearMenuStrip(propinfowindow);
- CloseWindow(propinfowindow);
- if (buyfrombank == TRUE)
- transfertitle (nowrolling, 5, prop, propcost[prop]);
- if (didntbuyfrombank)
- {
- auctionprop(prop);
- didntbuyfrombank=FALSE;
- }
- }
- }
-
-