comparison src/libmlk-rpg/rpg/battle-state-lost.c @ 398:14ce7c4871e3

rpg: overhaul of battle bar
author David Demelier <markand@malikania.fr>
date Sun, 27 Feb 2022 10:08:51 +0100
parents 9334b420c975
children d74f53299252
comparison
equal deleted inserted replaced
397:73eabfd50410 398:14ce7c4871e3
51 static void 51 static void
52 draw(const struct battle_state *st, const struct battle *bt) 52 draw(const struct battle_state *st, const struct battle *bt)
53 { 53 {
54 (void)bt; 54 (void)bt;
55 55
56 battle_state_lost_draw(st->data); 56 battle_state_lost_draw(st->data, bt);
57 } 57 }
58 58
59 void 59 void
60 battle_state_lost_init(struct battle_state_lost *lost, struct battle *bt) 60 battle_state_lost_init(struct battle_state_lost *lost, struct battle *bt)
61 { 61 {
106 106
107 return 0; 107 return 0;
108 } 108 }
109 109
110 void 110 void
111 battle_state_lost_draw(struct battle_state_lost *lost) 111 battle_state_lost_draw(struct battle_state_lost *lost, const struct battle *bt)
112 { 112 {
113 assert(lost); 113 assert(lost);
114 assert(battle_ok(bt));
114 115
116 battle_draw_component(bt, BATTLE_COMPONENT_ALL);
115 message_draw(&lost->msg); 117 message_draw(&lost->msg);
116 } 118 }
117 119
118 void 120 void
119 battle_state_lost(struct battle *bt) 121 battle_state_lost(struct battle *bt)