Atrinik Server  4.0
attack.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Atrinik, a Multiplayer Online Role Playing Game *
3  * *
4  * Copyright (C) 2009-2014 Alex Tokar and Atrinik Development Team *
5  * *
6  * Fork from Crossfire (Multiplayer game for X-windows). *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the Free Software *
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
21  * *
22  * The author can be reached at admin@atrinik.org *
23  ************************************************************************/
24 
30 #ifndef ATTACK_H
31 #define ATTACK_H
32 
36 typedef enum atnr {
47 
58 
69 
83 
86 
89 } atnr_t;
90 
94 #define LAST_PROTECTION (ATNR_CONFUSION + 1)
95 
96 /* Prototypes */
97 const char *const attack_save[NROFATTACKS];
98 const char *const attack_name[NROFATTACKS];
99 
100 int
101 attack_object(object *op, object *hitter);
102 int
103 attack_hit(object *op, object *hitter, int dam);
104 void
105 attack_hit_map(object *op, int dir, bool multi_reduce);
106 bool
107 attack_kill(object *op, object *hitter);
108 void
109 attack_perform_poison(object *op, object *hitter, double dam);
110 void
111 attack_perform_slow(object *op);
112 void
113 attack_perform_confusion(object *op);
114 void
115 attack_perform_blind(object *op, object *hitter, double dam);
116 void
117 attack_peform_paralyze(object *op, double dam);
118 void
119 attack_perform_fall(object *op, int fall_floors);
120 bool
121 attack_is_melee_range(object *hitter, object *enemy);
122 
123 #endif
void attack_perform_confusion(object *op)
Definition: attack.c:1294
const char *const attack_save[NROFATTACKS]
Definition: attack.c:46
const char *const attack_name[NROFATTACKS]
Definition: attack.c:57
bool attack_is_melee_range(object *hitter, object *enemy)
Definition: attack.c:1476
bool attack_kill(object *op, object *hitter)
Definition: attack.c:981
void attack_perform_poison(object *op, object *hitter, double dam)
Definition: attack.c:1169
void attack_hit_map(object *op, int dir, bool multi_reduce)
Definition: attack.c:830
int attack_object(object *op, object *hitter)
Definition: attack.c:260
enum atnr atnr_t
void attack_perform_blind(object *op, object *hitter, double dam)
Definition: attack.c:1342
atnr
Definition: attack.h:36
void attack_peform_paralyze(object *op, double dam)
Definition: attack.c:1399
int attack_hit(object *op, object *hitter, int dam)
Definition: attack.c:669
void attack_perform_slow(object *op)
Definition: attack.c:1256
void attack_perform_fall(object *op, int fall_floors)
Definition: attack.c:1435