// 6/30/10 M. Brenner import javax.microedition.midlet.*; public class Tictacktoe extends Cellphone { static public final String RESOURCEDIR = "resources/", TICTACID = "ABCD1234DCBA4321ABCD1234DCBA9"; public void begin() { TictacGui.getinstance().newgame(); } public Gui creategui() { /************************************************ * Creating the TictacGui Singleton only obtains * * screen dimention. * ************************************************/ return TictacGui.create (this); } public String getbluetoothid() { return TICTACID; } public String[][] getdefaultparams() { return Tictacform.getdefaults(); } public String getresourcedir() { return RESOURCEDIR; } // NOTE: the display will NOT be updated during this method invocation. Screen // update is explicitly disabled by Applauncher.run() while performing setup; // this is to avoid excessive activity during the special case of setup(). // Immediately after setup() is invoked by Applauncher.run() the begin() // method is invoked, so arrange for intial screen presentation in begin() public void setup() { // Soundmanager.init(); TictacGui.getinstance().setup(); } }