Java Reference
In-Depth Information
GameMIDlet
Controller
GameController
BluetoothManager
AudioManager
Settings
Navigator
«interface»
IMenuSupplier
«implements»
«interface»
IBluetoothObserver
GameScreen
GameEngine
HiggsParticle
javax.microedition.lcdui.game.GameCanvas
HiggsParticleAttack
Figure 8.5 Main application classes
in the source code for this chapter provide implementations of
the
IMenuSupplier interface to achieve this:
public interface IMenuSupplier {
public void showMainMenu();
public void showPauseMenu();
public void showSettings();
public void showMultiPlay();
public IMessageScreen showMessageScreen(String message);
}
Application navigation is performed by the Navigator class which
delegates menu requests to the appropriate implementation. In this way
the rest of the application is completely isolated from the menu system in
use. Figure 8.6 shows the main game menu with the SVG version on the
left and the low-resolution graphics version on the right.
 
Search WWH ::




Custom Search