function StrategyManager(div,game){
     baEventSource.call(this);
     this.game = game;
     this.div = div;
     this.curStrategy;
     this.initialize(div);
 }
Пример #2
0
 //TODO 要写成单例
 function Game(initInfo){
     baEventSource.call(this);
     this.geoInfo = new Geo();
     this.spriteList = {};
     this.spriteCount = 0;
     this.controlSprite = null;
     this.obstacleList = null;
     this.timer = {
         timerTask:null,
         frameSpeed:40
     }
     this._eventPool = {};
     this.initialize(initInfo);
 }