|
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 g
Length: 934 (0x3a6) Types: TextFile Names: »game.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/X/Xrobots/game.h«
/* * game.h -- xrobots v1.0 */ #ifndef MAXX # define MAXX 35 #endif #ifndef MAXY # define MAXY 20 #endif #define EMPTY 0 #define ROBOT 1 #define HEAP 2 #define REDRAW 3 #define LEFT 1 #define RIGHT 2 #define UP 4 #define DOWN 8 #define STILL 16 #define for_each for(x=0;x<MAXX;x++) \ for(y=0;y<MAXY;y++) /* I know, I KNOW... global variables! */ extern int human_x, human_y, last_human_x, last_human_y; extern int robot_array[MAXX][MAXY], robot_array_bak[MAXX][MAXY]; extern int score; num_robots; game_active; #define MIN(a,b) ((a<b)?a:b) #define MAX(a,b) ((a>b)?a:b) #define INXRANGE( _x_ ) (((_x_) >=0) && ((_x_)<MAXX)) #define INYRANGE( _y_ ) (((_y_) >=0) && ((_y_)<MAXY)) extern void new_game(), add_score(), new_level(); extern int chase(); extern void undo_chase(), teleport(), sonic_screwdriver(), wait_for_em(); extern int can_go();