diff 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
line wrap: on
line diff
--- a/librpg/rpg/battle.h	Wed Nov 11 16:09:43 2020 +0100
+++ b/librpg/rpg/battle.h	Wed Nov 11 16:31:55 2020 +0100
@@ -36,7 +36,7 @@
 union event;
 
 struct character;
-struct sound;
+struct music;
 struct spell;
 struct theme;
 
@@ -121,8 +121,14 @@
 
 	/**
 	 * (+&?) A music to play.
+	 *
+	 * Music to play in the battle:
+	 *
+	 * - [0]: while the battle is running,
+	 * - [1]: in case of victory,
+	 * - [2]: in case of lost.
 	 */
-	struct sound *music;
+	struct music *music[3];
 
 	/**
 	 * (+&?) Theme to use.