Refactoring V

This commit is contained in:
Robert Vokac 2024-08-16 16:29:37 +02:00
parent f6981ed649
commit 2569256f2c
No known key found for this signature in database
GPG Key ID: C459E1E4B4A986BB
8 changed files with 20 additions and 20 deletions

View File

@ -25,7 +25,7 @@ package com.openeggbert.core.configuration;
*
* @author robertvokac
*/
public interface StrictMode {
boolean isEnabledInCaseOfStrictMode();
public interface IsThisFeatureEnabledForStrictMode {
boolean isThisFeatureEnabledForStrictMode();
}

View File

@ -27,7 +27,7 @@ import lombok.Getter;
*
* @author robertvokac
*/
public enum ScreenResolution implements StrictMode {
public enum ScreenResolution implements IsThisFeatureEnabledForStrictMode {
VGA(640,480,true),
QUAD_VGA(1280, 960, false),
CURRENT(0, 0, false);
@ -44,7 +44,7 @@ public enum ScreenResolution implements StrictMode {
}
@Override
public boolean isEnabledInCaseOfStrictMode() {
public boolean isThisFeatureEnabledForStrictMode() {
return enabledInCaseOfStrictMode;
}
}

View File

@ -31,7 +31,7 @@ import lombok.Getter;
public enum Cheat {
MEGABLUPI(Release.ALL_RELEASES);
//todo//todo//todo//todo
//todo
@Getter
private final Release[] compatibilityModes;

View File

@ -19,14 +19,14 @@
///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.core.gamespace;
import com.openeggbert.core.configuration.StrictMode;
import lombok.Getter;
import com.openeggbert.core.configuration.IsThisFeatureEnabledForStrictMode;
/**
*
* @author robertvokac
*/
public enum GameDirectoryType implements StrictMode{
public enum GameDirectoryType implements IsThisFeatureEnabledForStrictMode{
DATA(true),
IMAGE(true),
IMAGE08(true),
@ -44,7 +44,7 @@ public enum GameDirectoryType implements StrictMode{
this.enabledInCaseOfStrictMode = enabledInCaseOfStrictMode;
}
@Override
public boolean isEnabledInCaseOfStrictMode() {
public boolean isThisFeatureEnabledForStrictMode() {
return enabledInCaseOfStrictMode;
}

View File

@ -19,14 +19,14 @@
///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.core.image;
import com.openeggbert.core.configuration.StrictMode;
import lombok.Getter;
import com.openeggbert.core.configuration.IsThisFeatureEnabledForStrictMode;
/**
*
* @author robertvokac
*/
public enum ImageFormat implements StrictMode{
public enum ImageFormat implements IsThisFeatureEnabledForStrictMode{
BLP("blp", true),
BMP("bmp", false),
PNG("png", false),
@ -43,7 +43,7 @@ public enum ImageFormat implements StrictMode{
}
@Override
public boolean isEnabledInCaseOfStrictMode() {
public boolean isThisFeatureEnabledForStrictMode() {
return enabledInCaseOfStrictMode;
}
public ImageFormat getTargetFormat() {

View File

@ -19,14 +19,14 @@
///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.core.image;
import com.openeggbert.core.configuration.StrictMode;
import lombok.Getter;
import com.openeggbert.core.configuration.IsThisFeatureEnabledForStrictMode;
/**
*
* @author robertvokac
*/
public enum ImageResolution implements StrictMode{
public enum ImageResolution implements IsThisFeatureEnabledForStrictMode{
NORMAL(true), DOUBLE(false);
@Getter
private boolean enabledInCaseOfStrictMode;
@ -35,7 +35,7 @@ public enum ImageResolution implements StrictMode{
}
@Override
public boolean isEnabledInCaseOfStrictMode() {
public boolean isThisFeatureEnabledForStrictMode() {
return enabledInCaseOfStrictMode;
}

View File

@ -19,14 +19,14 @@
///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.core.music;
import com.openeggbert.core.configuration.StrictMode;
import lombok.Getter;
import com.openeggbert.core.configuration.IsThisFeatureEnabledForStrictMode;
/**
*
* @author robertvokac
*/
public enum MusicFormat implements StrictMode {
public enum MusicFormat implements IsThisFeatureEnabledForStrictMode {
BLP("blp", true),
MIDI("mid", false),
WAV("wav", false),
@ -44,7 +44,7 @@ public enum MusicFormat implements StrictMode {
}
@Override
public boolean isEnabledInCaseOfStrictMode() {
public boolean isThisFeatureEnabledForStrictMode() {
return enabledInCaseOfStrictMode;
}

View File

@ -19,14 +19,14 @@
///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.core.sound;
import com.openeggbert.core.configuration.StrictMode;
import lombok.Getter;
import com.openeggbert.core.configuration.IsThisFeatureEnabledForStrictMode;
/**
*
* @author robertvokac
*/
public enum SoundFormat implements StrictMode {
public enum SoundFormat implements IsThisFeatureEnabledForStrictMode {
BLP("blp", true),
WAV("wav", false),
MP3("mp3", false),
@ -43,7 +43,7 @@ public enum SoundFormat implements StrictMode {
private boolean enabledInCaseOfStrictMode;
@Override
public boolean isEnabledInCaseOfStrictMode() {
public boolean isThisFeatureEnabledForStrictMode() {
return enabledInCaseOfStrictMode;
}
public SoundFormat getTargetFormat() {