home *** CD-ROM | disk | FTP | other *** search
- program offline;
- { This will do the various sorts of computations you might want to do with
- your data base but while not playing. You might plan itineraries, identify
- defensible structures, identify areas of control, spot high traffic areas,
- and so on. }
-
- {$I headers.inc}
-
- var {globals}
- space : TheVoid;
- BBSname : string;
- quit : boolean;
- distances : distancearray;
- verbose : boolean;
-
- {$I misc.inc }
- {$I GSDATA.INC }
- {$I queue.inc }
- {$I distance.inc }
- {$I decount.inc }
- {$I control.inc }
- {$I basepath.inc }
- {$I status.inc }
- {$I textdisp.inc }
- {$I hitrffic.inc }
- {$I statistc.inc }
- {$I tour.inc }
- {$I multpath.inc }
-
- procedure menu;
- begin
- writeln;
- writeln('<C>ontrolled sector status');
- writeln('<D>ead end analysis');
- writeln('suggest <E>therprobe targets');
- writeln('visit <M>ultiple sectors efficiently');
- writeln('<Q>uit');
- writeln('<S>tellar dispersion');
- writeln('<T>raffic area analysis');
- writeln('<V>isit every sector');
- writeln;
- end; {menu}
-
- function choice : char;
- var
- ch : char;
- begin
- write('(', BBSName, ') [C, D, E, Q, S, T, V] Your choice? ');
- readln( ch );
- choice := upcase( ch );
- end;
-
- begin
- writeln('Tradewars Offline Data Base Inquiry program: ', version);
- writeln( author );
- writeln( source );
- writeln;
- Quit := false;
- verbose := false;
- InitSpace( Space );
- if paramcount > 0 then
- BBSName := paramstr( 1 )
- else
- BBSName := '';
- GetData( Space, BBSName );
- menu;
- repeat
- case choice of
- 'C' : Control;
- 'D' : DeadEndAnalysis;
- 'E' : SuggestEtherProbes;
- 'M' : MultiPassSector;
- 'Q' : quit := true;
- 'S' : StellarDispersion;
- 'T' : HighTraffic;
- 'V' : VisitEverySector;
- else
- menu;
- end; {case}
- until quit;
- end.