1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)robots.h	5.1 (Berkeley) 5/30/85
   7:  */
   8: 
   9: # include   <curses.h>
  10: # include   <setjmp.h>
  11: 
  12: /*
  13:  * miscellaneous constants
  14:  */
  15: 
  16: # define    Y_FIELDSIZE 23
  17: # define    X_FIELDSIZE 60
  18: # define    Y_SIZE      24
  19: # define    X_SIZE      80
  20: # define    MAXLEVELS   4
  21: # define    MAXROBOTS   (MAXLEVELS * 10)
  22: # define    ROB_SCORE   10
  23: # define    S_BONUS     (60 * ROB_SCORE)
  24: # define    Y_SCORE     21
  25: # define    X_SCORE     (X_FIELDSIZE + 9)
  26: # define    Y_PROMPT    (Y_FIELDSIZE - 1)
  27: # define    X_PROMPT    (X_FIELDSIZE + 2)
  28: # define    MAXSCORES   (Y_SIZE - 2)
  29: # define    MAXNAME     16
  30: # define    MS_NAME     "Ten"
  31: # define    SCOREFILE   "/usr/games/lib/robots_roll"
  32: 
  33: /*
  34:  * characters on screen
  35:  */
  36: 
  37: # define    ROBOT   '+'
  38: # define    HEAP    '*'
  39: # define    PLAYER  '@'
  40: 
  41: /*
  42:  * pseudo functions
  43:  */
  44: 
  45: # undef     CTRL
  46: # define    CTRL(X) ('X' - 'A' + 1)
  47: 
  48: /*
  49:  * type definitions
  50:  */
  51: 
  52: typedef struct {
  53:     int y, x;
  54: } COORD;
  55: 
  56: /*
  57:  * global variables
  58:  */
  59: 
  60: extern bool Dead, Full_clear, Jump, Newscore, Real_time, Running,
  61:         Teleport, Waiting, Was_bonus;
  62: 
  63: #ifdef  FANCY
  64: extern bool Pattern_roll, Stand_still;
  65: #endif
  66: 
  67: extern char Cnt_move, Field[Y_FIELDSIZE][X_FIELDSIZE], *Next_move,
  68:         *Move_list, Run_ch;
  69: 
  70: extern int  Count, Level, Num_robots, Num_scores, Score,
  71:         Start_level, Wait_bonus;
  72: 
  73: extern COORD    Max, Min, My_pos, Robots[];
  74: 
  75: extern jmp_buf  End_move;
  76: 
  77: /*
  78:  * functions types
  79:  */
  80: 
  81: int quit(), cmp_sc(), move_robots();
  82: 
  83: COORD   *rnd_pos();

Defined macros

CTRL defined in line 46; used 1 times
  • in line 45
HEAP defined in line 38; used 1 times
MAXLEVELS defined in line 20; used 1 times
  • in line 21
MAXNAME defined in line 29; used 2 times
MAXSCORES defined in line 28; used 12 times
MS_NAME defined in line 30; never used
PLAYER defined in line 39; used 3 times
ROBOT defined in line 37; used 2 times
ROB_SCORE defined in line 22; used 2 times
SCOREFILE defined in line 31; used 1 times
S_BONUS defined in line 23; used 2 times
X_PROMPT defined in line 27; used 7 times
X_SCORE defined in line 25; used 1 times
X_SIZE defined in line 19; used 4 times
Y_PROMPT defined in line 26; used 7 times
Y_SCORE defined in line 24; used 1 times
Y_SIZE defined in line 18; used 5 times

Usage of this include

Last modified: 1985-05-31
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3192
Valid CSS Valid XHTML 1.0 Strict