Mercurial > molko
comparison libmlk-adventure/adventure/action/teleport.h @ 273:e28429dbdaaf
adventure: uniform actions
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 12 Dec 2020 12:31:23 +0100 |
parents | a49ae1b6ea4f |
children | f89a53abb314 |
comparison
equal
deleted
inserted
replaced
272:a49ae1b6ea4f | 273:e28429dbdaaf |
---|---|
17 */ | 17 */ |
18 | 18 |
19 #ifndef MOLKO_ADVENTURE_ACTIONS_TELEPORT_H | 19 #ifndef MOLKO_ADVENTURE_ACTIONS_TELEPORT_H |
20 #define MOLKO_ADVENTURE_ACTIONS_TELEPORT_H | 20 #define MOLKO_ADVENTURE_ACTIONS_TELEPORT_H |
21 | 21 |
22 #include <core/action.h> | |
23 #include <core/texture.h> | |
24 | |
25 struct map; | |
26 | |
27 struct teleport { | |
28 int x; | |
29 int y; | |
30 unsigned int w; | |
31 unsigned int h; | |
32 struct map *map; | |
33 const char *destination; | |
34 int origin_x; | |
35 int origin_y; | |
36 struct action action; | |
37 struct texture overlay; | |
38 unsigned int elapsed; | |
39 unsigned int alpha; | |
40 }; | |
41 | |
22 struct action * | 42 struct action * |
23 teleport_new(struct map *map, | 43 teleport_action(struct teleport *); |
24 const char *destination, | |
25 int x, | |
26 int y, | |
27 unsigned int w, | |
28 unsigned int h, | |
29 int origin_x, | |
30 int origin_y); | |
31 | 44 |
32 #endif /* !MOLKO_ADVENTURE_ACTIONS_TELEPORT_H */ | 45 #endif /* !MOLKO_ADVENTURE_ACTIONS_TELEPORT_H */ |