Mercurial > molko
comparison src/libmlk-rpg/rpg/battle-state-victory.c @ 384:c458441ff472
rpg: more asserts, const and cleanups
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 13 Feb 2022 11:34:19 +0100 |
parents | 43d155668a55 |
children | 9334b420c975 |
comparison
equal
deleted
inserted
replaced
383:b944cd41e8f9 | 384:c458441ff472 |
---|---|
21 #include <core/alloc.h> | 21 #include <core/alloc.h> |
22 #include <core/music.h> | 22 #include <core/music.h> |
23 #include <core/panic.h> | 23 #include <core/panic.h> |
24 #include <core/window.h> | 24 #include <core/window.h> |
25 | 25 |
26 #include "battle.h" | |
27 #include "battle-state.h" | |
28 #include "battle-state-closing.h" | 26 #include "battle-state-closing.h" |
29 #include "battle-state-victory.h" | 27 #include "battle-state-victory.h" |
28 #include "battle-state.h" | |
29 #include "battle.h" | |
30 #include "rpg_p.h" | 30 #include "rpg_p.h" |
31 | 31 |
32 struct self { | 32 struct self { |
33 struct battle_state_victory data; | 33 struct battle_state_victory data; |
34 struct battle_state state; | 34 struct battle_state state; |
103 | 103 |
104 return 0; | 104 return 0; |
105 } | 105 } |
106 | 106 |
107 void | 107 void |
108 battle_state_victory_draw(struct battle_state_victory *vic) | 108 battle_state_victory_draw(const struct battle_state_victory *vic) |
109 { | 109 { |
110 assert(vic); | 110 assert(vic); |
111 | 111 |
112 message_draw(&vic->msg); | 112 message_draw(&vic->msg); |
113 } | 113 } |