diff libmlk-adventure/adventure/molko.h @ 286:3991779aaba9

adventure: initial test of spawn
author David Demelier <markand@malikania.fr>
date Wed, 23 Dec 2020 15:37:48 +0100
parents e28429dbdaaf
children 08ab73b32832
line wrap: on
line diff
--- a/libmlk-adventure/adventure/molko.h	Mon Dec 21 09:50:16 2020 +0100
+++ b/libmlk-adventure/adventure/molko.h	Wed Dec 23 15:37:48 2020 +0100
@@ -23,9 +23,25 @@
 #include <core/texture.h>
 #include <core/sprite.h>
 
+#include <rpg/inventory.h>
+#include <rpg/team.h>
+
+struct battle;
+
+enum molko_state {
+	MOLKO_STATE_MAP,
+	MOLKO_STATE_BATTLE,
+};
+
 struct molko {
 	struct state *panic;
 
+	/* Make sure to set this accordingly when changing states. */
+	enum molko_state state;
+
+	struct team team;
+	struct inventory inventory;
+
 	/* For map state. */
 	struct texture map_player_texture;
 	struct sprite map_player_sprite;
@@ -42,6 +58,9 @@
 void
 molko_teleport(const char *map, int origin_x, int origin_y);
 
+void
+molko_fight(struct battle *bt);
+
 const char *
 molko_path(const char *file);