Mercurial > molko
annotate libmlk-rpg/mlk/rpg/battle-entity-state-attacking.h @ 629:fee7bd30725c
rpg: cleanup tileset-loader-file
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 26 Aug 2023 16:09:35 +0200 |
parents | 91ce23a36143 |
children |
rev | line source |
---|---|
383
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
1 /* |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
2 * battle-entity-state-attacking.c -- the entity is attacking |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
3 * |
445
773a082f0b91
misc: update copyright years
David Demelier <markand@malikania.fr>
parents:
434
diff
changeset
|
4 * Copyright (c) 2020-2023 David Demelier <markand@malikania.fr> |
383
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
5 * |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
6 * Permission to use, copy, modify, and/or distribute this software for any |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
7 * purpose with or without fee is hereby granted, provided that the above |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
8 * copyright notice and this permission notice appear in all copies. |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
9 * |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
17 */ |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
18 |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
19 #ifndef MLK_RPG_BATTLE_ENTITY_STATE_ATTACKING_H |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
20 #define MLK_RPG_BATTLE_ENTITY_STATE_ATTACKING_H |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
21 |
431
8f59201dc76b
core: cleanup hierarchy
David Demelier <markand@malikania.fr>
parents:
383
diff
changeset
|
22 #include <mlk/core/animation.h> |
383
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
23 |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
24 struct battle_entity; |
468
91ce23a36143
core: sprite -> mlk_sprite
David Demelier <markand@malikania.fr>
parents:
448
diff
changeset
|
25 struct mlk_sprite; |
383
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
26 |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
27 struct battle_entity_state_attacking { |
448
0c4cd552879d
core: animation -> mlk_animation
David Demelier <markand@malikania.fr>
parents:
445
diff
changeset
|
28 struct mlk_animation anim; |
383
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
29 }; |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
30 |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
31 void |
468
91ce23a36143
core: sprite -> mlk_sprite
David Demelier <markand@malikania.fr>
parents:
448
diff
changeset
|
32 battle_entity_state_attacking_init(struct battle_entity_state_attacking *, const struct mlk_sprite *); |
383
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
33 |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
34 int |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
35 battle_entity_state_attacking_update(struct battle_entity_state_attacking *, unsigned int); |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
36 |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
37 void |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
38 battle_entity_state_attacking_draw(const struct battle_entity_state_attacking *, const struct battle_entity *); |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
39 |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
40 void |
468
91ce23a36143
core: sprite -> mlk_sprite
David Demelier <markand@malikania.fr>
parents:
448
diff
changeset
|
41 battle_entity_state_attacking(struct battle_entity *, const struct mlk_sprite *); |
383
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
42 |
b944cd41e8f9
rpg: do the same for battle entities
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
43 #endif /* !MLK_RPG_BATTLE_ENTITY_STATE_ATTACKING_H */ |