Refactored subsystems for cleaner modularity.

This commit is contained in:
Ondřej Hruška
2014-03-30 23:09:20 +02:00
parent e2e5576664
commit 6013a105ad
20 changed files with 590 additions and 296 deletions
+40
View File
@@ -0,0 +1,40 @@
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 soundsys();
/**
* @return input system
*/
abstract InputSystem input();
/**
* @return display system
*/
abstract DisplaySystem disp();
/**
* @return event bus
*/
abstract MessageBus msgbus();
}