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
854 B
61 lines
854 B
package mightypork.rogue;
|
|
|
|
|
|
import mightypork.rogue.display.DisplaySystem;
|
|
import mightypork.rogue.input.InputSystem;
|
|
import mightypork.rogue.sounds.SoundSystem;
|
|
import mightypork.utils.patterns.subscription.MessageBus;
|
|
|
|
|
|
/**
|
|
* App access adapter
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
public class AppAdapter implements AppAccess {
|
|
|
|
private AppAccess app;
|
|
|
|
|
|
public AppAdapter(AppAccess app) {
|
|
if (app == null) throw new NullPointerException("AppAccess instance cannot be null.");
|
|
|
|
this.app = app;
|
|
}
|
|
|
|
|
|
@Override
|
|
public final SoundSystem snd()
|
|
{
|
|
return app.snd();
|
|
}
|
|
|
|
|
|
@Override
|
|
public final InputSystem input()
|
|
{
|
|
return app.input();
|
|
}
|
|
|
|
|
|
@Override
|
|
public final DisplaySystem disp()
|
|
{
|
|
return app.disp();
|
|
}
|
|
|
|
|
|
@Override
|
|
public final MessageBus bus()
|
|
{
|
|
return app.bus();
|
|
}
|
|
|
|
|
|
@Override
|
|
public void shutdown()
|
|
{
|
|
app.shutdown();
|
|
}
|
|
|
|
}
|
|
|