Mercurial > molko
comparison librpg/rpg/battle-bar.h @ 226:dd7c8d4321a3
misc: miscellaneous cleanups
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 19 Nov 2020 10:17:04 +0100 |
parents | 658ee50b8bcb |
children |
comparison
equal
deleted
inserted
replaced
225:d5263d467934 | 226:dd7c8d4321a3 |
---|---|
26 * This module is a view and user input for the game battle. It is used by the | 26 * This module is a view and user input for the game battle. It is used by the |
27 * \ref battle.h object. | 27 * \ref battle.h object. |
28 */ | 28 */ |
29 | 29 |
30 #include <stdbool.h> | 30 #include <stdbool.h> |
31 | |
32 #include <core/plat.h> | |
33 | 31 |
34 #include <ui/frame.h> | 32 #include <ui/frame.h> |
35 #include <ui/gridmenu.h> | 33 #include <ui/gridmenu.h> |
36 | 34 |
37 struct battle; | 35 struct battle; |
134 * \return True if an element has been activated. | 132 * \return True if an element has been activated. |
135 */ | 133 */ |
136 bool | 134 bool |
137 battle_bar_handle(struct battle_bar *bar, | 135 battle_bar_handle(struct battle_bar *bar, |
138 const struct battle *bt, | 136 const struct battle *bt, |
139 const union event *ev) PLAT_NODISCARD; | 137 const union event *ev); |
140 | 138 |
141 /** | 139 /** |
142 * Reset the battle bar selection, state and grid. | 140 * Reset the battle bar selection, state and grid. |
143 * | 141 * |
144 * Call this function each time a new player is selected. | 142 * Call this function each time a new player is selected. |