private void theGame_Load(object sender, EventArgs e) { this.Owner.Hide(); myHero = (theHero)this.Owner.Tag; this.Tag = myHero; myWorld.init(); //初始化英雄的数据 this.myHero.setTheHeroMaxValue(true); this.myHero.rebuildTheHero(); this.myHero.buildConsumeIndex(); this.myHero.buildBodyIndex(); this.myHero.initBodyIndex(); //更新地图 //初始化背包 myHero.getHeroBag().setOwner(myHero); //设置消息栏 myHero.setMessageBox(this.SystemMsg); //背包初始化 myHero.getHeroBag().updata(myHero); //敌人生成器初始化 AddMobAction.setMyHero(myHero); AddMobAction.setMyWorld(myWorld); //myWorld.showWorld(); //初始化合成器 doCraft.setMyHero(myHero); updata(); updataMap(); //测试模式 setTestMode(false); }