Home | History | Annotate | Line # | Download | only in warp
score.h revision 1.1
      1 /* $Header: /tank/opengrok/rsync2/NetBSD/src/games/warp/score.h,v 1.1 2020/11/09 23:37:05 kamil Exp $ */
      2 
      3 /* $Log: score.h,v $
      4 /* Revision 1.1  2020/11/09 23:37:05  kamil
      5 /* Add Warp Kit, Version 7.0 by Larry Wall
      6 /*
      7 /* Warp is a real-time space war game that doesn't get boring very quickly.
      8 /* Read warp.doc and the manual page for more information.
      9 /*
     10 /* games/warp originally distributed with 4.3BSD-Reno, is back to the BSD
     11 /* world via NetBSD. Its remnants were still mentioned in games/Makefile.
     12 /*
     13 /* Larry Wall, the original author and the copyright holder, generously
     14 /* donated the game and copyright to The NetBSD Foundation, Inc.
     15 /*
     16 /* Import the game sources as-is from 4.3BSD-Reno, with the cession
     17 /* of the copyright and license to BSD-2-clause NetBSD-style.
     18 /*
     19 /* Signed-off-by: Larry Wall <larry (at) wall.org>
     20 /* Signed-off-by: Kamil Rytarowski <kamil (at) netbsd.org>
     21 /*
     22  * Revision 7.0  86/10/08  15:13:21  lwall
     23  * Split into separate files.  Added amoebas and pirates.
     24  *
     25  */
     26 
     27 #define ENTBOUNDARY 100000	/*  point boundary across which a new E is
     28 					awarded */
     29 
     30 #define BASEBOUNDARY 250000	/*  point boundary across which a new B is
     31 					awarded */
     32 
     33 EXT int oldstatus;
     34 EXT int oldetorp;
     35 EXT int oldbtorp;
     36 EXT int oldstrs;
     37 EXT int oldenemies;
     38 
     39 EXT long totalscore;
     40 EXT long lastscore INIT(0);
     41 EXT long curscore;
     42 EXT long possiblescore;
     43 EXT long oldeenergy;
     44 EXT long oldbenergy;
     45 EXT long oldcurscore;
     46 
     47 EXT char savefilename[40];
     48 
     49 #ifdef SCOREFULL
     50 #define COMPOFF 0
     51 #define COMPNAME longlognam
     52 #define COMPLEN 24
     53 #else
     54 #define COMPOFF 24
     55 #define COMPNAME longlognam
     56 #define COMPLEN 8
     57 #endif
     58 EXT char longlognam[128];
     59 
     60 EXT char c INIT(' ');
     61 
     62 void score_init();
     63 void wscore();
     64 void display_status();
     65 void wavescore();
     66 void score();
     67 void save_game();
     68