reorganization; added v5 release binaries

v5stable
Ondřej Hruška 11 years ago
parent 7d9df297fc
commit dc0de5deb7
  1. BIN
      release/v5/rogue.exe
  2. BIN
      release/v5/rogue.jar
  3. BIN
      release/v5/rogue.sh
  4. 2
      src/mightypork/gamecore/core/Config.java
  5. 2
      src/mightypork/gamecore/core/WorkDir.java
  6. 2
      src/mightypork/gamecore/core/events/MainLoopRequest.java
  7. 2
      src/mightypork/gamecore/core/events/ShudownRequest.java
  8. 2
      src/mightypork/gamecore/core/modules/AppAccess.java
  9. 2
      src/mightypork/gamecore/core/modules/AppAccessAdapter.java
  10. 2
      src/mightypork/gamecore/core/modules/AppModule.java
  11. 2
      src/mightypork/gamecore/core/modules/AppSubModule.java
  12. 22
      src/mightypork/gamecore/core/modules/BaseApp.java
  13. 2
      src/mightypork/gamecore/core/modules/MainLoop.java
  14. 4
      src/mightypork/gamecore/gui/components/LayoutComponent.java
  15. 2
      src/mightypork/gamecore/gui/components/layout/ColumnLayout.java
  16. 2
      src/mightypork/gamecore/gui/components/layout/ConstraintLayout.java
  17. 2
      src/mightypork/gamecore/gui/components/layout/FlowColumnLayout.java
  18. 2
      src/mightypork/gamecore/gui/components/layout/FlowRowLayout.java
  19. 2
      src/mightypork/gamecore/gui/components/layout/GridLayout.java
  20. 2
      src/mightypork/gamecore/gui/components/layout/RowLayout.java
  21. 2
      src/mightypork/gamecore/gui/components/layout/linear/LinearLayout.java
  22. 2
      src/mightypork/gamecore/gui/screens/LayeredScreen.java
  23. 4
      src/mightypork/gamecore/gui/screens/Overlay.java
  24. 4
      src/mightypork/gamecore/gui/screens/Screen.java
  25. 4
      src/mightypork/gamecore/gui/screens/ScreenRegistry.java
  26. 2
      src/mightypork/gamecore/gui/screens/impl/CrossfadeOverlay.java
  27. 2
      src/mightypork/gamecore/input/InputSystem.java
  28. 4
      src/mightypork/gamecore/render/DisplaySystem.java
  29. 2
      src/mightypork/gamecore/render/TaskTakeScreenshot.java
  30. 2
      src/mightypork/gamecore/resources/Res.java
  31. 4
      src/mightypork/gamecore/resources/audio/SoundRegistry.java
  32. 2
      src/mightypork/gamecore/resources/audio/SoundSystem.java
  33. 4
      src/mightypork/gamecore/resources/fonts/FontRegistry.java
  34. 4
      src/mightypork/gamecore/resources/textures/TextureRegistry.java
  35. 2
      src/mightypork/rogue/Launcher.java
  36. 12
      src/mightypork/rogue/RogueApp.java
  37. 2
      src/mightypork/rogue/RogueConfig.java
  38. 4
      src/mightypork/rogue/RogueKeys.java
  39. 4
      src/mightypork/rogue/RogueRoutes.java
  40. 4
      src/mightypork/rogue/RogueStateManager.java
  41. 4
      src/mightypork/rogue/screens/FpsOverlay.java
  42. 2
      src/mightypork/rogue/screens/LoadingOverlay.java
  43. 2
      src/mightypork/rogue/screens/RogueScreen.java
  44. 2
      src/mightypork/rogue/screens/game/IngameNav.java
  45. 2
      src/mightypork/rogue/screens/game/LayerAskSave.java
  46. 2
      src/mightypork/rogue/screens/game/LayerDeath.java
  47. 2
      src/mightypork/rogue/screens/game/LayerInv.java
  48. 2
      src/mightypork/rogue/screens/game/LayerWin.java
  49. 4
      src/mightypork/rogue/screens/game/ScreenGame.java
  50. 4
      src/mightypork/rogue/screens/menu/ScreenMainMenu.java
  51. 6
      src/mightypork/rogue/screens/select_world/ScreenSelectWorld.java
  52. 2
      src/mightypork/rogue/screens/select_world/WorldSlot.java
  53. 4
      src/mightypork/rogue/screens/story/ScreenStory.java
  54. 2
      src/mightypork/rogue/world/gui/interaction/MIPKeyboard.java

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -1,4 +1,4 @@
package mightypork.gamecore;
package mightypork.gamecore.core;
import java.io.File;

