1b: inline temporary static fields
This commit is contained in:
parent
d937090e5f
commit
7c8f81ff1c
@ -321,9 +321,9 @@ public class LevelSaveHelper {
|
||||
}
|
||||
|
||||
// Retrieve current values
|
||||
groupValue = curGridElement.getGroupName();
|
||||
groupValue = "field";
|
||||
nameValue = curGridElement.getSpriteName();
|
||||
stateValue = curGridElement.getStateValue();
|
||||
stateValue = "initial";
|
||||
convertibleValue = curGridElement.isConvertible() ? "1" : "0";
|
||||
|
||||
// Create sprite XML element
|
||||
|
@ -17,9 +17,6 @@ import java.io.IOException;
|
||||
public abstract class DisplayableElementModel {
|
||||
private static String spriteStorageFolderPath = "./res/drawable/field/";
|
||||
|
||||
private static String groupName;
|
||||
private static String stateValue;
|
||||
|
||||
private boolean destructible;
|
||||
private boolean moving;
|
||||
private boolean animate;
|
||||
@ -31,14 +28,6 @@ public abstract class DisplayableElementModel {
|
||||
private boolean convertible;
|
||||
private String collideSound;
|
||||
|
||||
/**
|
||||
* Static dataset
|
||||
*/
|
||||
static {
|
||||
groupName = "field";
|
||||
stateValue = "initial";
|
||||
}
|
||||
|
||||
/**
|
||||
* Class constructor
|
||||
*
|
||||
@ -146,24 +135,6 @@ public abstract class DisplayableElementModel {
|
||||
return this.moving;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the group name value
|
||||
*
|
||||
* @return Group name value
|
||||
*/
|
||||
public String getGroupName() {
|
||||
return this.groupName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the state value
|
||||
*
|
||||
* @return State value
|
||||
*/
|
||||
public String getStateValue() {
|
||||
return this.stateValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sprite name value
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user