diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-13 17:33:15 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-13 17:33:15 +0100 |
commit | e28330b531b89de28725a209d5ce689851c0e800 (patch) | |
tree | 16bc4c38c8e5db8e9dc0ac634fd70dcace53627d /core | |
parent | 39d17f7c824170abac6c1c500397b7dd3b024e14 (diff) | |
download | RustAndDust-e28330b531b89de28725a209d5ce689851c0e800.zip RustAndDust-e28330b531b89de28725a209d5ce689851c0e800.tar.gz |
clean up debug messages
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/rustanddust/RustAndDust.java | 16 | ||||
-rw-r--r-- | 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()); } |