comparison libmlk-rpg/rpg/battle-indicator.h @ 292:08ab73b32832

misc: add extern "C" {} blocks for C++ friends
author David Demelier <markand@malikania.fr>
date Fri, 05 Mar 2021 10:08:09 +0100
parents 71b3b7036de7
children 196264679079
comparison
equal deleted inserted replaced
291:5d8700074dd7 292:08ab73b32832
27 * smooth color/fading transition, used to display hp/mp damage. 27 * smooth color/fading transition, used to display hp/mp damage.
28 */ 28 */
29 29
30 #include <stdbool.h> 30 #include <stdbool.h>
31 31
32 #include <core/core.h>
32 #include <core/texture.h> 33 #include <core/texture.h>
33 34
34 /** 35 /**
35 * \brief Default color for HP indicator. 36 * \brief Default color for HP indicator.
36 */ 37 */
57 unsigned int cur; /*!< (-) Current color target. */ 58 unsigned int cur; /*!< (-) Current color target. */
58 unsigned int elapsed; /*!< (-) Elapsed time in transition. */ 59 unsigned int elapsed; /*!< (-) Elapsed time in transition. */
59 unsigned int alpha; /*!< (-) Current alpha. */ 60 unsigned int alpha; /*!< (-) Current alpha. */
60 struct texture tex[2]; /*!< (*) Rendered texture. */ 61 struct texture tex[2]; /*!< (*) Rendered texture. */
61 }; 62 };
63
64 CORE_BEGIN_DECLS
62 65
63 /** 66 /**
64 * Start the battle indicator. You must call this function only once. 67 * Start the battle indicator. You must call this function only once.
65 * 68 *
66 * \pre bti != NULL 69 * \pre bti != NULL
117 * \param bti the indicator 120 * \param bti the indicator
118 */ 121 */
119 void 122 void
120 battle_indicator_finish(struct battle_indicator *bti); 123 battle_indicator_finish(struct battle_indicator *bti);
121 124
125 CORE_END_DECLS
126
122 #endif /* !MOLKO_RPG_BATTLE_INDICATOR_H */ 127 #endif /* !MOLKO_RPG_BATTLE_INDICATOR_H */