From d64fb27413d9377a9d99682e5f5f40f28fcc1fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Fri, 13 May 2016 20:29:03 +0200 Subject: [PATCH] updated map format to read time limit & max ZPM count needed to win --- cicaprojekt/Dungeon.java | 19 +++++++++++++++++-- cicaprojekt/Game.java | 2 +- exampledungeon.dungeon | 1 + mastertest.dungeon | 1 + 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/cicaprojekt/Dungeon.java b/cicaprojekt/Dungeon.java index e139375..8e4e7ab 100644 --- a/cicaprojekt/Dungeon.java +++ b/cicaprojekt/Dungeon.java @@ -5,10 +5,15 @@ import java.util.HashMap; import java.util.Map; public class Dungeon { + private int ZPMsToWin = 0; + private long timeLimit = 0; + + /* NOTE: this function assumes that the parameter input is a well-formatted dungeon file. * Such file looks like as follows: * * x + *