Refactoring V
This commit is contained in:
parent
f6981ed649
commit
2569256f2c
@ -25,7 +25,7 @@ package com.openeggbert.core.configuration;
|
|||||||
*
|
*
|
||||||
* @author robertvokac
|
* @author robertvokac
|
||||||
*/
|
*/
|
||||||
public interface StrictMode {
|
public interface IsThisFeatureEnabledForStrictMode {
|
||||||
boolean isEnabledInCaseOfStrictMode();
|
boolean isThisFeatureEnabledForStrictMode();
|
||||||
|
|
||||||
}
|
}
|
@ -27,7 +27,7 @@ import lombok.Getter;
|
|||||||
*
|
*
|
||||||
* @author robertvokac
|
* @author robertvokac
|
||||||
*/
|
*/
|
||||||
public enum ScreenResolution implements StrictMode {
|
public enum ScreenResolution implements IsThisFeatureEnabledForStrictMode {
|
||||||
VGA(640,480,true),
|
VGA(640,480,true),
|
||||||
QUAD_VGA(1280, 960, false),
|
QUAD_VGA(1280, 960, false),
|
||||||
CURRENT(0, 0, false);
|
CURRENT(0, 0, false);
|
||||||
@ -44,7 +44,7 @@ public enum ScreenResolution implements StrictMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabledInCaseOfStrictMode() {
|
public boolean isThisFeatureEnabledForStrictMode() {
|
||||||
return enabledInCaseOfStrictMode;
|
return enabledInCaseOfStrictMode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ import lombok.Getter;
|
|||||||
public enum Cheat {
|
public enum Cheat {
|
||||||
|
|
||||||
MEGABLUPI(Release.ALL_RELEASES);
|
MEGABLUPI(Release.ALL_RELEASES);
|
||||||
//todo//todo//todo//todo
|
//todo
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private final Release[] compatibilityModes;
|
private final Release[] compatibilityModes;
|
||||||
|
@ -19,14 +19,14 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
package com.openeggbert.core.gamespace;
|
package com.openeggbert.core.gamespace;
|
||||||
|
|
||||||
import com.openeggbert.core.configuration.StrictMode;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import com.openeggbert.core.configuration.IsThisFeatureEnabledForStrictMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author robertvokac
|
* @author robertvokac
|
||||||
*/
|
*/
|
||||||
public enum GameDirectoryType implements StrictMode{
|
public enum GameDirectoryType implements IsThisFeatureEnabledForStrictMode{
|
||||||
DATA(true),
|
DATA(true),
|
||||||
IMAGE(true),
|
IMAGE(true),
|
||||||
IMAGE08(true),
|
IMAGE08(true),
|
||||||
@ -44,7 +44,7 @@ public enum GameDirectoryType implements StrictMode{
|
|||||||
this.enabledInCaseOfStrictMode = enabledInCaseOfStrictMode;
|
this.enabledInCaseOfStrictMode = enabledInCaseOfStrictMode;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabledInCaseOfStrictMode() {
|
public boolean isThisFeatureEnabledForStrictMode() {
|
||||||
return enabledInCaseOfStrictMode;
|
return enabledInCaseOfStrictMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,14 +19,14 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
package com.openeggbert.core.image;
|
package com.openeggbert.core.image;
|
||||||
|
|
||||||
import com.openeggbert.core.configuration.StrictMode;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import com.openeggbert.core.configuration.IsThisFeatureEnabledForStrictMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author robertvokac
|
* @author robertvokac
|
||||||
*/
|
*/
|
||||||
public enum ImageFormat implements StrictMode{
|
public enum ImageFormat implements IsThisFeatureEnabledForStrictMode{
|
||||||
BLP("blp", true),
|
BLP("blp", true),
|
||||||
BMP("bmp", false),
|
BMP("bmp", false),
|
||||||
PNG("png", false),
|
PNG("png", false),
|
||||||
@ -43,7 +43,7 @@ public enum ImageFormat implements StrictMode{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabledInCaseOfStrictMode() {
|
public boolean isThisFeatureEnabledForStrictMode() {
|
||||||
return enabledInCaseOfStrictMode;
|
return enabledInCaseOfStrictMode;
|
||||||
}
|
}
|
||||||
public ImageFormat getTargetFormat() {
|
public ImageFormat getTargetFormat() {
|
||||||
|
@ -19,14 +19,14 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
package com.openeggbert.core.image;
|
package com.openeggbert.core.image;
|
||||||
|
|
||||||
import com.openeggbert.core.configuration.StrictMode;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import com.openeggbert.core.configuration.IsThisFeatureEnabledForStrictMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author robertvokac
|
* @author robertvokac
|
||||||
*/
|
*/
|
||||||
public enum ImageResolution implements StrictMode{
|
public enum ImageResolution implements IsThisFeatureEnabledForStrictMode{
|
||||||
NORMAL(true), DOUBLE(false);
|
NORMAL(true), DOUBLE(false);
|
||||||
@Getter
|
@Getter
|
||||||
private boolean enabledInCaseOfStrictMode;
|
private boolean enabledInCaseOfStrictMode;
|
||||||
@ -35,7 +35,7 @@ public enum ImageResolution implements StrictMode{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabledInCaseOfStrictMode() {
|
public boolean isThisFeatureEnabledForStrictMode() {
|
||||||
return enabledInCaseOfStrictMode;
|
return enabledInCaseOfStrictMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,14 +19,14 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
package com.openeggbert.core.music;
|
package com.openeggbert.core.music;
|
||||||
|
|
||||||
import com.openeggbert.core.configuration.StrictMode;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import com.openeggbert.core.configuration.IsThisFeatureEnabledForStrictMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author robertvokac
|
* @author robertvokac
|
||||||
*/
|
*/
|
||||||
public enum MusicFormat implements StrictMode {
|
public enum MusicFormat implements IsThisFeatureEnabledForStrictMode {
|
||||||
BLP("blp", true),
|
BLP("blp", true),
|
||||||
MIDI("mid", false),
|
MIDI("mid", false),
|
||||||
WAV("wav", false),
|
WAV("wav", false),
|
||||||
@ -44,7 +44,7 @@ public enum MusicFormat implements StrictMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabledInCaseOfStrictMode() {
|
public boolean isThisFeatureEnabledForStrictMode() {
|
||||||
return enabledInCaseOfStrictMode;
|
return enabledInCaseOfStrictMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,14 +19,14 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
package com.openeggbert.core.sound;
|
package com.openeggbert.core.sound;
|
||||||
|
|
||||||
import com.openeggbert.core.configuration.StrictMode;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import com.openeggbert.core.configuration.IsThisFeatureEnabledForStrictMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author robertvokac
|
* @author robertvokac
|
||||||
*/
|
*/
|
||||||
public enum SoundFormat implements StrictMode {
|
public enum SoundFormat implements IsThisFeatureEnabledForStrictMode {
|
||||||
BLP("blp", true),
|
BLP("blp", true),
|
||||||
WAV("wav", false),
|
WAV("wav", false),
|
||||||
MP3("mp3", false),
|
MP3("mp3", false),
|
||||||
@ -43,7 +43,7 @@ public enum SoundFormat implements StrictMode {
|
|||||||
private boolean enabledInCaseOfStrictMode;
|
private boolean enabledInCaseOfStrictMode;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabledInCaseOfStrictMode() {
|
public boolean isThisFeatureEnabledForStrictMode() {
|
||||||
return enabledInCaseOfStrictMode;
|
return enabledInCaseOfStrictMode;
|
||||||
}
|
}
|
||||||
public SoundFormat getTargetFormat() {
|
public SoundFormat getTargetFormat() {
|
||||||
|
Reference in New Issue
Block a user