Mercurial > molko
comparison libmlk-rpg/rpg/character.h @ 298:196264679079
misc: remove usage of bool
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 10 Mar 2021 18:49:08 +0100 |
parents | 08ab73b32832 |
children | d01e83210ca2 |
comparison
equal
deleted
inserted
replaced
297:6151152d009c | 298:196264679079 |
---|---|
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 */ | 17 */ |
18 | 18 |
19 #ifndef MOLKO_RPG_CHARACTER_H | 19 #ifndef MOLKO_RPG_CHARACTER_H |
20 #define MOLKO_RPG_CHARACTER_H | 20 #define MOLKO_RPG_CHARACTER_H |
21 | |
22 #include <stdbool.h> | |
23 | 21 |
24 #include <core/core.h> | 22 #include <core/core.h> |
25 | 23 |
26 #define CHARACTER_SPELL_MAX (64) | 24 #define CHARACTER_SPELL_MAX (64) |
27 | 25 |
86 void (*exec)(struct character *owner, struct battle *bt); | 84 void (*exec)(struct character *owner, struct battle *bt); |
87 }; | 85 }; |
88 | 86 |
89 CORE_BEGIN_DECLS | 87 CORE_BEGIN_DECLS |
90 | 88 |
91 bool | 89 int |
92 character_ok(const struct character *ch); | 90 character_ok(const struct character *ch); |
93 | 91 |
94 const char * | 92 const char * |
95 character_status_string(enum character_status status); | 93 character_status_string(enum character_status status); |
96 | 94 |
98 character_reset(struct character *ch); | 96 character_reset(struct character *ch); |
99 | 97 |
100 void | 98 void |
101 character_exec(struct character *ch, struct battle *bt); | 99 character_exec(struct character *ch, struct battle *bt); |
102 | 100 |
103 bool | 101 int |
104 character_save(const struct character *ch, struct save *s); | 102 character_save(const struct character *ch, struct save *s); |
105 | 103 |
106 bool | 104 int |
107 character_load(struct character *, struct save *); | 105 character_load(struct character *, struct save *); |
108 | 106 |
109 CORE_END_DECLS | 107 CORE_END_DECLS |
110 | 108 |
111 #endif /* !MOLKO_RPG_CHARACTER_H */ | 109 #endif /* !MOLKO_RPG_CHARACTER_H */ |