From 3a6b5379dc75dcda1330a4fe7424b1e965c54964 Mon Sep 17 00:00:00 2001 From: James <150948866+jameslaight@users.noreply.github.com> Date: Sun, 21 Apr 2024 01:19:50 +0100 Subject: [PATCH] remove actors --- core/src/com/monjaro/gamejam/Game.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/core/src/com/monjaro/gamejam/Game.java b/core/src/com/monjaro/gamejam/Game.java index fb1b526..6c54ca8 100644 --- a/core/src/com/monjaro/gamejam/Game.java +++ b/core/src/com/monjaro/gamejam/Game.java @@ -13,14 +13,10 @@ import com.monjaro.gamejam.segment.KinSegment; import com.monjaro.gamejam.segment.Segment; import java.util.ArrayList; -import java.util.HashSet; import java.util.List; -import java.util.Set; public class Game extends ApplicationAdapter { - private final Set actors = new HashSet<>(); - private final List dice = new ArrayList<>(); private final List segments = new ArrayList<>(); @@ -57,8 +53,6 @@ public class Game extends ApplicationAdapter { public void tick() { processInput(); - - actors.forEach(Actor::tick); } public void processInput() { @@ -94,8 +88,6 @@ public class Game extends ApplicationAdapter { ScreenUtils.clear(0, 0, 0, 1); batch.begin(); - actors.forEach(a -> a.render(batch)); - //TODO debug for (Die die : dice) { die.render(batch); @@ -120,12 +112,4 @@ public class Game extends ApplicationAdapter { img.dispose(); } - private void addActor(Actor actor) { - actors.add(actor); - } - - private void removeActor(Actor actor) { - actors.remove(actor); - } - }