From 2a7eb57db81218ac4c5d96ea6129162bc40d1068 Mon Sep 17 00:00:00 2001 From: rust2 Date: Sat, 3 Aug 2024 16:48:32 +0500 Subject: [PATCH] Refactor: rename method `renderCurrentState` -> `updateAndRenderCurrentState` --- core/src/fluddokt/opsu/fake/StateBasedGame.java | 2 +- core/src/itdelatrisu/opsu/Opsu.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/fluddokt/opsu/fake/StateBasedGame.java b/core/src/fluddokt/opsu/fake/StateBasedGame.java index d467b56c..6c1441c2 100644 --- a/core/src/fluddokt/opsu/fake/StateBasedGame.java +++ b/core/src/fluddokt/opsu/fake/StateBasedGame.java @@ -97,7 +97,7 @@ public void addState(BasicGameState state) // state.init(gc, this); } - public void renderCurrentState() throws SlickException + public void updateAndRenderCurrentState() throws SlickException { int deltaTime = Opsu.getDeltaTime(); diff --git a/core/src/itdelatrisu/opsu/Opsu.java b/core/src/itdelatrisu/opsu/Opsu.java index 9ec2721c..de615c6c 100644 --- a/core/src/itdelatrisu/opsu/Opsu.java +++ b/core/src/itdelatrisu/opsu/Opsu.java @@ -304,7 +304,7 @@ public void render() table.addActor(loadingLabel); } else - renderCurrentState(); + updateAndRenderCurrentState(); } catch (SlickException e) { e.printStackTrace(); error("SlickErrorRender", e); @@ -334,7 +334,7 @@ public void pause() //super.pause(); container.loseFocus(); try { - renderCurrentState(); // is really needed? + updateAndRenderCurrentState(); // is really needed? } catch (SlickException e) { e.printStackTrace(); }