Mercurial > molko
comparison libadventure/adventure/state/mainmenu.h @ 162:629f55f3961e
core: rework states
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 18 Oct 2020 12:01:59 +0200 |
parents | libadventure/adventure/mainmenu_state.h@789b23e01f52 |
children |
comparison
equal
deleted
inserted
replaced
161:31d7f23c0588 | 162:629f55f3961e |
---|---|
1 /* | |
2 * mainmenu.h -- game main menu | |
3 * | |
4 * Copyright (c) 2020 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 MOLKO_STATE_MAINMENU_H | |
20 #define MOLKO_STATE_MAINMENU_H | |
21 | |
22 /** | |
23 * \file mainmenu.h | |
24 * \brief Game main menu. | |
25 */ | |
26 | |
27 /** | |
28 * Create a state about the main game menu. | |
29 * | |
30 * \pre state != NULL | |
31 * \param state the state to initialize | |
32 * \post state->data is set internal data | |
33 * \post state->handle is set | |
34 * \post state->draw is set | |
35 * \post state->update is set | |
36 * \post state->finish is set | |
37 */ | |
38 void | |
39 mainmenu_state(struct state *state); | |
40 | |
41 #endif /* !MOLKO_STATE_PANIC_H */ |