home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 174 / MOBICLIC174.ISO / mac / DATA / SCI174 / SCI174_00 / SCI174_00.swf / scripts / SCI150_00.as < prev   
Text File  |  2015-04-27  |  1KB  |  49 lines

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