@ -1,4 +1,4 @@
package mightypork.gamecore;
package mightypork.gamecore.core;
import java.io.File;

@ -1,7 +1,7 @@
package mightypork.gamecore.core.events;
import mightypork.gamecore.core.MainLoop;
import mightypork.gamecore.core.modules.MainLoop;
import mightypork.gamecore.eventbus.BusEvent;
import mightypork.gamecore.eventbus.event_flags.SingleReceiverEvent;

@ -1,7 +1,7 @@
package mightypork.gamecore.core.events;
import mightypork.gamecore.core.MainLoop;
import mightypork.gamecore.core.modules.MainLoop;
import mightypork.gamecore.eventbus.BusEvent;
import mightypork.gamecore.eventbus.event_flags.NonConsumableEvent;
import mightypork.gamecore.eventbus.event_flags.SingleReceiverEvent;

@ -1,4 +1,4 @@
package mightypork.gamecore.core;
package mightypork.gamecore.core.modules;
import mightypork.gamecore.eventbus.BusAccess;

@ -1,4 +1,4 @@
package mightypork.gamecore.core;
package mightypork.gamecore.core.modules;
import mightypork.gamecore.eventbus.EventBus;

@ -1,4 +1,4 @@
package mightypork.gamecore.core;
package mightypork.gamecore.core.modules;
import mightypork.gamecore.eventbus.clients.RootBusNode;

@ -1,4 +1,4 @@
package mightypork.gamecore.core;
package mightypork.gamecore.core.modules;
import mightypork.gamecore.eventbus.clients.BusNode;

