master
Ondřej Hruška 10 years ago
parent cba8886ece
commit e510ca592b
  1. 4
      src/mightypork/gamecore/core/Config.java
  2. 2
      src/mightypork/gamecore/core/WorkDir.java
  3. 2
      src/mightypork/gamecore/core/events/MainLoopRequest.java
  4. 2
      src/mightypork/gamecore/core/events/ShudownRequest.java
  5. 2
      src/mightypork/gamecore/core/events/UserQuitRequest.java
  6. 2
      src/mightypork/gamecore/core/events/UserQuitRequestListener.java
  7. 2
      src/mightypork/gamecore/core/modules/AppAccess.java
  8. 2
      src/mightypork/gamecore/core/modules/AppAccessAdapter.java
  9. 2
      src/mightypork/gamecore/core/modules/AppModule.java
  10. 2
      src/mightypork/gamecore/core/modules/AppSubModule.java
  11. 2
      src/mightypork/gamecore/core/modules/BaseApp.java
  12. 2
      src/mightypork/gamecore/core/modules/MainLoop.java
  13. 2
      src/mightypork/gamecore/eventbus/BusAccess.java
  14. 2
      src/mightypork/gamecore/eventbus/BusEvent.java
  15. 2
      src/mightypork/gamecore/eventbus/EventBus.java
  16. 2
      src/mightypork/gamecore/eventbus/EventChannel.java
  17. 2
      src/mightypork/gamecore/eventbus/clients/BusNode.java
  18. 2
      src/mightypork/gamecore/eventbus/clients/ClientHub.java
  19. 2
      src/mightypork/gamecore/eventbus/clients/ClientList.java
  20. 2
      src/mightypork/gamecore/eventbus/clients/DelegatingClient.java
  21. 2
      src/mightypork/gamecore/eventbus/clients/DelegatingList.java
  22. 2
      src/mightypork/gamecore/eventbus/clients/RootBusNode.java
  23. 2
      src/mightypork/gamecore/eventbus/clients/ToggleableClient.java
  24. 2
      src/mightypork/gamecore/eventbus/event_flags/DelayedEvent.java
  25. 2
      src/mightypork/gamecore/eventbus/event_flags/DirectEvent.java
  26. 2
      src/mightypork/gamecore/eventbus/event_flags/NonConsumableEvent.java
  27. 2
      src/mightypork/gamecore/eventbus/event_flags/NonRejectableEvent.java
  28. 2
      src/mightypork/gamecore/eventbus/event_flags/NotLoggedEvent.java
  29. 2
      src/mightypork/gamecore/eventbus/event_flags/SingleReceiverEvent.java
  30. 2
      src/mightypork/gamecore/eventbus/events/DestroyEvent.java
  31. 2
      src/mightypork/gamecore/eventbus/events/Destroyable.java
  32. 2
      src/mightypork/gamecore/eventbus/events/UpdateEvent.java
  33. 2
      src/mightypork/gamecore/eventbus/events/Updateable.java
  34. 2
      src/mightypork/gamecore/gui/Action.java
  35. 2
      src/mightypork/gamecore/gui/ActionTrigger.java
  36. 2
      src/mightypork/gamecore/gui/AlignX.java
  37. 2
      src/mightypork/gamecore/gui/AlignY.java
  38. 2
      src/mightypork/gamecore/gui/Enableable.java
  39. 2
      src/mightypork/gamecore/gui/Hideable.java
  40. 2
      src/mightypork/gamecore/gui/components/BaseComponent.java
  41. 2
      src/mightypork/gamecore/gui/components/Component.java
  42. 2
      src/mightypork/gamecore/gui/components/PluggableRenderable.java
  43. 2
      src/mightypork/gamecore/gui/components/input/TextButton.java
  44. 2
      src/mightypork/gamecore/gui/components/layout/ConstraintLayout.java
  45. 2
      src/mightypork/gamecore/gui/components/layout/FlowColumnLayout.java
  46. 2
      src/mightypork/gamecore/gui/components/layout/FlowRowLayout.java
  47. 2
      src/mightypork/gamecore/gui/components/layout/GridLayout.java
  48. 2
      src/mightypork/gamecore/gui/components/layout/NullComponent.java
  49. 2
      src/mightypork/gamecore/gui/components/layout/linear/AbstractLinearWrapper.java
  50. 2
      src/mightypork/gamecore/gui/components/layout/linear/LinearGap.java
  51. 2
      src/mightypork/gamecore/gui/components/painters/ImagePainter.java
  52. 2
      src/mightypork/gamecore/gui/components/painters/QuadPainter.java
  53. 2
      src/mightypork/gamecore/gui/components/painters/TextPainter.java
  54. 2
      src/mightypork/gamecore/gui/events/LayoutChangeEvent.java
  55. 2
      src/mightypork/gamecore/gui/events/ScreenRequest.java
  56. 2
      src/mightypork/gamecore/gui/events/ScreenRequestListener.java
  57. 4
      src/mightypork/gamecore/gui/screens/LayeredScreen.java
  58. 2
      src/mightypork/gamecore/gui/screens/Overlay.java
  59. 2
      src/mightypork/gamecore/gui/screens/Screen.java
  60. 2
      src/mightypork/gamecore/gui/screens/ScreenLayer.java
  61. 2
      src/mightypork/gamecore/gui/screens/ScreenRegistry.java
  62. 2
      src/mightypork/gamecore/gui/screens/impl/CrossfadeOverlay.java
  63. 2
      src/mightypork/gamecore/gui/screens/impl/CrossfadeRequest.java
  64. 2
      src/mightypork/gamecore/gui/screens/impl/FadingLayer.java
  65. 2
      src/mightypork/gamecore/input/InputSystem.java
  66. 2
      src/mightypork/gamecore/input/KeyBinder.java
  67. 2
      src/mightypork/gamecore/input/KeyBinding.java
  68. 2
      src/mightypork/gamecore/input/KeyBindingPool.java
  69. 2
      src/mightypork/gamecore/input/KeyStroke.java
  70. 2
      src/mightypork/gamecore/input/Keys.java
  71. 2
      src/mightypork/gamecore/input/events/KeyEvent.java
  72. 2
      src/mightypork/gamecore/input/events/KeyEventHandler.java
  73. 2
      src/mightypork/gamecore/input/events/MouseButtonEvent.java
  74. 2
      src/mightypork/gamecore/input/events/MouseButtonHandler.java
  75. 2
      src/mightypork/gamecore/input/events/MouseMotionEvent.java
  76. 2
      src/mightypork/gamecore/input/events/MouseMotionHandler.java
  77. 2
      src/mightypork/gamecore/logging/Log.java
  78. 2
      src/mightypork/gamecore/logging/LogAlias.java
  79. 2
      src/mightypork/gamecore/logging/SlickLogRedirector.java
  80. 2
      src/mightypork/gamecore/logging/writers/ArchivingLog.java
  81. 2
      src/mightypork/gamecore/logging/writers/LogWriter.java
  82. 2
      src/mightypork/gamecore/logging/writers/SimpleLog.java
  83. 2
      src/mightypork/gamecore/render/DisplaySystem.java
  84. 2
      src/mightypork/gamecore/render/Render.java
  85. 2
      src/mightypork/gamecore/render/Renderable.java
  86. 2
      src/mightypork/gamecore/render/Screenshot.java
  87. 2
      src/mightypork/gamecore/render/events/ViewportChangeEvent.java
  88. 2
      src/mightypork/gamecore/render/events/ViewportChangeListener.java
  89. 2
      src/mightypork/gamecore/resources/AsyncResourceLoader.java
  90. 2
      src/mightypork/gamecore/resources/BaseLazyResource.java
  91. 2
      src/mightypork/gamecore/resources/LazyResource.java
  92. 2
      src/mightypork/gamecore/resources/Res.java
  93. 2
      src/mightypork/gamecore/resources/ResourceLoadRequest.java
  94. 2
      src/mightypork/gamecore/resources/ResourceLoader.java
  95. 2
      src/mightypork/gamecore/resources/ResourceSetup.java
  96. 2
      src/mightypork/gamecore/resources/TextureBasedResource.java
  97. 2
      src/mightypork/gamecore/resources/audio/JointVolume.java
  98. 2
      src/mightypork/gamecore/resources/audio/LazyAudio.java
  99. 2
      src/mightypork/gamecore/resources/audio/SoundRegistry.java
  100. 2
      src/mightypork/gamecore/resources/audio/SoundSystem.java
  101. Some files were not shown because too many files have changed in this diff Show More

