Mercurial > molko
comparison libmlk-core/mlk/core/game.h @ 452:f89147faf8cf
core: game -> mlk_game
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 18 Feb 2023 20:46:48 +0100 |
parents | b26dd49f69ff |
children | 3e92d8309933 |
comparison
equal
deleted
inserted
replaced
451:90a097b1aa0f | 452:f89147faf8cf |
---|---|
26 | 26 |
27 struct state; | 27 struct state; |
28 | 28 |
29 union mlk_event; | 29 union mlk_event; |
30 | 30 |
31 struct game { | 31 struct mlk_game { |
32 enum inhibit inhibit; | 32 enum inhibit inhibit; |
33 struct state **states; | 33 struct state **states; |
34 size_t statesz; | 34 size_t statesz; |
35 struct state **state; | 35 struct state **state; |
36 }; | 36 }; |
37 | 37 |
38 extern struct game game; | 38 extern struct mlk_game game; |
39 | 39 |
40 CORE_BEGIN_DECLS | 40 CORE_BEGIN_DECLS |
41 | 41 |
42 void | 42 void |
43 game_init(struct state **, size_t); | 43 mlk_game_init(struct state **, size_t); |
44 | 44 |
45 void | 45 void |
46 game_push(struct state *); | 46 mlk_game_push(struct state *); |
47 | 47 |
48 void | 48 void |
49 game_pop(void); | 49 mlk_game_pop(void); |
50 | 50 |
51 void | 51 void |
52 game_handle(const union mlk_event *); | 52 mlk_game_handle(const union mlk_event *); |
53 | 53 |
54 void | 54 void |
55 game_update(unsigned int); | 55 mlk_game_update(unsigned int); |
56 | 56 |
57 void | 57 void |
58 game_draw(void); | 58 mlk_game_draw(void); |
59 | 59 |
60 void | 60 void |
61 game_loop(void); | 61 mlk_game_loop(void); |
62 | 62 |
63 void | 63 void |
64 game_quit(void); | 64 mlk_game_quit(void); |
65 | 65 |
66 CORE_END_DECLS | 66 CORE_END_DECLS |
67 | 67 |
68 #endif /* !MLK_CORE_GAME_H */ | 68 #endif /* !MLK_CORE_GAME_H */ |