Mercurial > molko
comparison librpg/rpg/battle.h @ 208:c0e0d4accae8
rpg: add music support in battle
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 11 Nov 2020 16:31:55 +0100 |
parents | 4ad7420ab678 |
children | e71039d820a7 |
comparison
equal
deleted
inserted
replaced
207:133926e08d6e | 208:c0e0d4accae8 |
---|---|
34 #include "spell.h" | 34 #include "spell.h" |
35 | 35 |
36 union event; | 36 union event; |
37 | 37 |
38 struct character; | 38 struct character; |
39 struct sound; | 39 struct music; |
40 struct spell; | 40 struct spell; |
41 struct theme; | 41 struct theme; |
42 | 42 |
43 #define BATTLE_TEAM_MAX (4) /*!< Maximum team members. */ | 43 #define BATTLE_TEAM_MAX (4) /*!< Maximum team members. */ |
44 #define BATTLE_ENEMY_MAX (8) /*!< Maximum enemies. */ | 44 #define BATTLE_ENEMY_MAX (8) /*!< Maximum enemies. */ |
119 */ | 119 */ |
120 struct texture *background; | 120 struct texture *background; |
121 | 121 |
122 /** | 122 /** |
123 * (+&?) A music to play. | 123 * (+&?) A music to play. |
124 */ | 124 * |
125 struct sound *music; | 125 * Music to play in the battle: |
126 * | |
127 * - [0]: while the battle is running, | |
128 * - [1]: in case of victory, | |
129 * - [2]: in case of lost. | |
130 */ | |
131 struct music *music[3]; | |
126 | 132 |
127 /** | 133 /** |
128 * (+&?) Theme to use. | 134 * (+&?) Theme to use. |
129 */ | 135 */ |
130 struct theme *theme; | 136 struct theme *theme; |