示例#1
0
 void _engine_DamageCalculated(BattleEngine.DamageCalculatedEventArg e)
 {
     //this.lblStatus.Text = string.Format("Damage {0}-{1}, Kill {2}-{3}, Avg Kill {4}",
     //    e._minDamage, e._maxDamage, e._minKill, e._maxKill, e._avgKill);
 }
示例#2
0
        protected void SetupEngine()
        {
            _engine = new BattleEngine(_controller, _attackHero, _defendHero, _monster, _defendCastle);
            _engine._rectStatusMsg = _rectStatus;

            _engine.BattleEnded += new BattleEngine.BattleEndedEventHandler(_engine_BattleEnded);
            _engine.DamageCalculated += new BattleEngine.DamageCalculatedEventHandler(_engine_DamageCalculated);
        }