Mercurial > molko
comparison libmlk-core/core/script.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 |
---|---|
17 */ | 17 */ |
18 | 18 |
19 #ifndef MOLKO_CORE_SCRIPT_H | 19 #ifndef MOLKO_CORE_SCRIPT_H |
20 #define MOLKO_CORE_SCRIPT_H | 20 #define MOLKO_CORE_SCRIPT_H |
21 | 21 |
22 #include <stdbool.h> | |
23 #include <stddef.h> | 22 #include <stddef.h> |
24 | 23 |
25 #include "core.h" | 24 #include "core.h" |
26 | 25 |
27 #define SCRIPT_ACTION_MAX (128) | 26 #define SCRIPT_ACTION_MAX (128) |
37 }; | 36 }; |
38 | 37 |
39 CORE_BEGIN_DECLS | 38 CORE_BEGIN_DECLS |
40 | 39 |
41 void | 40 void |
42 script_init(struct script *s); | 41 script_init(struct script *); |
43 | 42 |
44 bool | 43 int |
45 script_append(struct script *s, struct action *a); | 44 script_append(struct script *, struct action *); |
46 | 45 |
47 void | 46 void |
48 script_handle(struct script *s, const union event *ev); | 47 script_handle(struct script *, const union event *); |
49 | 48 |
50 bool | 49 int |
51 script_update(struct script *s, unsigned int ticks); | 50 script_update(struct script *, unsigned int); |
52 | 51 |
53 void | 52 void |
54 script_draw(struct script *s); | 53 script_draw(struct script *); |
55 | 54 |
56 bool | 55 int |
57 script_completed(const struct script *s); | 56 script_completed(const struct script *); |
58 | 57 |
59 void | 58 void |
60 script_finish(struct script *s); | 59 script_finish(struct script *); |
61 | 60 |
62 void | 61 void |
63 script_action(struct script *s, struct action *dst); | 62 script_action(struct script*s, struct action *); |
64 | 63 |
65 CORE_END_DECLS | 64 CORE_END_DECLS |
66 | 65 |
67 #endif /* !MOLKO_CORE_SCRIPT_H */ | 66 #endif /* !MOLKO_CORE_SCRIPT_H */ |