@ -15,7 +15,7 @@ import mightypork.gamecore.util.files.config.PropertyManager;
/**
* Static application configuration
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class Config {
@ -63,7 +63,7 @@ public class Config {
* Key property.<br>
* The stored value must be invariant ({@link KeyStroke} is mutable).
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public static class KeyProperty extends Property<KeyStroke> {

@ -11,7 +11,7 @@ import mightypork.gamecore.logging.Log;
/**
* Static application workdir accessor.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class WorkDir {

@ -9,7 +9,7 @@ import mightypork.gamecore.eventbus.event_flags.SingleReceiverEvent;
/**
* Request to execute given {@link Runnable} in main loop.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@SingleReceiverEvent
public class MainLoopRequest extends BusEvent<MainLoop> {

@ -11,7 +11,7 @@ import mightypork.gamecore.eventbus.event_flags.SingleReceiverEvent;
* Shutdown request, non-interactive. Shutdown needs to execute on GL thread for
* display to deinit properly.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@SingleReceiverEvent
@NonConsumableEvent

@ -10,7 +10,7 @@ import mightypork.gamecore.eventbus.EventBus;
* titlebar button, and if no client consumes it, the application will be shut
* down.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class UserQuitRequest extends BusEvent<UserQuitRequestListener> {

@ -4,7 +4,7 @@ package mightypork.gamecore.core.events;
/**
* Quit request listener; implementing client can abort shutdown.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface UserQuitRequestListener {

@ -10,7 +10,7 @@ import mightypork.gamecore.resources.audio.SoundSystem;
/**
* App interface visible to subsystems
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface AppAccess extends BusAccess {

@ -10,7 +10,7 @@ import mightypork.gamecore.resources.audio.SoundSystem;
/**
* App access adapter (defualt {@link AppAccess} implementation)
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class AppAccessAdapter implements AppAccess {

@ -11,7 +11,7 @@ import mightypork.gamecore.resources.audio.SoundSystem;
* App event bus client, to be used for subsystems, screens and anything that
* needs access to the eventbus and other systems; Attached directly to bus.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class AppModule extends RootBusNode implements AppAccess {

@ -13,7 +13,7 @@ import mightypork.gamecore.resources.audio.SoundSystem;
* Delegating bus client, to be attached to any {@link DelegatingClient}, such
* as a {@link RootBusNode}.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class AppSubModule extends BusNode implements AppAccess {

@ -40,7 +40,7 @@ import mightypork.ion.Ion;
* Basic screen-based game with subsystems.<br>
* This class takes care of the initialization sequence.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class BaseApp implements AppAccess, UncaughtExceptionHandler {

@ -19,7 +19,7 @@ import mightypork.gamecore.util.math.timing.TimerDelta;
/**
* Delta-timed game loop with task queue etc.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class MainLoop extends AppModule implements ScreenshotRequestListener {

@ -4,7 +4,7 @@ package mightypork.gamecore.eventbus;
/**
* Access to an {@link EventBus} instance
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface BusAccess {

@ -27,7 +27,7 @@ import mightypork.gamecore.eventbus.event_flags.SingleReceiverEvent;
* zero delay.
* </p>
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
* @param <HANDLER> handler type
*/
public abstract class BusEvent<HANDLER> {

@ -24,7 +24,7 @@ import mightypork.gamecore.util.Utils;
* An event bus, accommodating multiple EventChannels.<br>
* Channel will be created when an event of type is first encountered.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
final public class EventBus implements Destroyable, BusAccess {

@ -14,7 +14,7 @@ import mightypork.gamecore.util.Utils;
/**
* Event delivery channel, module of {@link EventBus}
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
* @param <EVENT> event type
* @param <CLIENT> client (subscriber) type
*/

@ -13,7 +13,7 @@ import mightypork.gamecore.eventbus.EventBus;
* Client that can be attached to the {@link EventBus}, or added as a child
* client to another {@link DelegatingClient}
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class BusNode implements BusAccess, ClientHub {

@ -9,7 +9,7 @@ import mightypork.gamecore.eventbus.EventBus;
/**
* Common methods for client hubs (ie delegating vlient implementations)
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface ClientHub extends DelegatingClient, ToggleableClient {

@ -7,7 +7,7 @@ import java.util.ArrayList;
/**
* Array-list with varargs constructor
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class ClientList extends ArrayList<Object> {

@ -9,7 +9,7 @@ import java.util.Collection;
* of clients is ordered, the clients will be served in that order. In any case,
* the {@link DelegatingClient} itself will be served beforehand.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface DelegatingClient {

@ -9,7 +9,7 @@ import mightypork.gamecore.gui.Enableable;
/**
* Basic delegating client
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class DelegatingList extends ClientList implements DelegatingClient, Enableable {

@ -9,7 +9,7 @@ import mightypork.gamecore.util.annot.DefaultImpl;
/**
* Bus node that should be directly attached to the bus.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class RootBusNode extends BusNode implements Destroyable {

@ -4,7 +4,7 @@ package mightypork.gamecore.eventbus.clients;
/**
* Client that can toggle receiving messages.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface ToggleableClient {

@ -7,7 +7,7 @@ import java.lang.annotation.*;
/**
* Event that should be queued with given delay (default: 0);
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)

@ -7,7 +7,7 @@ import java.lang.annotation.*;
/**
* Event that should not be queued.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)

@ -11,7 +11,7 @@ import java.lang.annotation.Target;
/**
* Event that cannot be consumed
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@Retention(RetentionPolicy.RUNTIME)
@Documented

@ -11,7 +11,7 @@ import java.lang.annotation.Target;
/**
* Event that is forcibly delivered to all clients (bypass Toggleable etc)
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@Retention(RetentionPolicy.RUNTIME)
@Documented

@ -8,7 +8,7 @@ import java.lang.annotation.*;
* Event that's not worth logging, unless there was an error with it.<br>
* Useful for common events that would otherwise clutter the log.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)

@ -7,7 +7,7 @@ import java.lang.annotation.*;
/**
* Handled only by the first client, then discarded.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)

@ -9,7 +9,7 @@ import mightypork.gamecore.eventbus.event_flags.NonConsumableEvent;
/**
* Invoke destroy() method of all subscribers. Used to deinit a system.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@DirectEvent
@NonConsumableEvent

@ -4,7 +4,7 @@ package mightypork.gamecore.eventbus.events;
/**
* Object that can be destroyed (free resources etc)
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface Destroyable {

@ -10,7 +10,7 @@ import mightypork.gamecore.eventbus.event_flags.NotLoggedEvent;
/**
* Delta timing update event. Not logged.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@NotLoggedEvent
@DirectEvent

@ -4,7 +4,7 @@ package mightypork.gamecore.eventbus.events;
/**
* Uses delta timing
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface Updateable {

@ -4,7 +4,7 @@ package mightypork.gamecore.gui;
/**
* Triggered action
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class Action implements Runnable, Enableable {

@ -4,7 +4,7 @@ package mightypork.gamecore.gui;
/**
* Element that can be assigned an action (ie. button);
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface ActionTrigger {

@ -4,7 +4,7 @@ package mightypork.gamecore.gui;
/**
* Horizontal align sides
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public enum AlignX
{

@ -4,7 +4,7 @@ package mightypork.gamecore.gui;
/**
* Vertical align sides
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public enum AlignY
{

@ -6,7 +6,7 @@ package mightypork.gamecore.gui;
* Implementations should take appropriate action (ie. stop listening to events,
* updating etc.)
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface Enableable {

@ -4,7 +4,7 @@ package mightypork.gamecore.gui;
/**
* Element that can be hidden or visible
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface Hideable {

@ -20,7 +20,7 @@ import mightypork.gamecore.util.math.constraints.rect.proxy.RectBoundAdapter;
* {@link Renderable} with pluggable context. When caching is enabled, the
* layout update can be triggered by firing the {@link LayoutChangeEvent}.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class BaseComponent extends AbstractRectCache implements Component, LayoutChangeListener, Enableable {

@ -9,7 +9,7 @@ import mightypork.gamecore.util.math.constraints.num.Num;
/**
* Basic UI component interface
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface Component extends Enableable, Hideable, PluggableRenderable {

@ -10,7 +10,7 @@ import mightypork.gamecore.util.math.constraints.rect.proxy.RectBound;
/**
* Renderable that can be assigned different context
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface PluggableRenderable extends Renderable, PluggableRectBound {

@ -15,7 +15,7 @@ import mightypork.gamecore.util.math.constraints.vect.mutable.VectVar;
/**
* Menu-like button with shadow and push state
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class TextButton extends ClickableComponent implements DynamicWidthComponent {

@ -10,7 +10,7 @@ import mightypork.gamecore.util.math.constraints.rect.proxy.RectBound;
/**
* Layout for components with arbitrary constraints.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class ConstraintLayout extends LayoutComponent {

@ -13,7 +13,7 @@ import mightypork.gamecore.util.math.constraints.rect.proxy.RectBound;
/**
* Holder with same-sized columns, aligned to left or right
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class FlowColumnLayout extends LayoutComponent {

@ -13,7 +13,7 @@ import mightypork.gamecore.util.math.constraints.rect.proxy.RectBound;
/**
* Holder with same-sized rows, aligned to top or bottom
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class FlowRowLayout extends LayoutComponent {

@ -11,7 +11,7 @@ import mightypork.gamecore.util.math.constraints.rect.proxy.RectBound;
/**
* Holder with table cells
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class GridLayout extends LayoutComponent {

@ -7,7 +7,7 @@ import mightypork.gamecore.gui.components.BaseComponent;
/**
* Invisible component that does nothing at all; Null object pattern
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class NullComponent extends BaseComponent {

@ -12,7 +12,7 @@ import mightypork.gamecore.gui.components.LinearComponent;
/**
* Converts a component into a linear component
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class AbstractLinearWrapper extends LinearComponent implements DelegatingClient {

@ -8,7 +8,7 @@ import mightypork.gamecore.util.math.constraints.num.Num;
/**
* Gap in linear layout
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class LinearGap extends LinearRectangle {

@ -10,7 +10,7 @@ import mightypork.gamecore.resources.textures.TxQuad;
/**
* Draws image in given rect
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class ImagePainter extends BaseComponent implements DynamicWidthComponent {

@ -10,7 +10,7 @@ import mightypork.gamecore.util.math.color.Color;
/**
* Draws image in given rect
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class QuadPainter extends BaseComponent {

@ -19,7 +19,7 @@ import mightypork.gamecore.util.strings.StringWrapper;
/**
* Text painting component.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class TextPainter extends BaseComponent implements DynamicWidthComponent {

@ -11,7 +11,7 @@ import mightypork.gamecore.eventbus.event_flags.NonRejectableEvent;
* Intended use is to notify UI component sub-clients that they should poll
* their cached constraints.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@DirectEvent
@NonConsumableEvent

@ -8,7 +8,7 @@ import mightypork.gamecore.eventbus.event_flags.SingleReceiverEvent;
/**
* Request to change screen
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@SingleReceiverEvent
public class ScreenRequest extends BusEvent<ScreenRequestListener> {

@ -4,7 +4,7 @@ package mightypork.gamecore.gui.events;
/**
* {@link ScreenRequest} listener
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface ScreenRequestListener {

@ -14,14 +14,14 @@ import mightypork.gamecore.eventbus.clients.DelegatingClient;
/**
* Screen with multiple instances of {@link ScreenLayer}
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class LayeredScreen extends Screen {
/**
* Wrapper for delegating client, to use custom client ordering.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
private class LayersClient implements DelegatingClient {

@ -26,7 +26,7 @@ import mightypork.gamecore.util.math.constraints.vect.Vect;
* Abstract overlay.<br>
* Overlay is connected to event bus and is renderable.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class Overlay extends AppSubModule implements Comparable<Overlay>, Updateable, Renderable, KeyBinder, Hideable, Enableable,
LayoutChangeListener {

@ -20,7 +20,7 @@ import mightypork.gamecore.util.math.constraints.rect.proxy.RectBound;
/**
* Screen class.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class Screen extends AppSubModule implements Renderable, RectBound, KeyBinder, LayoutChangeListener {

@ -7,7 +7,7 @@ import mightypork.gamecore.util.annot.DefaultImpl;
/**
* Screen display layer
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class ScreenLayer extends Overlay {

@ -20,7 +20,7 @@ import mightypork.gamecore.util.annot.DefaultImpl;
/**
* Game screens holder; Takes care of rendering and screen requests.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class ScreenRegistry extends AppModule implements ScreenRequestListener, ViewportChangeListener, Renderable {

@ -15,7 +15,7 @@ import mightypork.gamecore.util.math.timing.TimedTask;
/**
* Overlay used for cross-fading between screens
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class CrossfadeOverlay extends Overlay {

@ -6,7 +6,7 @@ import mightypork.gamecore.eventbus.event_flags.SingleReceiverEvent;
/**
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@SingleReceiverEvent
public class CrossfadeRequest extends BusEvent<CrossfadeOverlay> {

@ -12,7 +12,7 @@ import mightypork.gamecore.util.math.timing.TimedTask;
/**
* Layer that smoothly appears/disappears when shown/hidden
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public abstract class FadingLayer extends ScreenLayer {

@ -22,7 +22,7 @@ import org.lwjgl.opengl.Display;
/**
* Input system
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class InputSystem extends RootBusNode implements Updateable, KeyBinder {

@ -8,7 +8,7 @@ import mightypork.gamecore.input.KeyStroke.Edge;
/**
* Can bind events to keys.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface KeyBinder {

@ -10,7 +10,7 @@ import mightypork.gamecore.input.events.KeyEventHandler;
/**
* Key binding, trigger activated by a keystroke event
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class KeyBinding implements KeyEventHandler, InputReadyListener {

@ -14,7 +14,7 @@ import mightypork.gamecore.logging.Log;
/**
* Key binding pool
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class KeyBindingPool implements KeyBinder, KeyEventHandler {

@ -9,7 +9,7 @@ import org.lwjgl.input.Keyboard;
/**
* Key stroke trigger
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class KeyStroke { //implements Pollable

@ -11,7 +11,7 @@ import org.lwjgl.input.Keyboard;
/**
* Key constants, from LWJGL {@link Keyboard}
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class Keys {

@ -10,7 +10,7 @@ import org.lwjgl.input.Keyboard;
/**
* A keyboard event
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@NotLoggedEvent
public class KeyEvent extends BusEvent<KeyEventHandler> {

@ -4,7 +4,7 @@ package mightypork.gamecore.input.events;
/**
* {@link KeyEvent} listener
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface KeyEventHandler {

@ -11,7 +11,7 @@ import mightypork.gamecore.util.math.constraints.vect.VectConst;
/**
* Mouse button / wheel event triggered
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@NotLoggedEvent
public class MouseButtonEvent extends BusEvent<MouseButtonHandler> {

@ -4,7 +4,7 @@ package mightypork.gamecore.input.events;
/**
* {@link MouseButtonEvent} listener
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface MouseButtonHandler {

@ -10,7 +10,7 @@ import mightypork.gamecore.util.math.constraints.vect.VectConst;
/**
* Mouse moved
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@NotLoggedEvent
public class MouseMotionEvent extends BusEvent<MouseMotionHandler> {

@ -4,7 +4,7 @@ package mightypork.gamecore.input.events;
/**
* {@link MouseMotionEvent} listener
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface MouseMotionHandler {

@ -19,7 +19,7 @@ import mightypork.gamecore.util.strings.StringUtils;
/**
* A log.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class Log {

@ -10,7 +10,7 @@ import java.lang.annotation.RetentionPolicy;
/**
* Specify pretty name to be used when logging (eg. <code>Log.str()</code>)
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@Retention(RetentionPolicy.RUNTIME)
@Inherited

@ -9,7 +9,7 @@ import mightypork.gamecore.logging.writers.LogWriter;
/**
* Used to redirect slick log into main logger.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class SlickLogRedirector implements org.newdawn.slick.util.LogSystem {

@ -15,7 +15,7 @@ import mightypork.gamecore.util.files.FileUtils;
/**
* Logger that cleans directory & archives old logs
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
* @copy (c) 2014
*/
public class ArchivingLog extends SimpleLog {

@ -9,7 +9,7 @@ import mightypork.gamecore.logging.monitors.LogMonitor;
/**
* Log interface
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface LogWriter {

@ -18,7 +18,7 @@ import mightypork.gamecore.logging.monitors.LogMonitor;
/**
* Basic logger
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class SimpleLog implements LogWriter {

@ -24,7 +24,7 @@ import org.lwjgl.opengl.DisplayMode;
/**
* Display system
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class DisplaySystem extends AppModule implements RectBound {

@ -25,7 +25,7 @@ import org.newdawn.slick.opengl.TextureLoader;
/**
* Render utilities
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class Render {

@ -4,7 +4,7 @@ package mightypork.gamecore.render;
/**
* Can be rendered
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public interface Renderable {

@ -13,7 +13,7 @@ import javax.imageio.ImageIO;
* Screenshot object, can be used to extract image or write to file.<br>
* Screenshot, once taken, can be safely processed in separate thread.
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
public class Screenshot {

@ -10,7 +10,7 @@ import mightypork.gamecore.util.math.constraints.vect.Vect;
/**
* Screen resolution or mode was changed
*
* @author Ondřej Hruška
* @author Ondřej Hruška (MightyPork)
*/
@NonConsumableEvent
@NotLoggedEvent

@ -4,7 +4,7 @@ package mightypork.gamecore.render.events;
/**
* {@link Viewport