You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
945 B
61 lines
945 B
package mightypork.gamecore.control;
|
|
|
|
|
|
import mightypork.gamecore.audio.SoundSystem;
|
|
import mightypork.gamecore.control.bus.EventBus;
|
|
import mightypork.gamecore.input.InputSystem;
|
|
import mightypork.gamecore.render.DisplaySystem;
|
|
|
|
|
|
/**
|
|
* App access adapter
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
public class AppAdapter implements AppAccess {
|
|
|
|
private final AppAccess app;
|
|
|
|
|
|
public AppAdapter(AppAccess app) {
|
|
if (app == null) throw new NullPointerException("AppAccess instance cannot be null.");
|
|
|
|
this.app = app;
|
|
}
|
|
|
|
|
|
@Override
|
|
public final SoundSystem getSoundSystem()
|
|
{
|
|
return app.getSoundSystem();
|
|
}
|
|
|
|
|
|
@Override
|
|
public final InputSystem getInput()
|
|
{
|
|
return app.getInput();
|
|
}
|
|
|
|
|
|
@Override
|
|
public final DisplaySystem getDisplay()
|
|
{
|
|
return app.getDisplay();
|
|
}
|
|
|
|
|
|
@Override
|
|
public final EventBus getEventBus()
|
|
{
|
|
return app.getEventBus();
|
|
}
|
|
|
|
|
|
@Override
|
|
public final void shutdown()
|
|
{
|
|
app.shutdown();
|
|
}
|
|
|
|
}
|
|
|