Hengband  2.2.1
realm-song.h
[詳解]
1 
2 /*
3  * Music songs
4  */
5 #define MUSIC_NONE 0
6 #define MUSIC_SLOW 1
7 #define MUSIC_BLESS 2
8 #define MUSIC_STUN 3
9 #define MUSIC_L_LIFE 4
10 #define MUSIC_FEAR 5
11 #define MUSIC_HERO 6
12 #define MUSIC_MIND 7
13 #define MUSIC_STEALTH 8
14 #define MUSIC_ID 9
15 #define MUSIC_CONF 10
16 #define MUSIC_SOUND 11
17 #define MUSIC_CHARM 12
18 #define MUSIC_WALL 13
19 #define MUSIC_RESIST 14
20 #define MUSIC_SPEED 15
21 #define MUSIC_DISPEL 16
22 #define MUSIC_SARUMAN 17
23 #define MUSIC_QUAKE 18
24 #define MUSIC_STASIS 19
25 #define MUSIC_SHERO 20
26 #define MUSIC_H_LIFE 21
27 #define MUSIC_INVULN 22
28 #define MUSIC_PSI 23
29 
30 #define MUSIC_DETECT 101
31 
32 #define SINGING_SONG_EFFECT(P_PTR) ((P_PTR)->magic_num1[0])
33 #define INTERUPTING_SONG_EFFECT(P_PTR) ((P_PTR)->magic_num1[1])
34 #define SINGING_COUNT(P_PTR) ((P_PTR)->magic_num1[2])
35 #define SINGING_SONG_ID(P_PTR) ((P_PTR)->magic_num2[0])
36 #define music_singing(p_ptr, X) ((p_ptr->pclass == CLASS_BARD) && (p_ptr->magic_num1[0] == (X)))
37 #define music_singing_any(CREATURE_PTR) (((CREATURE_PTR)->pclass == CLASS_BARD) && (CREATURE_PTR)->magic_num1[0])
38 
39 extern concptr do_music_spell(player_type *caster_ptr, SPELL_IDX spell, BIT_FLAGS mode);
const char * concptr
文字列定数用ポインタ定義 / A simple pointer (to unmodifiable strings)
Definition: h-type.h:47
s32b SPELL_IDX
各魔法領域/職業能力ごとの呪文ID型定義
Definition: h-type.h:243
concptr do_music_spell(player_type *caster_ptr, SPELL_IDX spell, BIT_FLAGS mode)
歌の各処理を行う
Definition: realm-song.c:42
u32b BIT_FLAGS
32ビットのフラグ配列の型定義
Definition: h-type.h:225
Definition: player-status.h:86