Message-ID: <3A2FC987.F3C7FD8D@attglobal.net>
Date: Thu, 07 Dec 2000 09:31:52 -0800
From: Chip Hayes <jwhayes@attglobal.net>
X-Mailer: Mozilla 4.72 (Macintosh; U; PPC)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: time
References: <qBnX5.1780$Kd1.271611@newsb.telia.net> <1DC03CE6.AD846461@hotmailNOSPAM.com> <3A2F51DB.2010009@millcomm.com>
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 32.101.147.170
X-Trace: 7 Dec 2000 17:41:20 GMT, 32.101.147.170
Organization: Global Network Services - Remote Access Mail & News Services
Lines: 41
X-Complaints-To: abuse@prserv.net
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!news-peer.gip.net!news.gsl.net!gip.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!znr.news.ans.net!newsfeed.us.ibm.net!ibm.net!news1.prserv.net!32.101.147.170
Xref: news.duke.edu rec.arts.int-fiction:81148



"Paul E. Bell" wrote:

>
> You know, I have often wondered how one would go about writing a status
> line that would allow for both time and turns/score at the same time.
> Somehow I suspect that it would require some hacking of the standard
> library functions.
>

Here's a DrawStatusLine routine ripped from an unfinished game of mine, which has
both score and time on the right side of the status line:

[ DrawStatusLine width posa posb;
   @split_window 1; @set_window 1; @set_cursor 1 1; style reverse;
   width = 0->33; posa = width-26; posb = width-13;
   spaces width;
   @set_cursor 1 2;
   if (location == thedark) print (name) location;
   else
   {   FindVisibilityLevels();
       if (visibility_ceiling == location)
           print (name) location;
       else print (The) visibility_ceiling;
   }
   if ((0->1)&2 == 0)
   {   if (width > 76)
       {   @set_cursor 1 posa; print (string) SCORE__TX, score;
           @set_cursor 1 posb; print (string) TIME__TX;
           LanguageTimeOfDay(sline1, sline2);
       }
       if (width > 63 && width <= 76)
       {   @set_cursor 1 posb; print sline1, "/", sline2;
       }
   }
   @set_cursor 1 1; style roman; @set_window 0;
];

Chip Hayes

