score.h revision 1.1
1/* $Header: /usr/local/opengrok/home/cvs-mirror/mirrors/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@wall.org> 20/* Signed-off-by: Kamil Rytarowski <kamil@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 33EXT int oldstatus; 34EXT int oldetorp; 35EXT int oldbtorp; 36EXT int oldstrs; 37EXT int oldenemies; 38 39EXT long totalscore; 40EXT long lastscore INIT(0); 41EXT long curscore; 42EXT long possiblescore; 43EXT long oldeenergy; 44EXT long oldbenergy; 45EXT long oldcurscore; 46 47EXT 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 58EXT char longlognam[128]; 59 60EXT char c INIT(' '); 61 62void score_init(); 63void wscore(); 64void display_status(); 65void wavescore(); 66void score(); 67void save_game(); 68