Back to project page AllBinary-Platform-Game.
The source code is released under:
AllBinary Open License Version 1.0 Copyright (c) 2011 AllBinary. By agreeing to this license you and any business entity you represent are legally bound to this legal agreement. You may transmit, m...
If you think the Android project AllBinary-Platform-Game listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.allbinary.game.testgamedemo.init; /* w w w .j ava2 s . c o m*/ import org.allbinary.game.resource.ResourceInitialization; import org.allbinary.graphics.canvas.transition.progress.ProgressCanvasFactory; import javax.microedition.lcdui.CommandListener; import org.allbinary.game.testgamedemo.configuration.TestGameDemoGameFeatures; public class TestGameDemoAndroidStaticInitializer extends TestGameDemoStaticInitializer { private boolean platformGameInitialized; public TestGameDemoAndroidStaticInitializer( ResourceInitialization[] resourceInitializationArray, int portion) { super(resourceInitializationArray, portion); } public void initKey(int portion) throws Exception { super.initKey(portion); //ProgressCanvasFactory.getInstance().addPortion(50, "Game Keys"); } public void init(CommandListener commandListener, int level) throws Exception { super.init(commandListener, level); if(this.isPlatformGameInitialized()) { return; } this.setPlatformGameInitialized(true); ProgressCanvasFactory.getInstance().addPortion(50, "Game Options"); new TestGameDemoGameFeatures().init(); //GameOptionsForm.init(commandListener, new TestGameDemoGameFeatures(), "Game Options"); } protected void setPlatformGameInitialized(boolean platformGameInitialized) { this.platformGameInitialized = platformGameInitialized; } protected boolean isPlatformGameInitialized() { return platformGameInitialized; } }