@ -1,4 +1,4 @@
package mightypork.gamecore.core;
package mightypork.gamecore.core.modules;
import java.io.File;
@ -10,11 +10,11 @@ import java.util.logging.Level;
import javax.swing.JOptionPane;
import mightypork.gamecore.Config;
import mightypork.gamecore.Config.ConfigSetup;
import mightypork.gamecore.Config.KeySetup;
import mightypork.gamecore.WorkDir;
import mightypork.gamecore.WorkDir.RouteSetup;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.core.WorkDir;
import mightypork.gamecore.core.Config.ConfigSetup;
import mightypork.gamecore.core.Config.KeySetup;
import mightypork.gamecore.core.WorkDir.RouteSetup;
import mightypork.gamecore.eventbus.EventBus;
import mightypork.gamecore.eventbus.events.DestroyEvent;
import mightypork.gamecore.gui.screens.ScreenRegistry;
@ -235,7 +235,7 @@ public abstract class BaseApp implements AppAccess, UncaughtExceptionHandler {
// connect slickutil to the logger
org.newdawn.slick.util.Log.setLogSystem(new SlickLogRedirector(log));
logSystemInfo();
writeLogHeader();
Log.i("=== Starting initialization sequence ===");
@ -316,7 +316,13 @@ public abstract class BaseApp implements AppAccess, UncaughtExceptionHandler {
}
private void logSystemInfo()
protected void writeLogHeader()
{
logSystemInfo();
}
protected void logSystemInfo()
{
String txt = "";

@ -1,4 +1,4 @@
package mightypork.gamecore.core;
package mightypork.gamecore.core.modules;
import java.util.Queue;

@ -4,8 +4,8 @@ package mightypork.gamecore.gui.components;
import java.util.Collection;
import java.util.LinkedList;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.AppSubModule;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.core.modules.AppSubModule;
import mightypork.gamecore.eventbus.EventBus;
import mightypork.gamecore.eventbus.clients.ClientHub;
import mightypork.gamecore.input.InputSystem;

@ -1,7 +1,7 @@
package mightypork.gamecore.gui.components.layout;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.components.Component;
import mightypork.gamecore.util.math.constraints.rect.proxy.RectBound;

@ -1,7 +1,7 @@
package mightypork.gamecore.gui.components.layout;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.components.Component;
import mightypork.gamecore.gui.components.LayoutComponent;
import mightypork.gamecore.util.math.constraints.rect.proxy.RectBound;

@ -1,7 +1,7 @@
package mightypork.gamecore.gui.components.layout;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.Component;
import mightypork.gamecore.gui.components.LayoutComponent;

@ -1,7 +1,7 @@
package mightypork.gamecore.gui.components.layout;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.AlignY;
import mightypork.gamecore.gui.components.Component;
import mightypork.gamecore.gui.components.LayoutComponent;

@ -1,7 +1,7 @@
package mightypork.gamecore.gui.components.layout;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.components.Component;
import mightypork.gamecore.gui.components.LayoutComponent;
import mightypork.gamecore.util.math.constraints.rect.builders.TiledRect;

@ -1,7 +1,7 @@
package mightypork.gamecore.gui.components.layout;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.components.Component;
import mightypork.gamecore.util.math.constraints.rect.proxy.RectBound;

@ -1,7 +1,7 @@
package mightypork.gamecore.gui.components.layout.linear;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.DynamicWidthComponent;
import mightypork.gamecore.gui.components.LayoutComponent;

@ -7,7 +7,7 @@ import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.eventbus.clients.DelegatingClient;

@ -4,8 +4,8 @@ package mightypork.gamecore.gui.screens;
import java.util.ArrayList;
import java.util.Collection;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.AppSubModule;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.core.modules.AppSubModule;
import mightypork.gamecore.eventbus.events.Updateable;
import mightypork.gamecore.gui.Enableable;
import mightypork.gamecore.gui.Hideable;

@ -1,8 +1,8 @@
package mightypork.gamecore.gui.screens;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.AppSubModule;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.core.modules.AppSubModule;
import mightypork.gamecore.gui.events.LayoutChangeEvent;
import mightypork.gamecore.gui.events.LayoutChangeListener;
import mightypork.gamecore.input.KeyBinder;

@ -6,8 +6,8 @@ import java.util.HashMap;
import java.util.Map;
import java.util.TreeSet;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.AppModule;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.core.modules.AppModule;
import mightypork.gamecore.gui.events.LayoutChangeEvent;
import mightypork.gamecore.gui.events.ScreenRequestListener;
import mightypork.gamecore.logging.Log;

@ -1,8 +1,8 @@
package mightypork.gamecore.gui.screens.impl;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.events.ShudownRequest;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.components.painters.QuadPainter;
import mightypork.gamecore.gui.events.ScreenRequest;
import mightypork.gamecore.gui.screens.Overlay;

@ -1,8 +1,8 @@
package mightypork.gamecore.input;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.events.UserQuitRequest;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.eventbus.clients.RootBusNode;
import mightypork.gamecore.eventbus.events.Updateable;
import mightypork.gamecore.input.KeyStroke.Edge;

@ -5,8 +5,8 @@ import static org.lwjgl.opengl.GL11.*;
import java.nio.ByteBuffer;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.AppModule;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.core.modules.AppModule;
import mightypork.gamecore.logging.Log;
import mightypork.gamecore.render.events.DisplayReadyEvent;
import mightypork.gamecore.render.events.ViewportChangeEvent;

@ -4,7 +4,7 @@ package mightypork.gamecore.render;
import java.io.File;
import java.io.IOException;
import mightypork.gamecore.WorkDir;
import mightypork.gamecore.core.WorkDir;
import mightypork.gamecore.logging.Log;
import mightypork.gamecore.util.Utils;

@ -1,7 +1,7 @@
package mightypork.gamecore.resources;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.resources.audio.SoundRegistry;
import mightypork.gamecore.resources.audio.players.EffectPlayer;
import mightypork.gamecore.resources.audio.players.LoopPlayer;

@ -4,8 +4,8 @@ package mightypork.gamecore.resources.audio;
import java.util.HashMap;
import java.util.Map;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.AppAccessAdapter;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.core.modules.AppAccessAdapter;
import mightypork.gamecore.resources.audio.players.EffectPlayer;
import mightypork.gamecore.resources.audio.players.LoopPlayer;

@ -5,7 +5,7 @@ import java.nio.FloatBuffer;
import java.util.HashSet;
import java.util.Set;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.eventbus.clients.RootBusNode;
import mightypork.gamecore.eventbus.events.Updateable;
import mightypork.gamecore.logging.Log;

@ -3,8 +3,8 @@ package mightypork.gamecore.resources.fonts;
import java.util.HashMap;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.AppAccessAdapter;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.core.modules.AppAccessAdapter;
import mightypork.gamecore.resources.ResourceLoadRequest;
import mightypork.gamecore.resources.fonts.impl.LazyFont;

@ -4,8 +4,8 @@ package mightypork.gamecore.resources.textures;
import java.util.HashMap;
import java.util.Map;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.AppAccessAdapter;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.core.modules.AppAccessAdapter;
import mightypork.gamecore.resources.ResourceLoadRequest;
import mightypork.gamecore.util.error.KeyAlreadyExistsException;
import mightypork.gamecore.util.math.constraints.rect.Rect;

@ -4,7 +4,7 @@ package mightypork.rogue;
import java.io.File;
import java.util.logging.Level;
import mightypork.gamecore.core.BaseApp;
import mightypork.gamecore.core.modules.BaseApp;
import mightypork.gamecore.util.files.OsUtils;

@ -3,15 +3,16 @@ package mightypork.rogue;
import java.io.File;
import mightypork.gamecore.Config;
import mightypork.gamecore.core.BaseApp;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.core.events.MainLoopRequest;
import mightypork.gamecore.core.events.ShudownRequest;
import mightypork.gamecore.core.events.UserQuitRequest;
import mightypork.gamecore.core.modules.BaseApp;
import mightypork.gamecore.eventbus.BusEvent;
import mightypork.gamecore.gui.screens.ScreenRegistry;
import mightypork.gamecore.input.InputSystem;
import mightypork.gamecore.input.KeyStroke.Edge;
import mightypork.gamecore.logging.Log;
import mightypork.gamecore.render.DisplaySystem;
import mightypork.gamecore.render.events.FullscreenToggleRequest;
import mightypork.gamecore.render.events.ScreenshotRequest;
@ -163,4 +164,11 @@ public final class RogueApp extends BaseApp implements ViewportChangeListener, S
// screenshot sound
Res.getSoundEffect("gui.shutter").play(0.8);
}
@Override
protected void writeLogHeader()
{
Log.i("## Starting Rogue v."+Const.VERSION+" ##");
super.writeLogHeader();
}
}

