|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T r
Length: 2357 (0x935) Types: TextFile Names: »robots.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Robots2/robots.h«
/* * robots.h: include file for the robots game */ # include <curses.h> # include <signal.h> # include <pwd.h> # include <ctype.h> # include <sys/types.h> # include <errno.h> # ifdef BSD42 # include <sys/file.h> # endif BSD42 # define MIN_ROBOTS 10 /* no. of robots you start with */ # define MAX_ROBOTS 500 /* maximum robots on a screen */ # define MIN_VALUE 10 /* what each robot is worth to begin */ # define MAX_FREE 3 /* max free teleports per level */ # define FASTEST 2 /* the fastest robot (dont fiddle) */ # define VERT '|' /* vertical wall */ # define HORIZ '-' /* horizontal wall */ # define ROBOT '=' /* normal robot */ # define FROBOT '#' /* fast robot */ # define SCRAP '@' # define ME 'I' # define MUNCH '*' # define DOT '.' # define LEVEL (level+1) # define MSGPOS 35 /* where messages appear on bottom line */ # define RVPOS 47 /* These you may want to fiddle with. Position of the two high score files */ # define HOF_FILE "/usr/sheriff/jpo/games/lib/robots_hof" # define TMP_FILE "/usr/sheriff/jpo/games/lib/robots_tmp" # define NUMSCORES 20 /* number of people to record */ # define NUMNAME "Twenty" /* above spelt out */ # define TEMP_DAYS 7 /* how long temp scores last */ # define TEMP_NAME "Week" # define ROBOTOPTS "ROBOTOPTS" /* environment tailoring */ # define MAXSTR 100 # define MULT 1.5 /* multiplier for fast robots */ /* if ALLSCORES Undefined - record top n players */ # define ALLSCORES /* record top n scores */ # define SECSPERDAY 86400 # define ctrl(x) ((x)&037) # define BEL ctrl('G') # define abs(X) ((X) < 0 ? -(X) : (X)) # define sign(X) ((X) < 0 ? -1 : (X) > 0) extern char whoami[]; extern char my_user_name[]; extern char cmd_ch; extern bool moveable_heaps; extern bool show_highscore; extern bool last_stand; extern bool bad_move; extern bool running; extern bool waiting; extern bool first_move; extern bool adjacent; extern bool dead; extern int my_x, my_y; extern int new_x, new_y; extern int count; extern int free_teleports; extern int dots; extern int robot_value; extern int level; extern int max_robots; extern int scrap_heaps; extern int nrobots_alive; extern int free_per_level; extern int old_free; extern long score; extern long lseek(); extern char *strcpy (); extern char *strncpy (); extern char *malloc (); extern char *gets (); extern char *sprintf ();