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.
47 lines
687 B
47 lines
687 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 interface visible to subsystems
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
public interface AppAccess {
|
|
|
|
/**
|
|
* @return sound system
|
|
*/
|
|
abstract SoundSystem snd();
|
|
|
|
|
|
/**
|
|
* @return input system
|
|
*/
|
|
abstract InputSystem input();
|
|
|
|
|
|
/**
|
|
* @return display system
|
|
*/
|
|
abstract DisplaySystem disp();
|
|
|
|
|
|
/**
|
|
* @return event bus
|
|
*/
|
|
abstract MessageBus bus();
|
|
|
|
|
|
/**
|
|
* Quit to OS<br>
|
|
* Destroy app & exit VM
|
|
*/
|
|
abstract void shutdown();
|
|
|
|
}
|
|
|