home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 150 / MOBICLIC150.ISO / pc / DATA / DSS150 / DSS150_01 / DSS150_01.swf / scripts / DSS150_01.as < prev   
Text File  |  2012-12-19  |  1KB  |  51 lines

  1. package
  2. {
  3.    import com.milanpresse.capsule.GameEngineCapsule;
  4.    import com.milanpresse.engineaddons.facades.GameEngine;
  5.    import dss150.Memo;
  6.    import dss150_01.CapsuleAlgo;
  7.    
  8.    public class DSS150_01 extends GameEngineCapsule
  9.    {
  10.        
  11.       
  12.       private var game:GameEngine;
  13.       
  14.       private var algo:CapsuleAlgo = null;
  15.       
  16.       public function DSS150_01()
  17.       {
  18.          super();
  19.       }
  20.       
  21.       public function onEngineInitialized(callback:Function) : void
  22.       {
  23.          this.game = new GameEngine(this);
  24.          this.game.memo = new Memo(this.game);
  25.          this.game.mainAlgo = new CapsuleAlgo(this.game);
  26.          callback();
  27.       }
  28.       
  29.       override public function start(itemParams:Object = null) : void
  30.       {
  31.          this.game.start();
  32.       }
  33.       
  34.       override public function destroy() : void
  35.       {
  36.          this.game.destroy();
  37.          super.destroy();
  38.       }
  39.       
  40.       override public function sleep() : void
  41.       {
  42.          this.game.sleep();
  43.       }
  44.       
  45.       override public function wake() : void
  46.       {
  47.          this.game.wake();
  48.       }
  49.    }
  50. }
  51.