Refactoring II

This commit is contained in:
Robert Vokac 2024-08-16 15:46:20 +02:00
parent a55c088487
commit de52e662a9
No known key found for this signature in database
GPG Key ID: C459E1E4B4A986BB
65 changed files with 150 additions and 141 deletions

View File

@ -4,7 +4,7 @@ import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication; import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
/** Launches the Android application. */ /** Launches the Android application. */
public class AndroidLauncher extends AndroidApplication { public class AndroidLauncher extends AndroidApplication {

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
/** /**
* *

View File

@ -17,9 +17,9 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
import com.openeggbert.entity.common.OpenEggbertException; import com.openeggbert.core.entity.common.OpenEggbertException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Comparator; import java.util.Comparator;

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
import lombok.Getter; import lombok.Getter;

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
import lombok.Getter; import lombok.Getter;

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
import lombok.Getter; import lombok.Getter;

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
/** /**
* *

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
import lombok.Getter; import lombok.Getter;

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
/** /**
* *

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
import lombok.Getter; import lombok.Getter;
@ -26,23 +26,29 @@ import lombok.Getter;
* @author robertvokac * @author robertvokac
*/ */
public enum Release { public enum Release {
SPEEDY_BLUPI_DEMO(ReleaseType.BLUPI, ReleaseVersion.DEMO, Publisher.EPSITEC_SA), SPEEDY_BLUPI_DEMO(ReleaseType.BLUPI, ReleaseVersion.DEMO, Publisher.EPSITEC_SA, "SBD"),
SPEEDY_BLUPI_I(ReleaseType.BLUPI, ReleaseVersion.ONE, Publisher.EPSITEC_SA), SPEEDY_BLUPI_I(ReleaseType.BLUPI, ReleaseVersion.ONE, Publisher.EPSITEC_SA, "SBI"),
SPEEDY_BLUPI_II(ReleaseType.BLUPI, ReleaseVersion.TWO, Publisher.EPSITEC_SA), SPEEDY_BLUPI_II(ReleaseType.BLUPI, ReleaseVersion.TWO, Publisher.EPSITEC_SA, "SBII"),
SPEEDY_EGGBERT_DEMO(ReleaseType.EGGBERT, ReleaseVersion.DEMO, Publisher.E_GAMES), SPEEDY_EGGBERT_DEMO(ReleaseType.EGGBERT, ReleaseVersion.DEMO, Publisher.E_GAMES, "SED"),
SPEEDY_EGGBERT_1(ReleaseType.EGGBERT, ReleaseVersion.ONE, Publisher.E_GAMES), SPEEDY_EGGBERT_1(ReleaseType.EGGBERT, ReleaseVersion.ONE, Publisher.E_GAMES, "SE1"),
SPEEDY_EGGBERT_2(ReleaseType.EGGBERT, ReleaseVersion.TWO, Publisher.E_GAMES), SPEEDY_EGGBERT_2(ReleaseType.EGGBERT, ReleaseVersion.TWO, Publisher.E_GAMES, "SE2"),
SPEEDY_EGGBERT_VALUEWARE(ReleaseType.EGGBERT, ReleaseVersion.VALUEWARE, Publisher.E_GAMES), SPEEDY_EGGBERT_VALUEWARE(ReleaseType.EGGBERT, ReleaseVersion.VALUEWARE, Publisher.E_GAMES, "SEW"),
SPEEDY_BLUPI_FOR_WINDOWS_PHONE(ReleaseType.BLUPI, ReleaseVersion.WINDOWS_PHONE, Publisher.DADA_GAMES), SPEEDY_BLUPI_FOR_WINDOWS_PHONE(ReleaseType.BLUPI, ReleaseVersion.WINDOWS_PHONE, Publisher.DADA_GAMES, "SBP"),
OPEN_EGGBERT_3(ReleaseType.OPEN, ReleaseVersion.THREE, Publisher.OPEN_EGGBERT); OPEN_EGGBERT_3(ReleaseType.OPEN, ReleaseVersion.THREE, Publisher.OPEN_EGGBERT, "OE3");
@Getter @Getter
private final ReleaseType releaseType; private final ReleaseType releaseType;
@Getter @Getter
private final ReleaseVersion releaseVersion; private final ReleaseVersion releaseVersion;
@Getter
private final Publisher publisher;
@Getter
private final String abbreviation;
private Release(ReleaseType releaseType, ReleaseVersion releaseVersion, Publisher publisher) { private Release(ReleaseType releaseType, ReleaseVersion releaseVersion, Publisher publisher, String abbreviation) {
this.releaseType = releaseType; this.releaseType = releaseType;
this.releaseVersion = releaseVersion; this.releaseVersion = releaseVersion;
this.publisher = publisher;
this.abbreviation = abbreviation;
} }
public String createLabel() { public String createLabel() {

View File

@ -19,7 +19,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
/** /**
* *

View File

@ -19,7 +19,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
/** /**
* *

View File

@ -19,7 +19,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
import lombok.Getter; import lombok.Getter;

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
import lombok.Getter; import lombok.Getter;

View File

@ -19,7 +19,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.core.compatibility;
/** /**
* *

View File

@ -19,9 +19,9 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
import com.openeggbert.compatibility.Release; import com.openeggbert.core.compatibility.Release;
import lombok.Getter; import lombok.Getter;
/** /**

View File

@ -17,9 +17,9 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
import com.openeggbert.utils.OpenEggbertUtils; import com.openeggbert.core.utils.OpenEggbertUtils;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import lombok.ToString; import lombok.ToString;

View File

@ -17,9 +17,9 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
import com.openeggbert.compatibility.Release; import com.openeggbert.core.compatibility.Release;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;

View File

@ -19,7 +19,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
/** /**
* *

View File

@ -18,7 +18,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
/** /**
* *

View File

@ -17,9 +17,9 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
import com.openeggbert.compatibility.Release; import com.openeggbert.core.compatibility.Release;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;

View File

@ -18,7 +18,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
/** /**

View File

@ -19,9 +19,9 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
import com.openeggbert.compatibility.Release; import com.openeggbert.core.compatibility.Release;
import lombok.Getter; import lombok.Getter;
/** /**

View File

@ -18,7 +18,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
/** /**
* *

View File

@ -19,7 +19,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
import lombok.Getter; import lombok.Getter;

View File

@ -19,7 +19,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
/** /**
* *

View File

@ -19,9 +19,9 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
import com.openeggbert.compatibility.Release; import com.openeggbert.core.compatibility.Release;
import lombok.Getter; import lombok.Getter;
/** /**

View File

@ -19,9 +19,9 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
import com.openeggbert.compatibility.Release; import com.openeggbert.core.compatibility.Release;
/** /**
* *

View File

@ -19,7 +19,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.common; package com.openeggbert.core.entity.common;
/** /**
* *

View File

@ -19,7 +19,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.sprites; package com.openeggbert.core.entity.sprites;
/** /**
* *

View File

@ -19,9 +19,9 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.sprites; package com.openeggbert.core.entity.sprites;
import com.openeggbert.compatibility.ReleaseVersion; import com.openeggbert.core.compatibility.ReleaseVersion;
import lombok.Getter; import lombok.Getter;
/** /**

View File

@ -17,10 +17,10 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.sprites; package com.openeggbert.core.entity.sprites;
import com.openeggbert.entity.common.OpenEggbertException; import com.openeggbert.core.entity.common.OpenEggbertException;
import com.openeggbert.utils.OpenEggbertUtils; import com.openeggbert.core.utils.OpenEggbertUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
@ -49,7 +49,7 @@ public class SpriteSheet {
if (columnIndexesForNames.containsKey(columnName)) { if (columnIndexesForNames.containsKey(columnName)) {
throw new OpenEggbertException("Invalid sprite sheet. It has invalid the first row (column names). Column is more than once: " + columnName); throw new OpenEggbertException("Invalid sprite sheet. It has invalid the first row (column names). Column is more than once: " + columnName);
} }
Optional<SpriteSheetRowColumn> optionalSpriteSheetRowColumn = Arrays.asList(com.openeggbert.entity.sprites.SpriteSheetRowColumn.values()).stream().filter(r -> r.getColumnName().equals(columnName)).findFirst(); Optional<SpriteSheetRowColumn> optionalSpriteSheetRowColumn = Arrays.asList(com.openeggbert.core.entity.sprites.SpriteSheetRowColumn.values()).stream().filter(r -> r.getColumnName().equals(columnName)).findFirst();
if (!optionalSpriteSheetRowColumn.isPresent()) { if (!optionalSpriteSheetRowColumn.isPresent()) {
continue; continue;
} }

View File

@ -17,10 +17,10 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.sprites; package com.openeggbert.core.entity.sprites;
import com.openeggbert.entity.common.OpenEggbertException; import com.openeggbert.core.entity.common.OpenEggbertException;
import com.openeggbert.utils.OpenEggbertUtils; import com.openeggbert.core.utils.OpenEggbertUtils;
import java.util.Map; import java.util.Map;
import java.util.function.Function; import java.util.function.Function;
import lombok.Getter; import lombok.Getter;

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.entity.sprites; package com.openeggbert.core.entity.sprites;
import lombok.Getter; import lombok.Getter;

View File

@ -17,9 +17,9 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.main; package com.openeggbert.core.main;
import com.openeggbert.utils.AssetsTxt; import com.openeggbert.core.utils.AssetsTxt;
import com.badlogic.gdx.Game; import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.files.FileHandle;
@ -31,16 +31,16 @@ import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.utils.ObjectMap; import com.badlogic.gdx.utils.ObjectMap;
import com.badlogic.gdx.utils.viewport.Viewport; import com.badlogic.gdx.utils.viewport.Viewport;
import com.openeggbert.entity.common.ConfigDef; import com.openeggbert.core.entity.common.ConfigDef;
import com.openeggbert.entity.common.GameSpace; import com.openeggbert.core.entity.common.GameSpace;
import com.openeggbert.mods.Mod; import com.openeggbert.core.mods.Mod;
import com.openeggbert.mods.ModIdentification; import com.openeggbert.core.mods.ModIdentification;
import com.openeggbert.screens.GameSpaceListScreen; import com.openeggbert.core.screens.GameSpaceListScreen;
import com.openeggbert.screens.InitScreen; import com.openeggbert.core.screens.InitScreen;
import com.openeggbert.gdx.storage.Storage; import com.openeggbert.gdx.storage.Storage;
import com.openeggbert.gdx.storage.StorageImplementationLoader; import com.openeggbert.gdx.storage.StorageImplementationLoader;
import com.openeggbert.utils.OpenEggbertDisplayMode; import com.openeggbert.core.utils.OpenEggbertDisplayMode;
import com.openeggbert.utils.OpenEggbertUtils; import com.openeggbert.core.utils.OpenEggbertUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;

View File

@ -17,11 +17,11 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.mods; package com.openeggbert.core.mods;
import com.badlogic.gdx.utils.XmlReader; import com.badlogic.gdx.utils.XmlReader;
import com.badlogic.gdx.utils.XmlReader.Element; import com.badlogic.gdx.utils.XmlReader.Element;
import com.openeggbert.compatibility.Release; import com.openeggbert.core.compatibility.Release;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import lombok.Data; import lombok.Data;

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.mods; package com.openeggbert.core.mods;
import com.badlogic.gdx.utils.XmlReader.Element; import com.badlogic.gdx.utils.XmlReader.Element;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;

View File

@ -18,7 +18,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.mods; package com.openeggbert.core.mods;
/** /**
* *

View File

@ -18,7 +18,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.mods; package com.openeggbert.core.mods;
/** /**
* *

View File

@ -18,7 +18,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.mods; package com.openeggbert.core.mods;
/** /**
* *

View File

@ -18,7 +18,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.mods; package com.openeggbert.core.mods;
/** /**
* *

View File

@ -2,7 +2,7 @@
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/ */
package com.openeggbert.mods; package com.openeggbert.core.mods;
/** /**
* *

View File

@ -18,7 +18,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.mods; package com.openeggbert.core.mods;
/** /**
* *

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.mods; package com.openeggbert.core.mods;
import com.badlogic.gdx.utils.XmlReader; import com.badlogic.gdx.utils.XmlReader;

View File

@ -17,14 +17,14 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.screens; package com.openeggbert.core.screens;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.utils.ScreenUtils; import com.badlogic.gdx.utils.ScreenUtils;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
/** /**
* *

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.screens; package com.openeggbert.core.screens;
import com.badlogic.gdx.Application; import com.badlogic.gdx.Application;
import static com.badlogic.gdx.Application.LOG_INFO; import static com.badlogic.gdx.Application.LOG_INFO;
@ -26,11 +26,11 @@ import com.badlogic.gdx.ScreenAdapter;
import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.openeggbert.entity.common.GameFileType; import com.openeggbert.core.entity.common.GameFileType;
import com.openeggbert.entity.common.OpenEggbertException; import com.openeggbert.core.entity.common.OpenEggbertException;
import com.openeggbert.entity.common.OpenEggbertScreenType; import com.openeggbert.core.entity.common.OpenEggbertScreenType;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
import com.openeggbert.utils.OpenEggbertUtils; import com.openeggbert.core.utils.OpenEggbertUtils;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;

View File

@ -17,15 +17,15 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.screens; package com.openeggbert.core.screens;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.utils.ScreenUtils; import com.badlogic.gdx.utils.ScreenUtils;
import com.openeggbert.entity.common.OpenEggbertScreenType; import com.openeggbert.core.entity.common.OpenEggbertScreenType;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
import java.util.Optional; import java.util.Optional;
/** /**

View File

@ -17,15 +17,15 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.screens; package com.openeggbert.core.screens;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.utils.ScreenUtils; import com.badlogic.gdx.utils.ScreenUtils;
import com.openeggbert.entity.common.OpenEggbertScreenType; import com.openeggbert.core.entity.common.OpenEggbertScreenType;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
import java.util.Optional; import java.util.Optional;
/** /**

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.screens; package com.openeggbert.core.screens;
import com.badlogic.gdx.Application; import com.badlogic.gdx.Application;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
@ -28,10 +28,10 @@ import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.utils.ScreenUtils; import com.badlogic.gdx.utils.ScreenUtils;
import com.openeggbert.entity.common.GameSpace; import com.openeggbert.core.entity.common.GameSpace;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
import com.openeggbert.mods.Mod; import com.openeggbert.core.mods.Mod;
import com.openeggbert.mods.ModType; import com.openeggbert.core.mods.ModType;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.screens; package com.openeggbert.core.screens;
import com.badlogic.gdx.Application; import com.badlogic.gdx.Application;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
@ -25,11 +25,11 @@ import com.badlogic.gdx.Input;
import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.utils.ScreenUtils; import com.badlogic.gdx.utils.ScreenUtils;
import com.openeggbert.entity.common.ConfigDef; import com.openeggbert.core.entity.common.ConfigDef;
import com.openeggbert.entity.common.OpenEggbertScreenType; import com.openeggbert.core.entity.common.OpenEggbertScreenType;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
import com.openeggbert.utils.EmbeddedFileHandleFactory; import com.openeggbert.core.utils.EmbeddedFileHandleFactory;
import com.openeggbert.utils.OpenEggbertDisplayMode; import com.openeggbert.core.utils.OpenEggbertDisplayMode;
import java.util.Optional; import java.util.Optional;
/** /**

View File

@ -17,15 +17,15 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.screens; package com.openeggbert.core.screens;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.utils.ScreenUtils; import com.badlogic.gdx.utils.ScreenUtils;
import com.openeggbert.entity.common.OpenEggbertScreenType; import com.openeggbert.core.entity.common.OpenEggbertScreenType;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
import java.util.Optional; import java.util.Optional;
/** /**

View File

@ -17,15 +17,15 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.screens; package com.openeggbert.core.screens;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.utils.ScreenUtils; import com.badlogic.gdx.utils.ScreenUtils;
import com.openeggbert.entity.common.OpenEggbertScreenType; import com.openeggbert.core.entity.common.OpenEggbertScreenType;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
import java.util.Optional; import java.util.Optional;
/** /**

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.screens; package com.openeggbert.core.screens;
import com.badlogic.gdx.Application; import com.badlogic.gdx.Application;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
@ -25,7 +25,7 @@ import com.badlogic.gdx.Input;
import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.utils.ScreenUtils; import com.badlogic.gdx.utils.ScreenUtils;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
import java.util.function.Function; import java.util.function.Function;
/** /**

View File

@ -17,13 +17,13 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.utils; package com.openeggbert.core.utils;
import com.badlogic.gdx.Application; import com.badlogic.gdx.Application;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.files.FileHandle;
import com.openeggbert.entity.common.OpenEggbertException; import com.openeggbert.core.entity.common.OpenEggbertException;
import com.openeggbert.utils.OpenEggbertUtils; import com.openeggbert.core.utils.OpenEggbertUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashSet; import java.util.HashSet;

View File

@ -17,7 +17,7 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.utils; package com.openeggbert.core.utils;
import com.badlogic.gdx.Application; import com.badlogic.gdx.Application;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;

View File

@ -17,13 +17,13 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.utils; package com.openeggbert.core.utils;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Graphics; import com.badlogic.gdx.Graphics;
import com.badlogic.gdx.Graphics.DisplayMode; import com.badlogic.gdx.Graphics.DisplayMode;
import com.openeggbert.entity.common.ConfigDef; import com.openeggbert.core.entity.common.ConfigDef;
import com.openeggbert.entity.common.OpenEggbertException; import com.openeggbert.core.entity.common.OpenEggbertException;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;

View File

@ -17,14 +17,14 @@
// <https://www.gnu.org/licenses/> or write to the Free Software // <https://www.gnu.org/licenses/> or write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.utils; package com.openeggbert.core.utils;
import com.openeggbert.compatibility.FileNameCaseType; import com.openeggbert.core.compatibility.FileNameCaseType;
import com.openeggbert.compatibility.ImageFormat; import com.openeggbert.core.compatibility.ImageFormat;
import com.openeggbert.compatibility.MusicFormat; import com.openeggbert.core.compatibility.MusicFormat;
import com.openeggbert.compatibility.SoundFormat; import com.openeggbert.core.compatibility.SoundFormat;
import com.openeggbert.entity.common.GameFileType; import com.openeggbert.core.entity.common.GameFileType;
import com.openeggbert.entity.common.OpenEggbertException; import com.openeggbert.core.entity.common.OpenEggbertException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;

View File

@ -19,9 +19,10 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.compatibility; package com.openeggbert.compatibility;
import com.openeggbert.entity.common.GameFileType; import com.openeggbert.core.compatibility.FileNameCaseType;
import com.openeggbert.entity.common.OpenEggbertException; import com.openeggbert.core.entity.common.GameFileType;
import com.openeggbert.utils.OpenEggbertUtils; import com.openeggbert.core.entity.common.OpenEggbertException;
import com.openeggbert.core.utils.OpenEggbertUtils;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.AfterEach;

View File

@ -19,7 +19,8 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.utils; package com.openeggbert.utils;
import com.openeggbert.entity.common.GameFileType; import com.openeggbert.core.utils.OpenEggbertUtils;
import com.openeggbert.core.entity.common.GameFileType;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterAll;

View File

@ -22,7 +22,7 @@
<inherits name="com.github.czyzby.websocket.GdxWebSocket" /> <inherits name="com.github.czyzby.websocket.GdxWebSocket" />
<inherits name="com.github.czyzby.websocket.GdxWebSocketGwt" /> <inherits name="com.github.czyzby.websocket.GdxWebSocketGwt" />
<inherits name="com.github.czyzby.websocket.GdxWebSocketSerialization" /> <inherits name="com.github.czyzby.websocket.GdxWebSocketSerialization" />
<inherits name="com.openeggbert.main.OpenEggbertGame" /> <inherits name="com.openeggbert.core.main.OpenEggbertGame" />
<!--<inherits name="com.openeggbert.gdx.storage.GdxStorageMainClass" />--> <!--<inherits name="com.openeggbert.gdx.storage.GdxStorageMainClass" />-->
<inherits name="formic" /> <inherits name="formic" />
<inherits name="guacamole_gdx_gwt" /> <inherits name="guacamole_gdx_gwt" />

View File

@ -3,7 +3,8 @@ package com.openeggbert.gwt;
import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.gwt.GwtApplication; import com.badlogic.gdx.backends.gwt.GwtApplication;
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.compatibility.ScreenResolution;
import com.openeggbert.core.main.OpenEggbertGame;
/** Launches the GWT application. */ /** Launches the GWT application. */
public class GwtLauncher extends GwtApplication { public class GwtLauncher extends GwtApplication {
@ -16,7 +17,7 @@ public class GwtLauncher extends GwtApplication {
//return cfg; //return cfg;
// If you want a fixed size application, comment out the above resizable section, // If you want a fixed size application, comment out the above resizable section,
// and uncomment below: // and uncomment below:
return new GwtApplicationConfiguration(640, 480); return new GwtApplicationConfiguration(ScreenResolution.VGA.getWidth(), ScreenResolution.VGA.getHeight());
} }
@Override @Override

View File

@ -19,9 +19,9 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.lwjgl3; package com.openeggbert.lwjgl3;
import com.openeggbert.compatibility.Release; import com.openeggbert.core.compatibility.Release;
import com.openeggbert.entity.common.GameSpace; import com.openeggbert.core.entity.common.GameSpace;
import com.openeggbert.entity.common.OpenEggbertException; import com.openeggbert.core.entity.common.OpenEggbertException;
import java.io.File; import java.io.File;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.util.Optional; import java.util.Optional;
@ -41,17 +41,17 @@ public class DesktopUtils {
String gameSpaceDirectoryFromSystemProperty = System.getProperty(GAME_SPACE_DIRECTORY, ""); String gameSpaceDirectoryFromSystemProperty = System.getProperty(GAME_SPACE_DIRECTORY, "");
if (!gameSpaceDirectoryFromEnvironmentVariable.isBlank()) { if (!gameSpaceDirectoryFromEnvironmentVariable.isBlank()) {
return tryToLoadGameSpaceFromEnvironmentVariable(gameSpaceDirectoryFromEnvironmentVariable); return tryToLoadGameSpaceFromDirectory(gameSpaceDirectoryFromEnvironmentVariable);
} }
if (!gameSpaceDirectoryFromSystemProperty.isBlank()) { if (!gameSpaceDirectoryFromSystemProperty.isBlank()) {
return tryToLoadGameSpaceFromEnvironmentVariable(gameSpaceDirectoryFromSystemProperty); return tryToLoadGameSpaceFromDirectory(gameSpaceDirectoryFromSystemProperty);
} }
Optional<GameSpace> gameOptional = tryToLoadGameSpaceFromCurrentDirectory(); Optional<GameSpace> gameOptional = tryToLoadGameSpaceFromCurrentDirectory();
return gameOptional; return gameOptional;
} }
private static final String GAME_SPACE_DIRECTORY = "GAME_SPACE_DIRECTORY"; private static final String GAME_SPACE_DIRECTORY = "GAME_SPACE_DIRECTORY";
private static Optional<GameSpace> tryToLoadGameSpaceFromEnvironmentVariable(String gameSpaceDirectoryFromEnvironmentVariable) { private static Optional<GameSpace> tryToLoadGameSpaceFromDirectory(String gameSpaceDirectoryFromEnvironmentVariable) {
File gameSpaceDirectory = new File(gameSpaceDirectoryFromEnvironmentVariable); File gameSpaceDirectory = new File(gameSpaceDirectoryFromEnvironmentVariable);

View File

@ -22,8 +22,8 @@ package com.openeggbert.lwjgl3;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application; import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration; import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
import com.openeggbert.main.OpenEggbertGame; import com.openeggbert.core.main.OpenEggbertGame;
import com.openeggbert.entity.common.GameSpace; import com.openeggbert.core.entity.common.GameSpace;
import java.util.Optional; import java.util.Optional;
/** Launches the desktop (LWJGL3) application. */ /** Launches the desktop (LWJGL3) application. */

View File

@ -19,7 +19,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
package com.openeggbert.lwjgl3.debugging; package com.openeggbert.lwjgl3.debugging;
import com.openeggbert.utils.AssetsTxt; import com.openeggbert.core.utils.AssetsTxt;
import java.util.List; import java.util.List;
import java.util.Scanner; import java.util.Scanner;