OSDN Git Service

Merge pull request #934 from sikabane-works/feature/add-doxygen-artifact
[hengbandforosx/hengbandosx.git] / src / wizard / wizard-spells.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 #define SPELL_MAX 3
6
7 typedef struct floor_type floor_type;
8 typedef struct player_type player_type;
9 typedef union spell_functions {
10     struct debug_spell_type1 {
11         bool (*spell_function)(player_type *, floor_type *);
12     } spell1;
13
14     struct debug_spell_type2 {
15         bool (*spell_function)(player_type *);
16     } spell2;
17
18     struct debug_spell_type3 {
19         bool (*spell_function)(player_type *, HIT_POINT);
20     } spell3;
21
22 } spell_functions;
23
24 typedef struct debug_spell_command {
25     int type;
26     concptr command_name;
27     spell_functions command_function;
28 } debug_spell_command;
29
30 extern debug_spell_command debug_spell_commands_list[SPELL_MAX];
31
32 bool wiz_debug_spell(player_type *creature_ptr);
33 void wiz_dimension_door(player_type *caster_ptr);
34 void wiz_summon_horde(player_type *caster_ptr);
35 void wiz_teleport_back(player_type *caster_ptr);
36 void wiz_learn_blue_magic_all(player_type *caster_ptr);
37 void wiz_summon_random_enemy(player_type *caster_ptr, int num);
38 void wiz_summon_specific_enemy(player_type *summoner_ptr, MONRACE_IDX r_idx);
39 void wiz_summon_pet(player_type *summoner_ptr, MONRACE_IDX r_idx);
40 void wiz_kill_enemy(player_type *caster_ptr);