Imports bereinigt

This commit is contained in:
ngb 2022-12-10 11:07:17 +01:00
parent 20772da813
commit 1260a38bb7
2 changed files with 6 additions and 10 deletions

View File

@ -88,7 +88,11 @@ public abstract class Layer extends Constants implements Drawable, Updatable {
} else {
createCanvas(width, height);
}
}
// TODO: prevent access to graphics context?
public Graphics2D getGraphics() {
return this.drawing;
}
/**
@ -165,9 +169,6 @@ public abstract class Layer extends Constants implements Drawable, Updatable {
}
}
/**
* {@inheritDoc}
*/
@Override
public boolean isVisible() {
return visible;
@ -197,16 +198,10 @@ public abstract class Layer extends Constants implements Drawable, Updatable {
visible = !visible;
}
/**
* {@inheritDoc}
*/
@Override
public void update( double delta ) {
}
/**
* {@inheritDoc}
*/
@Override
public boolean isActive() {
return active;

View File

@ -5,7 +5,8 @@ import schule.ngb.zm.util.io.FileLoader;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
class FileLoaderTest {