/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/ |
H A D | trap.c | 12 STATIC_DCL int FDECL(untrap_prob, (struct trap *ttmp)); 237 register struct trap *ttmp; local 241 if ((ttmp = t_at(x,y)) != 0) { 242 if (ttmp->ttyp == MAGIC_PORTAL) return (struct trap *)0; 251 ttmp = newtrap(); 252 ttmp->tx = x; 253 ttmp->ty = y; 254 ttmp->launch.x = -1; /* force error if used before set */ 255 ttmp->launch.y = -1; 257 ttmp 3403 struct trap *ttmp; local 3799 register struct trap *ttmp; local [all...] |
H A D | bones.c | 164 register struct trap *ttmp; local 175 for(ttmp = ftrap; ttmp; ttmp = ttmp->ntrap) 176 if (ttmp->ttyp == MAGIC_PORTAL) return FALSE; 197 struct trap *ttmp; local 301 for(ttmp = ftrap; ttmp; ttmp [all...] |
H A D | detect.c | 684 register struct trap *ttmp; local 691 for (ttmp = ftrap; ttmp; ttmp = ttmp->ntrap) { 692 if (ttmp->tx != u.ux || ttmp->ty != u.uy) 724 for (ttmp = ftrap; ttmp; ttmp 1006 register struct trap *ttmp; local 1052 register struct trap *ttmp; local 1277 register struct trap *ttmp; local [all...] |
H A D | dig.c | 168 struct trap *ttmp = t_at(x, y); local 191 || (ttmp && 192 (ttmp->ttyp == MAGIC_PORTAL || !Can_dig_down(&u.uz)))) { 202 (ttmp || is_pool(x,y) || is_lava(x,y))) { 277 register struct trap *ttmp; local 286 ((ttmp = t_at(dpx,dpy)) != 0 && 287 (ttmp->ttyp == PIT || ttmp->ttyp == SPIKED_PIT || 288 ttmp->ttyp == TRAPDOOR || ttmp 485 register struct trap *ttmp; local 652 register struct trap *ttmp = t_at(u.ux, u.uy); local [all...] |
H A D | restore.c | 877 register struct trap *ttmp; local 878 for(ttmp = ftrap; ttmp; ttmp = ttmp->ntrap) 879 if (ttmp->ttyp == MAGIC_PORTAL) 881 if (!ttmp) panic("getlev: need portal but none found"); 882 assign_level(&ttmp->dst, <mp); 888 register struct trap *ttmp; local 889 for (ttmp [all...] |
H A D | wizard.c | 56 struct trap *ttmp; local 66 for(ttmp = ftrap; ttmp; ttmp = ttmp->ntrap) { 67 if(ttmp->ttyp == MAGIC_PORTAL) { 68 int du = distu(ttmp->tx, ttmp->ty);
|
H A D | polyself.c | 793 register struct trap *ttmp = t_at(u.ux,u.uy); local 842 if (ttmp) switch (ttmp->ttyp) { 845 deltrap(ttmp); 850 deltrap(ttmp); 863 (ttmp->ttyp == TRAPDOOR) ? "trap door" : "hole"); 864 deltrap(ttmp); 869 deltrap(ttmp); 884 dotrap(ttmp, 0); 887 impossible("Webbing over trap type %d?", ttmp [all...] |
H A D | dothrow.c | 455 struct trap *ttmp; local 538 if ((ttmp = t_at(x, y)) != 0) { 539 if (ttmp->ttyp == MAGIC_PORTAL) { 540 dotrap(ttmp,0); 542 } else if (ttmp->ttyp == FIRE_TRAP) { 543 dotrap(ttmp,0); 544 } else if ((ttmp->ttyp == PIT || ttmp->ttyp == SPIKED_PIT || 545 ttmp->ttyp == HOLE || ttmp [all...] |
H A D | mon.c | 1159 { register struct trap *ttmp = t_at(nx, ny); local 1160 if(ttmp) { 1161 if(ttmp->ttyp >= TRAPNUM || ttmp->ttyp == 0) { 1162 impossible("A monster looked at a very strange trap of type %d.", ttmp->ttyp); 1165 if ((ttmp->ttyp != RUST_TRAP 1167 && ttmp->ttyp != STATUE_TRAP 1168 && ((ttmp->ttyp != PIT 1169 && ttmp->ttyp != SPIKED_PIT 1170 && ttmp [all...] |
H A D | hack.c | 65 register struct trap *ttmp; local 99 ttmp = t_at(rx, ry); 115 !(ttmp && ((ttmp->ttyp == PIT) || 116 (ttmp->ttyp == SPIKED_PIT))))) { 133 if (ttmp) 134 switch(ttmp->ttyp) { 143 ttmp->madeby_u ? "your" : "a"); 144 blow_up_landmine(ttmp); 171 (ttmp [all...] |
H A D | mklev.c | 469 register struct trap *ttmp; local 486 ttmp = maketrap(xx, yy+dy, trap_type); 487 if (ttmp) { 488 if (trap_type != ROCKTRAP) ttmp->once = 1; 1475 struct trap *ttmp; local 1490 if ((ttmp = t_at(x,y)) != 0) deltrap(ttmp); 1519 ttmp = maketrap(x, y, FIRE_TRAP); 1520 if (ttmp) ttmp [all...] |
H A D | fountain.c | 110 register struct trap *ttmp; local 118 if ((ttmp = t_at(x, y)) != 0 && !delfloortrap(ttmp))
|
H A D | dokick.c | 1464 struct trap *ttmp; local 1482 if (((ttmp = t_at(x, y)) != 0 && ttmp->tseen) && 1483 (ttmp->ttyp == TRAPDOOR || ttmp->ttyp == HOLE)) { 1484 gate_str = (ttmp->ttyp == TRAPDOOR) ?
|
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/ |
H A D | trap.c | 12 STATIC_DCL int FDECL(untrap_prob, (struct trap *ttmp)); 237 register struct trap *ttmp; local 241 if ((ttmp = t_at(x,y)) != 0) { 242 if (ttmp->ttyp == MAGIC_PORTAL) return (struct trap *)0; 251 ttmp = newtrap(); 252 ttmp->tx = x; 253 ttmp->ty = y; 254 ttmp->launch.x = -1; /* force error if used before set */ 255 ttmp->launch.y = -1; 257 ttmp 3403 struct trap *ttmp; local 3799 register struct trap *ttmp; local [all...] |
H A D | bones.c | 164 register struct trap *ttmp; local 175 for(ttmp = ftrap; ttmp; ttmp = ttmp->ntrap) 176 if (ttmp->ttyp == MAGIC_PORTAL) return FALSE; 197 struct trap *ttmp; local 301 for(ttmp = ftrap; ttmp; ttmp [all...] |
H A D | detect.c | 684 register struct trap *ttmp; local 691 for (ttmp = ftrap; ttmp; ttmp = ttmp->ntrap) { 692 if (ttmp->tx != u.ux || ttmp->ty != u.uy) 724 for (ttmp = ftrap; ttmp; ttmp 1006 register struct trap *ttmp; local 1052 register struct trap *ttmp; local 1277 register struct trap *ttmp; local [all...] |
H A D | dig.c | 168 struct trap *ttmp = t_at(x, y); local 191 || (ttmp && 192 (ttmp->ttyp == MAGIC_PORTAL || !Can_dig_down(&u.uz)))) { 202 (ttmp || is_pool(x,y) || is_lava(x,y))) { 277 register struct trap *ttmp; local 286 ((ttmp = t_at(dpx,dpy)) != 0 && 287 (ttmp->ttyp == PIT || ttmp->ttyp == SPIKED_PIT || 288 ttmp->ttyp == TRAPDOOR || ttmp 485 register struct trap *ttmp; local 652 register struct trap *ttmp = t_at(u.ux, u.uy); local [all...] |
H A D | restore.c | 877 register struct trap *ttmp; local 878 for(ttmp = ftrap; ttmp; ttmp = ttmp->ntrap) 879 if (ttmp->ttyp == MAGIC_PORTAL) 881 if (!ttmp) panic("getlev: need portal but none found"); 882 assign_level(&ttmp->dst, <mp); 888 register struct trap *ttmp; local 889 for (ttmp [all...] |
H A D | wizard.c | 56 struct trap *ttmp; local 66 for(ttmp = ftrap; ttmp; ttmp = ttmp->ntrap) { 67 if(ttmp->ttyp == MAGIC_PORTAL) { 68 int du = distu(ttmp->tx, ttmp->ty);
|
H A D | polyself.c | 793 register struct trap *ttmp = t_at(u.ux,u.uy); local 842 if (ttmp) switch (ttmp->ttyp) { 845 deltrap(ttmp); 850 deltrap(ttmp); 863 (ttmp->ttyp == TRAPDOOR) ? "trap door" : "hole"); 864 deltrap(ttmp); 869 deltrap(ttmp); 884 dotrap(ttmp, 0); 887 impossible("Webbing over trap type %d?", ttmp [all...] |
H A D | dothrow.c | 455 struct trap *ttmp; local 538 if ((ttmp = t_at(x, y)) != 0) { 539 if (ttmp->ttyp == MAGIC_PORTAL) { 540 dotrap(ttmp,0); 542 } else if (ttmp->ttyp == FIRE_TRAP) { 543 dotrap(ttmp,0); 544 } else if ((ttmp->ttyp == PIT || ttmp->ttyp == SPIKED_PIT || 545 ttmp->ttyp == HOLE || ttmp [all...] |
H A D | mon.c | 1159 { register struct trap *ttmp = t_at(nx, ny); local 1160 if(ttmp) { 1161 if(ttmp->ttyp >= TRAPNUM || ttmp->ttyp == 0) { 1162 impossible("A monster looked at a very strange trap of type %d.", ttmp->ttyp); 1165 if ((ttmp->ttyp != RUST_TRAP 1167 && ttmp->ttyp != STATUE_TRAP 1168 && ((ttmp->ttyp != PIT 1169 && ttmp->ttyp != SPIKED_PIT 1170 && ttmp [all...] |
H A D | hack.c | 65 register struct trap *ttmp; local 99 ttmp = t_at(rx, ry); 115 !(ttmp && ((ttmp->ttyp == PIT) || 116 (ttmp->ttyp == SPIKED_PIT))))) { 133 if (ttmp) 134 switch(ttmp->ttyp) { 143 ttmp->madeby_u ? "your" : "a"); 144 blow_up_landmine(ttmp); 171 (ttmp [all...] |
H A D | mklev.c | 469 register struct trap *ttmp; local 486 ttmp = maketrap(xx, yy+dy, trap_type); 487 if (ttmp) { 488 if (trap_type != ROCKTRAP) ttmp->once = 1; 1475 struct trap *ttmp; local 1490 if ((ttmp = t_at(x,y)) != 0) deltrap(ttmp); 1519 ttmp = maketrap(x, y, FIRE_TRAP); 1520 if (ttmp) ttmp [all...] |
H A D | fountain.c | 110 register struct trap *ttmp; local 118 if ((ttmp = t_at(x, y)) != 0 && !delfloortrap(ttmp))
|