Mercurial > molko
diff libmlk-adventure/adventure/molko.h @ 259:16be1ad3ddba
adventure: start working on maps and teleport
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 06 Dec 2020 11:22:03 +0100 |
parents | 71b3b7036de7 |
children | cd5bdb995052 |
line wrap: on
line diff
--- a/libmlk-adventure/adventure/molko.h Sat Dec 05 15:57:02 2020 +0100 +++ b/libmlk-adventure/adventure/molko.h Sun Dec 06 11:22:03 2020 +0100 @@ -22,28 +22,14 @@ #include <core/game.h> #include <core/texture.h> #include <core/sprite.h> -#include <core/state.h> - -#include <rpg/map-file.h> -#include <rpg/map.h> - -enum molko_state { - MOLKO_STATE_SPLASH, - MOLKO_STATE_MAINMENU, - MOLKO_STATE_PANIC, - MOLKO_STATE_MAP, - MOLKO_STATE_NUM -}; struct molko { struct game engine; - struct state states[MOLKO_STATE_NUM]; + struct state *panic; - /* MOLKO_STATE_MAP. */ + /* For map state. */ struct texture map_player_texture; struct sprite map_player_sprite; - struct map_file map_file; - struct map map; }; extern struct molko molko; @@ -55,6 +41,12 @@ molko_run(void); void +molko_teleport(const char *map, int origin_x, int origin_y); + +const char * +molko_path(const char *file); + +void molko_finish(void); #endif /* !MOLKO_MOLKO_H */