OSDN Git Service

[Refactor] #2159 typedef struct宣言を全てstruct宣言に差し替えた
[hengbandforosx/hengbandosx.git] / src / player / player-damage.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 #define DAMAGE_FORCE    1
6 #define DAMAGE_GENO     2
7 #define DAMAGE_LOSELIFE 3
8 #define DAMAGE_ATTACK   4
9 #define DAMAGE_NOESCAPE 5
10 #define DAMAGE_USELIFE  6
11
12 struct monster_type;
13 class PlayerType;
14 int take_hit(PlayerType *player_ptr, int damage_type, HIT_POINT damage, concptr kb_str);
15 HIT_POINT acid_dam(PlayerType *player_ptr, HIT_POINT dam, concptr kb_str, bool aura);
16 HIT_POINT elec_dam(PlayerType *player_ptr, HIT_POINT dam, concptr kb_str, bool aura);
17 HIT_POINT fire_dam(PlayerType *player_ptr, HIT_POINT dam, concptr kb_str, bool aura);
18 HIT_POINT cold_dam(PlayerType *player_ptr, HIT_POINT dam, concptr kb_str, bool aura);
19 void touch_zap_player(monster_type *m_ptr, PlayerType *player_ptr);