Home | History | Annotate | Download | only in larn

Lines Matching refs:sphere

89  * newsphere(x,y,dir,lifetime)  Function to create a new sphere of annihilation
92 * rmsphere(x,y) Function to delete a sphere of annihilation from list
95 * sphboom(x,y) Function to perform the effects of a sphere detonation
534 if ((rnd(23) == 5) && (wizard == 0)) { /* sphere of
545 i = dirsub(&xl, &yl); /* get direction of sphere */
546 newsphere(xl, yl, i, rnd(20) + 11); /* make a sphere */
1743 * newsphere(x,y,dir,lifetime) Function to create a new sphere of annihilation
1746 * Enter with the coordinates of the sphere in x,y
1748 * sphere in lifetime (in turns)
1755 struct sphere *sp;
1756 if (((sp = (struct sphere *) malloc(sizeof(struct sphere)))) == 0)
1776 lprintf("\nThe %s dispels the sphere!", monster[m].name);
1784 lprintf("\nThe %s causes cancellation of the sphere!", monster[m].name);
1786 boom: sphboom(x, y); /* blow up stuff around sphere */
1805 if (playerx == x && playery == y) { /* collision of sphere and
1817 show1cell(x, y); /* show the new sphere */
1825 spheres = sp; /* if first node in the sphere list */
1826 else { /* add sphere to beginning of linked list */
1830 return (++c[SPHCAST]); /* one more sphere in the world */
1834 * rmsphere(x,y) Function to delete a sphere of annihilation from list
1837 * Enter with the coordinates of the sphere (on current level)
1843 struct sphere *sp, *sp2 = 0;
1845 if (level == sp->lev) /* is sphere on this level? */
1846 if ((x == sp->x) && (y == sp->y)) { /* locate sphere at this
1851 * sphere */
1868 * sphboom(x,y) Function to perform the effects of a sphere detonation
1888 lprcat("\nYou were too close to the sphere!");