… | |
… | |
16 | |
16 | |
17 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
20 | |
20 | |
21 | The authors can be reached via e-mail at crossfire-devel@real-time.com |
21 | The authors can be reached via e-mail at crossfire.de |
22 | */ |
22 | */ |
23 | |
|
|
24 | |
23 | |
25 | #ifndef ATTACK_H |
24 | #ifndef ATTACK_H |
26 | #define ATTACK_H |
25 | #define ATTACK_H |
27 | |
26 | |
28 | /* |
27 | /* |
… | |
… | |
65 | } attackmess_t; |
64 | } attackmess_t; |
66 | |
65 | |
67 | EXTERN attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; |
66 | EXTERN attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; |
68 | |
67 | |
69 | enum { |
68 | enum { |
70 | # define def(uc, name, lc, plus, change) ATNR_ ## uc, |
69 | # define def(uc, lc, name, plus, change) ATNR_ ## uc, |
71 | # include "attackinc.h" |
70 | # include "attackinc.h" |
72 | # undef def |
71 | # undef def |
73 | NROFATTACKS |
72 | NROFATTACKS |
74 | }; |
73 | }; |
75 | |
74 | |
76 | enum { |
75 | enum { |
77 | # define def(uc, name, lc, plus, change) AT_ ## uc = 1UL << ATNR_ ## uc, |
76 | # define def(uc, lc, name, plus, change) AT_ ## uc = 1UL << ATNR_ ## uc, |
78 | # include "attackinc.h" |
77 | # include "attackinc.h" |
79 | # undef def |
78 | # undef def |
80 | }; |
79 | }; |
81 | |
80 | |
82 | /* Short description of names of the attacktypes */ |
81 | /* Short description of names of the attacktypes */ |
83 | extern const char* const attacktype_desc[NROFATTACKS]; |
82 | extern const char* const attacktype_desc[NROFATTACKS]; |
84 | |
|
|
85 | extern const keyword resist_save[NROFATTACKS]; |
|
|
86 | |
83 | |
87 | /* Note that internal should not ever be referenced in the last two |
84 | /* Note that internal should not ever be referenced in the last two |
88 | * tables. however, other resisttypes may be added, and if through some |
85 | * tables. however, other resisttypes may be added, and if through some |
89 | * bug these do get used somehow, might as well make it more easier to notice |
86 | * bug these do get used somehow, might as well make it more easier to notice |
90 | * and not have mystery values appear. |
87 | * and not have mystery values appear. |