#ifndef WH_EXPLOSION_H_57236697_ #define WH_EXPLOSION_H_57236697_ #include "structs.h" /* * ball_explosion(LOC *g0, int cells, void (*eff)(LOC *), int mse, int msa) * * g0 is ground zero, the epicentre of the explosion. * * cells is the number of cells the explosion should fill (see below). * * eff is called for each affected cell. * * mse and msa are milliseconds to delay for each affected cell (mse) * and afterwards (msa). * * This always mvaddch()s *s for the affected area, but does not * refresh() unless mse or msa is nonzero. * * Some values for cells for different explosion sizes: * * .*. ..***.. * *** 5 .*****. * .*. ******* * ******* 37 * ******* * ..*.. .*****. * .***. ..***.. * ***** 13 * .***. ...***... * ..*.. ..*****.. * .*******. * ********* * .***. ********* 57 * ***** ********* * ***** 21 .*******. * ***** ..*****.. * .***. ...***... */ extern void ball_explosion(LOC *, int, void (*)(LOC *), int, int); #endif