home *** CD-ROM | disk | FTP | other *** search
- /* f7.c contains these monopoly functions
- ckmanemsg(), getplayerinfo(), dicecup() */
-
- #include "mono:defines"
- #include "mono:xvariables"
-
-
- ckmanemsg()
- {
- ULONG mclass;
- USHORT code, hold_line;
- mclass=0;
- code=0;
-
-
- if (ntp == 1)
- {
- done=TRUE;
- return(0);
- }
-
- line0_text=0;
- if (isinjail[nowrolling]) line0_text=136;
-
- for (j=0, hold_line=line0_text; j<SHOW_LINES; j++)
- instructIT[j].IText=instructline[hold_line++];
-
- while(message=(struct IntuiMessage *)GetMsg(boardwindow->UserPort))
- {
- mclass = message->Class;
- code = message->Code;
- mouseX = message->MouseX;
- mouseY = message->MouseY;
- ReplyMsg(message);
-
- if ( (mclass == MOUSEBUTTONS) && (code == SELECTDOWN) )
- {
- if ( (mouseX > 146) && (mouseX < 174) &&
- (mouseY > 130) && (mouseY < 168) ) roll();
- if ( (mouseX > 304) && (mouseX < 315) &&
- (mouseY > 1) && (mouseY < 11) ) ScreenToBack(screen1);
- }
- if ( (mclass == MENUPICK) && (code != MENUNULL) )
- servicemenu(MENUNUM(code), ITEMNUM(code), SUBNUM(code));
- if (mclass == RAWKEY)
- {
- if (code == 0x5f) instruction();
- else printf("code was %ld\n", code);
- }
- }
- return(0);
- }
-
- VOID getplayerinfo()
- {
- USHORT hold_line;
-
- intro0text.FrontPen=dk_blue;
- intro0text.BackPen=0;
- intro0text.DrawMode=JAM1;
- intro0text.LeftEdge=56;
- intro0text.TopEdge=15;
- intro0text.ITextFont=NULL;
- intro0text.IText=(UBYTE *)"PARKER BROTHER'S";
- intro0text.NextText=&intro0atext;
-
- intro0atext.FrontPen=red;
- intro0atext.BackPen=0;
- intro0atext.DrawMode=JAM1;
- intro0atext.LeftEdge=200;
- intro0atext.TopEdge=15;
- intro0atext.ITextFont=NULL;
- intro0atext.IText=(UBYTE *)"MONOPOLY";
- intro0atext.NextText=&intro1text;
-
- intro1text.FrontPen=29;
- intro1text.BackPen=0;
- intro1text.DrawMode=JAM1;
- intro1text.LeftEdge=60;
- intro1text.TopEdge=27;
- intro1text.ITextFont=NULL;
- intro1text.IText=(UBYTE *)"a game for 2 to 4 players";
- intro1text.NextText=&intro2text;
-
- intro2text.FrontPen=brite_green;
- intro2text.BackPen=0;
- intro2text.DrawMode=JAM1;
- intro2text.LeftEdge=25;
- intro2text.TopEdge=56;
- intro2text.ITextFont=NULL;
- intro2text.IText=(UBYTE *)"Use the <HELP> key for directions.";
- intro2text.NextText=&intro3text;
-
- intro3text.FrontPen=royal_blue;
- intro3text.BackPen=0;
- intro3text.DrawMode=JAM1;
- intro3text.LeftEdge=28;
- intro3text.TopEdge=80;
- intro3text.ITextFont=NULL;
- intro3text.NextText=&intro4text;
- intro3text.IText=(UBYTE *)"Select the number gadget; delete,";
-
- intro4text.FrontPen=royal_blue;
- intro4text.BackPen=0;
- intro4text.DrawMode=JAM1;
- intro4text.LeftEdge=28;
- intro4text.TopEdge=92;
- intro4text.ITextFont=NULL;
- intro4text.NextText=NULL;
- intro4text.IText=(UBYTE *)"then enter the number of players.";
-
- name0text.FrontPen=lt_blue;
- name0text.BackPen=0;
- name0text.DrawMode=JAM1;
- name0text.LeftEdge=22;
- name0text.TopEdge=60;
- name0text.ITextFont=NULL;
- name0text.IText=&name0[0];
- name0text.NextText=NULL;
-
- name1text.FrontPen=purple;
- name1text.BackPen=0;
- name1text.DrawMode=JAM1;
- name1text.LeftEdge=22;
- name1text.TopEdge=75;
- name1text.ITextFont=NULL;
- name1text.IText=&name1[0];
- name1text.NextText=NULL;
-
- name2text.FrontPen=yellow;
- name2text.BackPen=0;
- name2text.DrawMode=JAM1;
- name2text.LeftEdge=22;
- name2text.TopEdge=90;
- name2text.ITextFont=NULL;
- name2text.IText=&name2[0];
- name2text.NextText=NULL;
-
- name3text.FrontPen=dk_blue;
- name3text.BackPen=0;
- name3text.DrawMode=JAM1;
- name3text.LeftEdge=22;
- name3text.TopEdge=105;
- name3text.ITextFont=NULL;
- name3text.IText=&name3[0];
- name3text.NextText=NULL;
-
-
- verifyn0text.FrontPen=30;
- verifyn0text.BackPen=0;
- verifyn0text.DrawMode=JAM1;
- verifyn0text.LeftEdge=64;
- verifyn0text.TopEdge=30;
- verifyn0text.ITextFont=NULL;
- verifyn0text.IText=(UBYTE *)"THESE ARE THE NAMES THAT";
- verifyn0text.NextText=&verifyn1text;
-
- verifyn1text.FrontPen=30;
- verifyn1text.BackPen=0;
- verifyn1text.DrawMode=JAM1;
- verifyn1text.LeftEdge=72;
- verifyn1text.TopEdge=40;
- verifyn1text.ITextFont=NULL;
- verifyn1text.IText=(UBYTE *)"REPRESENT THE PLAYERS:";
- verifyn1text.NextText=NULL;
-
- verifyngagtext.FrontPen=green;
- verifyngagtext.BackPen=0;
- verifyngagtext.DrawMode=JAM1;
- verifyngagtext.LeftEdge=0;
- verifyngagtext.TopEdge=1;
- verifyngagtext.ITextFont=NULL;
- verifyngagtext.IText=(UBYTE *)"SATISFIED WITH NAMES";
- verifyngagtext.NextText=NULL;
-
- denyngagtext.FrontPen=red;
- denyngagtext.BackPen=0;
- denyngagtext.DrawMode=JAM1;
- denyngagtext.LeftEdge=0;
- denyngagtext.TopEdge=1;
- denyngagtext.ITextFont=NULL;
- denyngagtext.IText=(UBYTE *)"CHANGE NAMES";
- denyngagtext.NextText=NULL;
-
- xnamegagtext.FrontPen=green;
- xnamegagtext.BackPen=0;
- xnamegagtext.DrawMode=JAM1;
- xnamegagtext.LeftEdge=0;
- xnamegagtext.TopEdge=1;
- xnamegagtext.ITextFont=NULL;
- xnamegagtext.IText=(UBYTE *)"SATISFIED WITH NAMES";
- xnamegagtext.NextText=NULL;
-
- xname0text.FrontPen=1;
- xname0text.BackPen=0;
- xname0text.DrawMode=JAM1;
- xname0text.LeftEdge=32;
- xname0text.TopEdge=11;
- xname0text.ITextFont=NULL;
- xname0text.IText=(UBYTE *)"Please enter each player's name.";
- xname0text.NextText=&xname1text;
-
- xname1text.FrontPen=1;
- xname1text.BackPen=0;
- xname1text.DrawMode=JAM1;
- xname1text.LeftEdge=40;
- xname1text.TopEdge=21;
- xname1text.ITextFont=NULL;
- xname1text.IText=(UBYTE *)"First, select a name-gadget by";
- xname1text.NextText=&xname2text;
-
- xname2text.FrontPen=1;
- xname2text.BackPen=0;
- xname2text.DrawMode=JAM1;
- xname2text.LeftEdge=36;
- xname2text.TopEdge=31;
- xname2text.ITextFont=NULL;
- xname2text.IText=(UBYTE *)"clicking within it. Next, hit:";
- xname2text.NextText=&xname3text;
-
- xname3text.FrontPen=29;
- xname3text.BackPen=0;
- xname3text.DrawMode=JAM1;
- xname3text.LeftEdge=5;
- xname3text.TopEdge=41;
- xname3text.ITextFont=NULL;
- xname3text.IText=(UBYTE *)"<right-Amiga>+<x>, <DEL>";
- xname3text.NextText=&xname3atext;
-
- xname3atext.FrontPen=1;
- xname3atext.BackPen=5;
- xname3atext.DrawMode=JAM1;
- xname3atext.LeftEdge=203;
- xname3atext.TopEdge=41;
- xname3atext.ITextFont=NULL;
- xname3atext.IText=(UBYTE *)"or";
- xname3atext.NextText=&xname3btext;
-
- xname3btext.FrontPen=29;
- xname3btext.BackPen=5;
- xname3btext.DrawMode=JAM1;
- xname3btext.LeftEdge=225;
- xname3btext.TopEdge=41;
- xname3btext.ITextFont=NULL;
- xname3btext.IText=(UBYTE *)"<BACKSPACE>";
- xname3btext.NextText=&xname4text;
-
- xname4text.FrontPen=1;
- xname4text.BackPen=0;
- xname4text.DrawMode=JAM1;
- xname4text.LeftEdge=80;
- xname4text.TopEdge=51;
- xname4text.ITextFont=NULL;
- xname4text.IText=(UBYTE *)"to clear the gadget.";
- xname4text.NextText=&xname5text;
-
- xname5text.FrontPen=17;
- xname5text.BackPen=0;
- xname5text.DrawMode=JAM1;
- xname5text.LeftEdge=64;
- xname5text.TopEdge=66;
- xname5text.ITextFont=NULL;
- xname5text.IText=(UBYTE *)"Finally, enter your name!";
- xname5text.NextText=NULL;
-
- nhptext.FrontPen=lt_blue;
- nhptext.BackPen=0;
- nhptext.DrawMode=JAM1;
- nhptext.LeftEdge=-74;
- nhptext.TopEdge=-12;
- nhptext.ITextFont=NULL;
- nhptext.IText=(UBYTE *)"How many human players?";
- nhptext.NextText=NULL;
-
- /* first gadget in first openinfo window */
- /* nhpgag.NextGadget=&ncpgag; */
- nhpgag.NextGadget=&xnumgag;
- nhpgag.LeftEdge=142;
- /* nhpgag.TopEdge=90; */
- nhpgag.TopEdge=120;
- nhpgag.Width=24;
- nhpgag.Height=10;
- nhpgag.Flags=GADGHNONE;
- nhpgag.Activation=STRINGCENTER | LONGINT | GADGIMMEDIATE;
- nhpgag.GadgetType=STRGADGET;
- nhpgag.GadgetRender=(APTR)&nhpborder;
- nhpgag.SelectRender=NULL;
- nhpgag.GadgetText=&nhptext;
- nhpgag.MutualExclude=NULL;
- nhpgag.SpecialInfo=(APTR)&nhpinfo;
- nhpgag.GadgetID=0;
- nhpgag.UserData=NULL;
-
-
- nhpinfo.Buffer=nbufnhp;
- nhpinfo.UndoBuffer=undobufi;
- nhpinfo.MaxChars=2;
- nhpinfo.BufferPos=0;
- nhpinfo.DispPos=0;
- nhpinfo.LongInt=0;
-
- ncptext.FrontPen=1;
- ncptext.BackPen=0;
- ncptext.DrawMode=JAM1;
- ncptext.LeftEdge=-89;
- ncptext.TopEdge=-12;
- ncptext.ITextFont=NULL;
- ncptext.IText=(UBYTE *)"How many computer players?";
- ncptext.NextText=NULL;
-
- /* define gadget structure for string gadget */
- ncpgag.NextGadget=&xnumgag;
- ncpgag.LeftEdge=143;
- ncpgag.TopEdge=135;
- ncpgag.Width=24;
- ncpgag.Height=10;
- ncpgag.Flags=GADGHNONE;
- ncpgag.Activation=STRINGCENTER | LONGINT | GADGIMMEDIATE;
- ncpgag.GadgetType=STRGADGET;
- ncpgag.GadgetRender=(APTR)&ncpborder;
- ncpgag.SelectRender=NULL;
- ncpgag.GadgetText=&ncptext;
- ncpgag.MutualExclude=NULL;
- ncpgag.SpecialInfo=(APTR)&ncpinfo;
- ncpgag.GadgetID=1;
- ncpgag.UserData=NULL;
-
-
- ncpinfo.Buffer=nbufncp;
- ncpinfo.UndoBuffer=undobufi;
- ncpinfo.MaxChars=2;
- ncpinfo.BufferPos=0;
- ncpinfo.DispPos=0;
- ncpinfo.LongInt=0;
-
- xnumtext.FrontPen=green;
- xnumtext.BackPen=0;
- xnumtext.DrawMode=JAM1;
- xnumtext.LeftEdge=0;
- xnumtext.TopEdge=1;
- xnumtext.ITextFont=NULL;
- xnumtext.IText=(UBYTE *)"CONTINUE";
- xnumtext.NextText=NULL;
-
- /* define gadget structure for boolean gadget */
- xnumgag.NextGadget=NULL;
- xnumgag.LeftEdge=124;
- xnumgag.TopEdge=170;
- xnumgag.Width=64;
- xnumgag.Height=10;
- xnumgag.Flags=GADGHCOMP;
- xnumgag.Activation=GADGIMMEDIATE;
- xnumgag.GadgetType=BOOLGADGET;
- xnumgag.GadgetRender=(APTR)&xnborder;
- xnumgag.SelectRender=NULL;
- xnumgag.GadgetText=&xnumtext;
- xnumgag.MutualExclude=NULL;
- xnumgag.SpecialInfo=NULL;
- xnumgag.GadgetID=2;
- xnumgag.UserData=NULL;
-
- /* define first gadget for second page openinfo */
- name0gag.LeftEdge=10;
- name0gag.TopEdge=92;
- name0gag.Width=300;
- name0gag.Height=10;
- name0gag.Flags=GADGHNONE;
- name0gag.Activation=STRINGCENTER | GADGIMMEDIATE;
- name0gag.GadgetType=STRGADGET;
- name0gag.GadgetRender=(APTR)&name0border;
- name0gag.SelectRender=NULL;
- name0gag.GadgetText=NULL;
- name0gag.MutualExclude=NULL;
- name0gag.SpecialInfo=(APTR)&n0info;
- name0gag.GadgetID=3;
- name0gag.UserData=NULL;
-
- n0info.Buffer=name0;
- n0info.UndoBuffer=nameundobuf;
- n0info.MaxChars=35;
- n0info.BufferPos=0;
- n0info.DispPos=0;
- n0info.LongInt=0;
-
- /* define gadget structure for string gadget */
- name1gag.LeftEdge=10;
- name1gag.TopEdge=113;
- name1gag.Width=300;
- name1gag.Height=10;
- name1gag.Flags=GADGHNONE;
- name1gag.Activation=STRINGCENTER | GADGIMMEDIATE;
- name1gag.GadgetType=STRGADGET;
- name1gag.GadgetRender=(APTR)&name1border;
- name1gag.SelectRender=NULL;
- name1gag.GadgetText=NULL;
- name1gag.MutualExclude=NULL;
- name1gag.SpecialInfo=(APTR)&n1info;
- name1gag.GadgetID=4;
- name1gag.UserData=NULL;
-
- n1info.Buffer=name1;
- n1info.UndoBuffer=nameundobuf;
- n1info.MaxChars=35;
- n1info.BufferPos=0;
- n1info.DispPos=0;
- n1info.LongInt=0;
-
- /* define gadget structure for string gadget */
- name2gag.LeftEdge=10;
- name2gag.TopEdge=134;
- name2gag.Width=300;
- name2gag.Height=10;
- name2gag.Flags=GADGHNONE;
- name2gag.Activation=STRINGCENTER | GADGIMMEDIATE;
- name2gag.GadgetType=STRGADGET;
- name2gag.GadgetRender=(APTR)&name2border;
- name2gag.SelectRender=NULL;
- name2gag.GadgetText=NULL;
- name2gag.MutualExclude=NULL;
- name2gag.SpecialInfo=(APTR)&n2info;
- name2gag.GadgetID=5;
- name2gag.UserData=NULL;
-
- n2info.Buffer=name2;
- n2info.UndoBuffer=nameundobuf;
- n2info.MaxChars=35;
- n2info.BufferPos=0;
- n2info.DispPos=0;
- n2info.LongInt=0;
-
- /* define gadget structure for string gadget */
- name3gag.LeftEdge=10;
- name3gag.TopEdge=155;
- name3gag.Width=300;
- name3gag.Height=10;
- name3gag.Flags=GADGHNONE;
- name3gag.Activation=STRINGCENTER | GADGIMMEDIATE;
- name3gag.GadgetType=STRGADGET;
- name3gag.GadgetRender=(APTR)&name3border;
- name3gag.SelectRender=NULL;
- name3gag.GadgetText=NULL;
- name3gag.MutualExclude=NULL;
- name3gag.SpecialInfo=(APTR)&n3info;
- name3gag.GadgetID=6;
- name3gag.UserData=NULL;
-
- n3info.Buffer=name3;
- n3info.UndoBuffer=nameundobuf;
- n3info.MaxChars=35;
- n3info.BufferPos=0;
- n3info.DispPos=0;
- n3info.LongInt=0;
-
- /* define gadget structure for boolean gadget */
- xnamegag.NextGadget=NULL;
- xnamegag.LeftEdge=80;
- xnamegag.TopEdge=170;
- xnamegag.Width=160;
- xnamegag.Height=10;
- xnamegag.Flags=GADGHCOMP;
- xnamegag.Activation=GADGIMMEDIATE;
- xnamegag.GadgetType=BOOLGADGET;
- xnamegag.GadgetRender=(APTR)&xnameborder;
- xnamegag.SelectRender=NULL;
- xnamegag.GadgetText=&xnamegagtext;
- xnamegag.MutualExclude=NULL;
- xnamegag.SpecialInfo=NULL;
- xnamegag.GadgetID=7;
- xnamegag.UserData=NULL;
-
- /* define boolean gadget for verify names */
- verifyngag.NextGadget=&denyngag;
- verifyngag.LeftEdge=140;
- verifyngag.TopEdge=170;
- verifyngag.Width=160;
- verifyngag.Height=10;
- verifyngag.Flags=GADGHCOMP;
- verifyngag.Activation=GADGIMMEDIATE;
- verifyngag.GadgetType=BOOLGADGET;
- verifyngag.GadgetRender=(APTR)&verifynborder;
- verifyngag.SelectRender=NULL;
- verifyngag.GadgetText=&verifyngagtext;
- verifyngag.MutualExclude=NULL;
- verifyngag.SpecialInfo=NULL;
- verifyngag.GadgetID=8;
- verifyngag.UserData=NULL;
-
- /* define gadget structure for boolean gadget */
- denyngag.NextGadget=NULL;
- denyngag.LeftEdge=20;
- denyngag.TopEdge=170;
- denyngag.Width=96;
- denyngag.Height=10;
- denyngag.Flags=GADGHCOMP;
- denyngag.Activation=GADGIMMEDIATE;
- denyngag.GadgetType=BOOLGADGET;
- denyngag.GadgetRender=(APTR)&denynborder;
- denyngag.SelectRender=NULL;
- denyngag.GadgetText=&denyngagtext;
- denyngag.MutualExclude=NULL;
- denyngag.SpecialInfo=NULL;
- denyngag.GadgetID=9;
- denyngag.UserData=NULL;
-
-
- ninfow.Screen=screen1;
- ninfow.FirstGadget=&nhpgag;
- if ((infowindow=(struct Window *)OpenWindow(&ninfow))==NULL) cleanup();
- rportinfo=infowindow->RPort;
- PrintIText(rportinfo, &intro0text, 0, 0);
-
- line0_text=0; /* will be > 147 get # human players */
- for (j=0, hold_line=line0_text; j<SHOW_LINES; j++)
- instructIT[j].IText=instructline[hold_line++];
-
- endnum=FALSE;
- while (!endnum)
- {
- if (1<<infowindow->UserPort->mp_SigBit) ckinfomsg();
- }
- CloseWindow(infowindow);
- ntp=nhp+ncp;
- if (nhp=1)
- {
- if (ncp=1)
- {
- typeplayer0=HUMAN;
- typeplayer1=COMPUTER;
- typeplayer2=DEAD;
- typeplayer3=DEAD;
- }
- if (ncp=2)
- {
- typeplayer0=HUMAN;
- typeplayer1=COMPUTER;
- typeplayer2=COMPUTER;
- typeplayer3=DEAD;
- }
- if (ncp=3)
- {
- typeplayer0=HUMAN;
- typeplayer1=COMPUTER;
- typeplayer2=COMPUTER;
- typeplayer3=COMPUTER;
- }
- }
- if (nhp == 2)
- {
- if (ncp=1)
- {
- typeplayer0=HUMAN;
- typeplayer1=HUMAN;
- typeplayer2=COMPUTER;
- typeplayer3=DEAD;
- }
- if (ncp=2)
- {
- typeplayer0=HUMAN;
- typeplayer1=HUMAN;
- typeplayer2=COMPUTER;
- typeplayer3=COMPUTER;
- }
- if (ncp=0)
- {
- typeplayer0=HUMAN;
- typeplayer1=HUMAN;
- typeplayer2=DEAD;
- typeplayer3=DEAD;
- }
- }
- if (nhp == 3)
- {
- if (ncp=1)
- {
- typeplayer0=HUMAN;
- typeplayer1=HUMAN;
- typeplayer2=HUMAN;
- typeplayer3=COMPUTER;
- }
- if (ncp=0)
- {
- typeplayer0=HUMAN;
- typeplayer1=HUMAN;
- typeplayer2=HUMAN;
- typeplayer3=DEAD;
- }
- }
- if (nhp=4)
- {
- typeplayer0=HUMAN;
- typeplayer1=HUMAN;
- typeplayer2=HUMAN;
- typeplayer3=HUMAN;
- }
- if (typeplayer2 == DEAD) notplaying[2]=TRUE;
- if (typeplayer3 == DEAD) notplaying[3]=TRUE;
- getnames:
- if (ntp == 4)
- {
- ninfow.FirstGadget=&name0gag;
- name0gag.NextGadget=&name1gag;
- name1gag.NextGadget=&name2gag;
- name2gag.NextGadget=&name3gag;
- name3gag.NextGadget=&xnamegag;
- name0text.NextText=&name1text;
- name1text.NextText=&name2text;
- name2text.NextText=&name3text;
- }
- if (ntp == 3)
- {
- ninfow.FirstGadget=&name0gag;
- name0gag.NextGadget=&name1gag;
- name1gag.NextGadget=&name2gag;
- name2gag.NextGadget=&xnamegag;
- name0text.NextText=&name1text;
- name1text.NextText=&name2text;
- }
- if (ntp == 2)
- {
- ninfow.FirstGadget=&name0gag;
- name0gag.NextGadget=&name1gag;
- name1gag.NextGadget=&xnamegag;
- name0text.NextText=&name1text;
- }
- if ((infowindow=(struct Window *)OpenWindow(&ninfow))==NULL) cleanup();
- rportinfo=infowindow->RPort;
- PrintIText(rportinfo, &xname0text, 0, 0);
-
- line0_text=0; /* will be > 147 */
- for (j=0, hold_line=line0_text; j<SHOW_LINES; j++)
- instructIT[j].IText=instructline[hold_line++];
-
- endname=FALSE;
- while (!endname)
- {
- if (1<<infowindow->UserPort->mp_SigBit) ckinfomsg();
- }
- CloseWindow(infowindow);
-
- ninfow.FirstGadget=&verifyngag;
- if ((infowindow=(struct Window *)OpenWindow(&ninfow))==NULL) cleanup();
- rportinfo=infowindow->RPort;
- PrintIText(rportinfo, &verifyn0text, 0, 0);
- PrintIText(rportinfo, &name0text, 0, 0);
-
- line0_text=0; /* will be > 147 */
- for (j=0, hold_line=line0_text; j<SHOW_LINES; j++)
- instructIT[j].IText=instructline[hold_line++];
-
- nameagain=FALSE;
- verifyname=FALSE;
- while (!verifyname)
- {
- if (1<<infowindow->UserPort->mp_SigBit) ckinfomsg();
- }
- CloseWindow(infowindow);
- if (nameagain == TRUE) goto getnames;
-
- } /* end of getplayerinfo() */
-
- VOID dicecup(hide)
- BOOL hide;
- {
- USHORT iter;
-
- if (hide) SetAPen(rportboard, tan);
- if (!hide) SetAPen(rportboard, white);
- WritePixel(rportboard, 154, 155);
- WritePixel(rportboard, 154, 156);
- WritePixel(rportboard, 154, 157);
- WritePixel(rportboard, 155, 154);
- WritePixel(rportboard, 155, 155);
- WritePixel(rportboard, 155, 156);
- WritePixel(rportboard, 155, 157);
- WritePixel(rportboard, 155, 158);
- WritePixel(rportboard, 156, 155);
- WritePixel(rportboard, 156, 156);
- WritePixel(rportboard, 156, 157);
- WritePixel(rportboard, 156, 158);
- WritePixel(rportboard, 156, 159);
- WritePixel(rportboard, 157, 156);
- WritePixel(rportboard, 157, 157);
- WritePixel(rportboard, 157, 158);
- WritePixel(rportboard, 158, 157);
-
- if (hide) SetAPen(rportboard, royal_blue);
- if (!hide) SetAPen(rportboard, white);
- WritePixel(rportboard, 152, 157);
- WritePixel(rportboard, 153, 156);
- WritePixel(rportboard, 153, 157);
- WritePixel(rportboard, 153, 158);
- WritePixel(rportboard, 154, 158);
- WritePixel(rportboard, 154, 159);
- WritePixel(rportboard, 155, 159);
- WritePixel(rportboard, 155, 160);
- for (iter=162; iter<167; iter++)
- {
- WritePixel(rportboard, 155, iter);
- WritePixel(rportboard, 156, iter);
- WritePixel(rportboard, 157, iter);
- WritePixel(rportboard, 158, iter);
- WritePixel(rportboard, 159, iter);
- }
-
- if (hide) SetAPen(rportboard, red);
- if (!hide) SetAPen(rportboard, white);
- WritePixel(rportboard, 153, 156);
- WritePixel(rportboard, 153, 157);
- WritePixel(rportboard, 154, 158);
- WritePixel(rportboard, 155, 159);
- WritePixel(rportboard, 156, 160);
-
- if (!hide)
- {
- SetAPen(rportboard, black);
- WritePixel(rportboard, 155, 157);
- WritePixel(rportboard, 156, 163);
- WritePixel(rportboard, 158, 165);
- }
- }
-
-