1b: inline field, make fields final

This commit is contained in:
Daniel Langbein 2024-11-19 10:51:32 +01:00
parent 8cccc03881
commit 7d3f773365
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -15,19 +15,19 @@ import java.io.IOException;
* @since 2015-06-19 * @since 2015-06-19
*/ */
public abstract class DisplayableElementModel { public abstract class DisplayableElementModel {
private static String spriteStorageFolderPath = "./res/drawable/field/"; protected final String spriteName;
private final boolean destructible;
private final boolean moving;
private boolean destructible;
private boolean moving;
private boolean animate; private boolean animate;
private boolean impactExplosive; private boolean impactExplosive;
protected final String spriteName;
private int priority; private int priority;
private BufferedImage sprite;
private boolean falling; private boolean falling;
private boolean convertible; private boolean convertible;
private String collideSound; private String collideSound;
private BufferedImage sprite;
/** /**
* Class constructor * Class constructor
* *
@ -146,7 +146,7 @@ public abstract class DisplayableElementModel {
* @return Folder path of the sprite storage * @return Folder path of the sprite storage
*/ */
private static String getSpriteStorageFolderPath() { private static String getSpriteStorageFolderPath() {
return spriteStorageFolderPath; return "./res/drawable/field/";
} }
/** /**