Mercurial > molko
diff 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 |
line wrap: on
line diff
--- a/libmlk-adventure/adventure/action/teleport.h Sat Dec 12 12:16:47 2020 +0100 +++ b/libmlk-adventure/adventure/action/teleport.h Sat Dec 12 12:31:23 2020 +0100 @@ -19,14 +19,27 @@ #ifndef MOLKO_ADVENTURE_ACTIONS_TELEPORT_H #define MOLKO_ADVENTURE_ACTIONS_TELEPORT_H +#include <core/action.h> +#include <core/texture.h> + +struct map; + +struct teleport { + int x; + int y; + unsigned int w; + unsigned int h; + struct map *map; + const char *destination; + int origin_x; + int origin_y; + struct action action; + struct texture overlay; + unsigned int elapsed; + unsigned int alpha; +}; + struct action * -teleport_new(struct map *map, - const char *destination, - int x, - int y, - unsigned int w, - unsigned int h, - int origin_x, - int origin_y); +teleport_action(struct teleport *); #endif /* !MOLKO_ADVENTURE_ACTIONS_TELEPORT_H */