Esempio n. 1
0
 public theGame()
 {
     InitializeComponent();
     myHero.setLoc_x(0);
     myHero.setLoc_y(0);
     myHero.setMessageBox(this.SystemMsg);
     AddItemAction.setMessageBox(this.SystemMsg);
     AddMobAction.setMessageBox(this.SystemMsg);
     HeroAttackAction.setMessageBox(this.SystemMsg);
 }
Esempio n. 2
0
 private void theBattle_Load(object sender, EventArgs e)
 {
     BF = (BattleField)this.Tag;
     BF.setBseo(BSEO);
     BF.getBseo().init();
     //将消息输出框给各个Action
     EnemyAttackAction.setMessageBox(this.BattleMsg);
     HeroAttackAction.setMessageBox(this.BattleMsg);
     BF.initAI(EnemyAttackAction);
     heroName.Text = BF.getMyHero().GetName();
     BF.initDistence();
     updata(index);
 }