From bc477506342411e9156b3230d847cb92bcb8e5f9 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 24 Nov 2015 11:11:17 +0100 Subject: Reformat code --- src/ch/epfl/maze/graphics/Animation.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/ch/epfl/maze/graphics/Animation.java') diff --git a/src/ch/epfl/maze/graphics/Animation.java b/src/ch/epfl/maze/graphics/Animation.java index ce80c78..a00b6b2 100644 --- a/src/ch/epfl/maze/graphics/Animation.java +++ b/src/ch/epfl/maze/graphics/Animation.java @@ -22,7 +22,6 @@ import java.util.TreeMap; * * @author Pacien TRAN-GIRARD */ - public final class Animation { /** @@ -62,7 +61,6 @@ public final class Animation { * @param animals The {@code List} of animals that will be shown on the first * frame */ - public Animation(List animals) { mGraphMap = new TreeMap(); mImages = new HashMap(); @@ -94,7 +92,6 @@ public final class Animation { * @param id Unique identifier for animal * @param action Action that animal needs to perform */ - public void update(Animal animal, int id, Action action) { // sanity checks if (action == null) { @@ -123,7 +120,6 @@ public final class Animation { * * @param id Identifier of animal to kill */ - public void updateDying(int id) { GraphicComponent graphComp = mGraphMap.get(id); if (graphComp != null) { @@ -135,7 +131,6 @@ public final class Animation { * Notifies the animation that updates were done, and that it can start * animating from now. */ - public void doneUpdating() { mDone = false; } @@ -149,7 +144,6 @@ public final class Animation { * @param targetWindow The window on which the graphic components will be painted * (assumed non-null) */ - public void paint(float dt, Graphics2D g, ImageObserver targetWindow) { mRatio += dt; if (mRatio > 1) { @@ -181,7 +175,6 @@ public final class Animation { * * @return true if the animation is done, false otherwise */ - public boolean isDone() { return mDone; } @@ -192,7 +185,6 @@ public final class Animation { * number of frames will still be painted to prevent the screen from * flashing. */ - public void reset(List animals) { mGraphMap.clear(); if (animals != null) { @@ -225,7 +217,6 @@ public final class Animation { * @param animal Animal whose image needs to be loaded or returned * @return The buffered image of the animal */ - private BufferedImage loadImage(Animal animal) { // path = "img/superclass/class.png" String superClassName = animal.getClass().getSuperclass().getSimpleName(); -- cgit v1.2.3