OSDN Git Service

[Refactor] struct player_type を class PlayerType に置換。
[hengbandforosx/hengbandosx.git] / src / combat / attack-accuracy.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 struct player_attack_type;
6 class PlayerType;
7 bool test_hit_norm(PlayerType *player_ptr, int chance, ARMOUR_CLASS ac, bool visible);
8 PERCENTAGE hit_chance(PlayerType *player_ptr, int chance, ARMOUR_CLASS ac);
9 bool check_hit_from_monster_to_player(PlayerType *player_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(PlayerType *player_ptr, player_attack_type *pa_ptr, int chance);