@ -1,7 +1,7 @@
package mightypork.rogue;
import mightypork.gamecore.Config.ConfigSetup;
import mightypork.gamecore.core.Config.ConfigSetup;
import mightypork.gamecore.util.files.config.PropertyManager;

@ -1,8 +1,8 @@
package mightypork.rogue;
import mightypork.gamecore.Config;
import mightypork.gamecore.Config.KeyOpts;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.core.Config.KeyOpts;
public class RogueKeys implements Config.KeySetup {

@ -1,8 +1,8 @@
package mightypork.rogue;
import mightypork.gamecore.WorkDir.RouteOpts;
import mightypork.gamecore.WorkDir.RouteSetup;
import mightypork.gamecore.core.WorkDir.RouteOpts;
import mightypork.gamecore.core.WorkDir.RouteSetup;
public class RogueRoutes implements RouteSetup {

@ -1,8 +1,8 @@
package mightypork.rogue;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.AppModule;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.core.modules.AppModule;
import mightypork.gamecore.gui.screens.impl.CrossfadeRequest;
import mightypork.gamecore.logging.Log;

@ -1,8 +1,8 @@
package mightypork.rogue.screens;
import mightypork.gamecore.Config;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.Action;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.painters.TextPainter;

@ -1,7 +1,7 @@
package mightypork.rogue.screens;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.painters.QuadPainter;
import mightypork.gamecore.gui.components.painters.TextPainter;

@ -1,9 +1,9 @@
package mightypork.rogue.screens;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.events.UserQuitRequest;
import mightypork.gamecore.core.events.UserQuitRequestListener;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.screens.LayeredScreen;
import mightypork.gamecore.util.annot.DefaultImpl;
import mightypork.rogue.RogueStateManager.RogueState;

@ -1,7 +1,7 @@
package mightypork.rogue.screens.game;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.LayoutComponent;
import mightypork.gamecore.gui.components.layout.FlowColumnLayout;

@ -3,7 +3,7 @@ package mightypork.rogue.screens.game;
import java.io.IOException;
import mightypork.gamecore.Config;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.gui.Action;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.input.TextButton;

@ -3,7 +3,7 @@ package mightypork.rogue.screens.game;
import java.io.IOException;
import mightypork.gamecore.Config;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.gui.Action;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.input.TextButton;

@ -1,7 +1,7 @@
package mightypork.rogue.screens.game;
import mightypork.gamecore.Config;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.layout.ConstraintLayout;
import mightypork.gamecore.gui.components.layout.FlowColumnLayout;

@ -3,7 +3,7 @@ package mightypork.rogue.screens.game;
import java.io.File;
import mightypork.gamecore.Config;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.gui.Action;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.input.TextButton;

@ -3,9 +3,9 @@ package mightypork.rogue.screens.game;
import java.io.File;
import mightypork.gamecore.Config;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.core.events.UserQuitRequest;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.Action;
import mightypork.gamecore.gui.ActionGroup;
import mightypork.gamecore.input.KeyStroke.Edge;

@ -1,9 +1,9 @@
package mightypork.rogue.screens.menu;
import mightypork.gamecore.Config;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.core.events.UserQuitRequest;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.Action;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.input.TextButton;

@ -1,9 +1,9 @@
package mightypork.rogue.screens.select_world;
import mightypork.gamecore.Config;
import mightypork.gamecore.WorkDir;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.core.WorkDir;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.layout.RowLayout;
import mightypork.gamecore.gui.components.painters.QuadPainter;

@ -4,7 +4,7 @@ package mightypork.rogue.screens.select_world;
import java.io.File;
import java.io.IOException;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.Action;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.input.TextButton;

@ -1,8 +1,8 @@
package mightypork.rogue.screens.story;
import mightypork.gamecore.Config;
import mightypork.gamecore.core.AppAccess;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.core.modules.AppAccess;
import mightypork.gamecore.gui.Action;
import mightypork.gamecore.gui.AlignX;
import mightypork.gamecore.gui.components.layout.RowLayout;

@ -5,7 +5,7 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import mightypork.gamecore.Config;
import mightypork.gamecore.core.Config;
import mightypork.gamecore.eventbus.clients.DelegatingClient;
import mightypork.gamecore.eventbus.events.Updateable;
import mightypork.gamecore.input.InputSystem;

Loading…
Cancel
Save