Lines Matching defs:traps
58 trap traps[MAX_TRAPS];
62 static const char *const trap_strings[TRAPS * 2] = {
82 for (i = 0; ((i < MAX_TRAPS) && (traps[i].trap_type != NO_TRAP)); i++) {
83 if ((traps[i].trap_row == row) && (traps[i].trap_col == col)) {
84 return(traps[i].trap_type);
164 traps[i].trap_type = get_rand(0, (TRAPS - 1));
181 traps[i].trap_row = row;
182 traps[i].trap_col = col;