Mercurial > molko
comparison src/libmlk-rpg/rpg/battle-state-selection.h @ 382:43d155668a55
rpg: expose battle state functions
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 13 Feb 2022 10:35:26 +0100 |
parents | |
children | c458441ff472 |
comparison
equal
deleted
inserted
replaced
381:f48367c5a92e | 382:43d155668a55 |
---|---|
1 /* | |
2 * battle-state-selection.h -- battle state (selection) | |
3 * | |
4 * Copyright (c) 2020-2022 David Demelier <markand@malikania.fr> | |
5 * | |
6 * Permission to use, copy, modify, and/or distribute this software for any | |
7 * purpose with or without fee is hereby granted, provided that the above | |
8 * copyright notice and this permission notice appear in all copies. | |
9 * | |
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
17 */ | |
18 | |
19 #ifndef MLK_RPG_BATTLE_STATE_SELECTION_H | |
20 #define MLK_RPG_BATTLE_STATE_SELECTION_H | |
21 | |
22 #include <rpg/selection.h> | |
23 | |
24 struct battle; | |
25 | |
26 union event; | |
27 | |
28 struct battle_state_selection { | |
29 struct selection select; | |
30 }; | |
31 | |
32 void | |
33 battle_state_selection_init(struct battle_state_selection *, const struct selection *); | |
34 | |
35 void | |
36 battle_state_selection_handle(struct battle_state_selection *, struct battle *, const union event *); | |
37 | |
38 void | |
39 battle_state_selection_draw(struct battle_state_selection *, const struct battle *); | |
40 | |
41 void | |
42 battle_state_selection(struct battle *, const struct selection *); | |
43 | |
44 #endif /* !MLK_RPG_BATTLE_STATE_SELECTION_H */ |