Mercurial > hg > early-roguelike
comparison xrogue/bolt.c @ 220:f54901b9c39b
XRogue: convert to ANSI-style function declarations.
author | John "Elwin" Edwards |
---|---|
date | Wed, 02 Mar 2016 21:13:26 -0500 |
parents | e6179860cb76 |
children | 7c1cb43f346e |
comparison
equal
deleted
inserted
replaced
219:f9ef86cf22b2 | 220:f54901b9c39b |
---|---|
16 See the file LICENSE.TXT for full copyright and licensing information. | 16 See the file LICENSE.TXT for full copyright and licensing information. |
17 */ | 17 */ |
18 | 18 |
19 #include <curses.h> | 19 #include <curses.h> |
20 #include <ctype.h> | 20 #include <ctype.h> |
21 #include <string.h> | |
21 #include "rogue.h" | 22 #include "rogue.h" |
22 | 23 |
23 /* | 24 /* |
24 * shoot_bolt fires a bolt from the given starting point in the | 25 * shoot_bolt fires a bolt from the given starting point in the |
25 * given direction | 26 * given direction |
26 */ | 27 */ |
27 | 28 |
28 shoot_bolt(shooter, start, dir, get_points, reason, name, damage) | 29 void |
29 struct thing *shooter; | 30 shoot_bolt(struct thing *shooter, coord start, coord dir, bool get_points, |
30 coord start, dir; | 31 short reason, char *name, int damage) |
31 bool get_points; | |
32 short reason; | |
33 char *name; | |
34 int damage; | |
35 { | 32 { |
36 unsigned char dirch = 0, ch; | 33 unsigned char dirch = 0, ch; |
37 bool used, change, see_him; | 34 bool used, change, see_him; |
38 short y, x, bounces; | 35 short y, x, bounces; |
39 coord pos; | 36 coord pos; |