From e28330b531b89de28725a209d5ce689851c0e800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 13 Feb 2016 17:33:15 +0100 Subject: clean up debug messages --- core/src/ch/asynk/rustanddust/RustAndDust.java | 16 ++++++++-------- core/src/ch/asynk/rustanddust/screens/GameScreen.java | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/RustAndDust.java b/core/src/ch/asynk/rustanddust/RustAndDust.java index c558c6f..c423c4e 100644 --- a/core/src/ch/asynk/rustanddust/RustAndDust.java +++ b/core/src/ch/asynk/rustanddust/RustAndDust.java @@ -112,7 +112,7 @@ public class RustAndDust extends Game { Gdx.app.setLogLevel(Gdx.app.LOG_DEBUG); this.hudCorrection = ((int) (125 * Gdx.graphics.getDensity()) - 75); - debug("RustAndDust", "create() [" + Gdx.graphics.getWidth() + ";" + Gdx.graphics.getHeight() + "] " + Gdx.graphics.getDensity() + " -> " + hudCorrection); + debug("create() [" + Gdx.graphics.getWidth() + ";" + Gdx.graphics.getHeight() + "] " + Gdx.graphics.getDensity() + " -> " + hudCorrection); db = new DB(Gdx.files.internal(DB_FILE).path()); db.setup(); @@ -174,7 +174,7 @@ public class RustAndDust extends Game manager.load(SND_EXPLOSION_SHORT, Sound.class); manager.load(SND_PROMOTE_US, Sound.class); manager.load(SND_PROMOTE_GE, Sound.class); - debug("RustAndDust", " assets loaded : " + (Gdx.app.getJavaHeap()/1024.0f) + "KB"); + debug(" assets loaded : " + (Gdx.app.getJavaHeap()/1024.0f) + "KB"); } private void unloadGameAssets() @@ -201,7 +201,7 @@ public class RustAndDust extends Game manager.unload(SND_EXPLOSION_SHORT); manager.unload(SND_PROMOTE_US); manager.unload(SND_PROMOTE_GE); - debug("RustAndDust", " assets unloaded : " + (Gdx.app.getJavaHeap()/1024.0f) + "KB"); + debug(" assets unloaded : " + (Gdx.app.getJavaHeap()/1024.0f) + "KB"); } private void loadUiAssets() @@ -256,8 +256,8 @@ public class RustAndDust extends Game @Override public void dispose() { - debug("RustAndDust", "dispose()"); - debug("RustAndDust", "diagnostics:\n" + manager.getDiagnostics() ); + debug("dispose()"); + debug("diagnostics:\n" + manager.getDiagnostics() ); getScreen().dispose(); unloadUiAssets(); switch(state) { @@ -270,7 +270,7 @@ public class RustAndDust extends Game ctrl.dispose(); break; } - debug("RustAndDust", "diagnostics:\n" + manager.getDiagnostics() ); + debug("diagnostics:\n" + manager.getDiagnostics() ); manager.clear(); manager.dispose(); } @@ -278,14 +278,14 @@ public class RustAndDust extends Game @Override public void pause() { - debug("RustAndDust", "pause()"); + debug("pause()"); getScreen().pause(); } @Override public void resume() { - debug("RustAndDust", "resume()"); + debug("resume()"); getScreen().resume(); } } diff --git a/core/src/ch/asynk/rustanddust/screens/GameScreen.java b/core/src/ch/asynk/rustanddust/screens/GameScreen.java index 35079e9..a55763c 100644 --- a/core/src/ch/asynk/rustanddust/screens/GameScreen.java +++ b/core/src/ch/asynk/rustanddust/screens/GameScreen.java @@ -223,13 +223,13 @@ public class GameScreen implements Screen public void pause() { paused = true; - RustAndDust.debug("RustAndDust", "pause() "); + RustAndDust.debug("pause() "); } @Override public void resume() { - RustAndDust.debug("RustAndDust", "resume() "); + RustAndDust.debug("resume() "); paused = false; resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); } -- cgit v1.1-2-g2b99