OSDN Git Service

Merge pull request #248 from dis-/feature/Refactor-resistance-checker
[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 union spell_functions {
8     struct debug_spell_type1 {
9         bool (*spell_function)(player_type *, floor_type *);
10     } spell1;
11
12     struct debug_spell_type2 {
13         bool (*spell_function)(player_type *);
14     } spell2;
15
16     struct debug_spell_type3 {
17         bool (*spell_function)(player_type *, HIT_POINT);
18     } spell3;
19
20 } spell_functions;
21
22 typedef struct debug_spell_command {
23     int type;
24     char *command_name;
25     spell_functions command_function;
26 } debug_spell_command;
27
28 extern debug_spell_command debug_spell_commands_list[SPELL_MAX];
29
30 bool wiz_debug_spell(player_type *creature_ptr);
31 void wiz_dimension_door(player_type *caster_ptr);
32 void wiz_summon_horde(player_type *caster_ptr);
33 void wiz_teleport_back(player_type *caster_ptr);
34 void wiz_learn_blue_magic_all(player_type *caster_ptr);
35 void wiz_summon_random_enemy(player_type *caster_ptr, int num);
36 void wiz_summon_specific_enemy(player_type *summoner_ptr, MONRACE_IDX r_idx);
37 void wiz_summon_pet(player_type *summoner_ptr, MONRACE_IDX r_idx);
38 void wiz_kill_enemy(player_type *caster_ptr);