From 84175cde3bb927a4aa9e3f9e367d0f187640c229 Mon Sep 17 00:00:00 2001 From: toksikk Date: Sat, 1 Nov 2014 21:50:20 +0100 Subject: [PATCH] =?UTF-8?q?kleinere=20=C3=A4nderungen,=20nix=20wichtiges?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HeatUp/src/de/heatup/mapengine/MapEngine.java | 55 +++++++++---------- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/HeatUp/src/de/heatup/mapengine/MapEngine.java b/HeatUp/src/de/heatup/mapengine/MapEngine.java index 3847515..d71e1a8 100644 --- a/HeatUp/src/de/heatup/mapengine/MapEngine.java +++ b/HeatUp/src/de/heatup/mapengine/MapEngine.java @@ -5,14 +5,11 @@ package de.heatup.mapengine; import java.awt.Point; import java.io.File; import java.io.FileNotFoundException; -import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.Scanner; import javax.swing.JFileChooser; -import javax.swing.JPanel; - import de.heatup.logging.Logger; import de.heatup.objects.*; @@ -94,32 +91,32 @@ public class MapEngine { /* * wird wahrscheinlich anders umgesetzt. methode ist für testzwecke enthalten. */ - protected void addAllGameTilesToGamePanel(JPanel gamePanel) throws IOException { - int x = 0; - int y = 0; - for (int i = 0; i= 800) { - x = 0; - y += 25; - } else { - x += 25; - } - gamePanel.add(newGameTile.getLabel()); - - } - - } - gamePanel.repaint(); - } - /* - * get all tiles in a 2 dimensional char array - */ - private char[][] getTiles() { - return tiles; - } +// protected void addAllGameTilesToGamePanel(JPanel gamePanel) throws IOException { +// int x = 0; +// int y = 0; +// for (int i = 0; i= 800) { +// x = 0; +// y += 25; +// } else { +// x += 25; +// } +// gamePanel.add(newGameTile.getLabel()); +// +// } +// +// } +// gamePanel.repaint(); +// } +// /* +// * get all tiles in a 2 dimensional char array +// */ +// private char[][] getTiles() { +// return tiles; +// } private HashMap> getAllMapTiles() { return allMapTiles; }