OSDN Git Service

[Release] 3.0.0Alpha21
[hengbandforosx/hengbandosx.git] / src / combat / attack-accuracy.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 typedef struct player_attack_type player_attack_type;
6 typedef struct player_type player_type;
7 bool test_hit_norm(player_type *attacker_ptr, HIT_RELIABILITY chance, ARMOUR_CLASS ac, bool visible);
8 PERCENTAGE hit_chance(player_type *attacker_ptr, HIT_RELIABILITY chance, ARMOUR_CLASS ac);
9 bool check_hit_from_monster_to_player(player_type *target_ptr, int power, DEPTH level, int stun);
10 bool check_hit_from_monster_to_monster(int power, DEPTH level, ARMOUR_CLASS ac, int stun);
11 bool process_attack_hit(player_type *attacker_ptr, player_attack_type *pa_ptr, int chance);