OSDN Git Service

Merge pull request #41491 (taotao/hengband/fix-impure_calc_num_blow into develop).
[hengband/hengband.git] / src / action / throw-util.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include "system/object-type-definition.h"
5
6 // Item Throw.
7 typedef struct grid_type grid_type;
8 typedef struct monster_type monster_type;
9 typedef struct it_type {
10     int mult;
11     bool boomerang;
12     OBJECT_IDX shuriken;
13     OBJECT_IDX item;
14     POSITION y;
15     POSITION x;
16     POSITION ty;
17     POSITION tx;
18     POSITION prev_y;
19     POSITION prev_x;
20     POSITION ny[19];
21     POSITION nx[19];
22     int chance;
23     int tdam;
24     int tdis;
25     int cur_dis;
26     int visible;
27     PERCENTAGE corruption_possibility;
28     object_type *q_ptr;
29     object_type *o_ptr;
30     bool hit_body;
31     bool hit_wall;
32     bool equiped_item;
33     bool return_when_thrown;
34     GAME_TEXT o_name[MAX_NLEN];
35     int msec;
36     BIT_FLAGS obj_flags[TR_FLAG_SIZE];
37     bool come_back;
38     bool do_drop;
39     grid_type *g_ptr;
40     monster_type *m_ptr;
41     GAME_TEXT m_name[MAX_NLEN];
42     int back_chance;
43     char o2_name[MAX_NLEN];
44     bool super_boomerang;
45 } it_type;
46
47 it_type *initialize_it_type(
48     it_type *item_throw_ptr, object_type *q_ptr, const int delay_factor_val, const int mult, const bool boomerang, const OBJECT_IDX shuriken);