aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/dungeon.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/inc/dungeon.inc b/inc/dungeon.inc
index b2277f0..8c26c92 100644
--- a/inc/dungeon.inc
+++ b/inc/dungeon.inc
@@ -36,4 +36,15 @@ function buildDungeon() {
}
}
+function launchDungeon(){
+ $dungeon=generateMonster();
+ $opponent = $dungeon["monsters"]["floor1"];
+ echo json_encode($opponent);
+}
+
+function exitDungeon(){
+ $_SESSION["dungeon"] = false;
+ echo json_encode(array("a" => 7));//Cette ligne ne sert qu'à contourner l'erreur créé à cause de sendRequest. A revoir.
+}
+
?>