Home
last modified time | relevance | path

Searched refs:hit (Results 1 – 25 of 49) sorted by relevance

12

/original-bsd/games/trek/
H A Dphaser.c73 int hit; in phaser() local
141 if (hit < 0) in phaser()
143 if (hit == 0) in phaser()
145 extra += hit; in phaser()
155 if (hit < 0 || hit > 360) in phaser()
176 if (hit <= 0) in phaser()
186 extra = hit; in phaser()
216 if (hit > 0) in phaser()
218 extra += hit; in phaser()
230 if (hit <= 0) in phaser()
[all …]
H A Dattack.c47 register int hit, i, l; local
100 shldabsb = propor * chgfac * hit;
106 printf("HIT: %d units", hit);
109 cas = (shldabsb * 100) / hit;
110 hit -= shldabsb;
113 cas, hit);
116 tothit += hit;
117 if (hit > maxhit)
118 maxhit = hit;
119 Ship.energy -= hit;
[all …]
/original-bsd/games/sail/
H A Dpl_3.c116 hit++; in acceptcombat()
121 hit--; in acceptcombat()
123 hit -= 2; in acceptcombat()
126 hit++; in acceptcombat()
128 hit += 2; in acceptcombat()
131 hit--; in acceptcombat()
133 hit -= 2; in acceptcombat()
136 hit--; in acceptcombat()
138 hit -= 2; in acceptcombat()
140 hit--; in acceptcombat()
[all …]
H A Ddr_1.c320 hit++; in compcombat()
325 hit--; in compcombat()
327 hit -= 2; in compcombat()
334 hit++; in compcombat()
336 hit += 2; in compcombat()
340 hit--; in compcombat()
342 hit -= 2; in compcombat()
346 hit--; in compcombat()
348 hit -= 2; in compcombat()
350 hit--; in compcombat()
[all …]
/original-bsd/usr.bin/tn3270/tools/mkhits/
H A Ddohits.c170 doit(hit, type, hits) in doit() argument
171 struct hit *hit; in doit()
177 hit->ctlrfcn = FCN_NULL;
182 hit->ctlrfcn = FCN_CHARACTER;
183 hit->code = ebc_disp[asc_ebc[type[0]]];
191 hit->ctlrfcn = FCN_NULL; /* XXX */
193 hit->ctlrfcn = FCN_AID;
213 struct hit *hit; local
256 if (Hits[scancode].hits.hit[0].ctlrfcn != undefined) {
262 hit = Hits[scancode].hits.hit;
[all …]
H A Dmkhits.c79 if ((ph->hit[0].ctlrfcn == undefined)
80 && (ph->hit[1].ctlrfcn == undefined)
81 && (ph->hit[2].ctlrfcn == undefined)
82 && (ph->hit[3].ctlrfcn == undefined)) {
95 switch (ph->hit[i].ctlrfcn) {
100 printf("FCN_CHARACTER, 0x%02x", ph->hit[i].code);
/original-bsd/share/zoneinfo/DIST/
H A Dzdump.c188 hunt(name, lot, hit) in hunt() argument
191 time_t hit;
200 while ((hit - lot) >= 2) {
201 t = lot / 2 + hit / 2;
204 else if (t >= hit)
212 } else hit = t;
215 show(name, hit, TRUE);
/original-bsd/games/hack/
H A Dhack.fight.c15 int hit; local
25 hit = (tmp > rnd(20));
26 if(hit) mdef->msleep = 0;
33 hit ? "hits" : "misses");
44 if(hit){
51 hit = 2;
63 hit = 2;
66 return(hit);
228 hit( xname(obj) /* or: objects[obj->otyp].oc_name */,
H A Drumors34 A spear might hit a nurse.
35 A spear will hit an ettin.
114 Don't play hack at your work, your boss might hit you!
197 If you want to hit, use a dagger.
251 Monsters come from nowhere to hit you everywhere.
281 Not even a spear will hit a Xorn.
403 They say that a spear will hit a Dragon.
404 They say that a spear will hit a Xorn.
406 They say that a spear will hit an ettin.
436 To hit or not to hit, that is the question.
[all …]
H A Dhack.zap.c30 hit("wand", mtmp, exclam(tmp));
271 hit(str,mtmp,force) in hit() function
472 hit(fltxt, mon, exclam(tmp));
H A Dhelp49 KJHLYUBN - Go in that direction until you hit a wall or run
124 You see on what dungeon level you are, how many hit points you have
/original-bsd/usr.bin/tn3270/ctlr/
H A Dfunction.h123 struct hit { struct
126 } hit[4]; /* plain, shifted, alted, shiftalted */ member
H A Dinbound.c623 ctlrfcn = hits[scancode].hit[HITNUM(shiftstate)].ctlrfcn;
624 c = hits[scancode].hit[HITNUM(shiftstate)].code;
1144 switch (hits[*buffer].hit[HITNUM(rememberedshiftstate)].ctlrfcn) {
/original-bsd/games/larn/
H A Ddiag.c22 int hit,dam; in diag() local
71 hit = 2*monster[i].armorclass+2*monster[i].level+16; in diag()
75 (long)(hit/2),(long)max(0,dam+2),(long)(monster[i].hitpoints/(dam+2)+1), in diag()
76 (long)((hit+2)/2),(long)max(0,dam+10),(long)(monster[i].hitpoints/(dam+10)+1), in diag()
77 (long)((hit+5)/2),(long)max(0,dam+20),(long)(monster[i].hitpoints/(dam+20)+1)); in diag()
/original-bsd/old/btlgammon/
H A Dbackrules12 Brown pieces that have been removed from the board after being hit
14 made. White pieces that are hit are removed to point 25.
/original-bsd/usr.bin/deroff/
H A Dderoff.c1196 int hit; in comline() local
1242 hit = 1; in comline()
1247 case NONE: hit = YES; break; in comline()
1248 case FNEST: hit = (filesp == files); break; in comline()
1249 case NOMAC: hit = !inmacro; break; in comline()
1250 case MAC: hit = inmacro; break; in comline()
1251 case PARAG: hit = parag; break; in comline()
1252 case NBLK: hit = !keepblock; break; in comline()
1253 default: hit = 0; in comline()
1255 if (hit) { in comline()
/original-bsd/usr.bin/diction/diction/
H A Ddprog.c170 int hit; local
186 oct = hit = 0;
271 hit = 1;
306 if(hit){
320 hit = 0;
/original-bsd/games/rogue/
H A DMakefile5 SRCS= curses.c hit.c init.c inventory.c level.c machdep.c main.c \
/original-bsd/usr.sbin/portmap/
H A Dportmap.c180 register struct pmaplist *hit = NULL; local
187 hit = pml;
191 return (hit);
/original-bsd/share/zoneinfo/datfiles/
H A Dafrica10 # soc.* groups, you might hit someone who could ask an embassy).
/original-bsd/usr.bin/tn3270/tools/mkastosc/
H A Dmkastosc.c82 if (ph->hit[i].ctlrfcn == FCN_CHARACTER) {
/original-bsd/sys/hp300/dev/
H A Ddcm.c1000 int s, unit, brd, hit = 0; local
1016 hit++;
1021 hit++;
1026 hit++;
1035 if (hit) {
H A Dst.c666 register int hit = 0; local
678 hit++;
682 hit++;
686 if (!hit && (sc->sc_flags & SFT_WMODE))
/original-bsd/lib/libc/gen/
H A Dctime.c1034 register int hit; local
1038 hit = FALSE;
1049 hit = ((i == 0 && lp->ls_corr > 0) ||
1079 if (hit)
/original-bsd/contrib/dungeon/
H A DPDP.doc8 Then the Zorkmids hit the volcano.

12