Exemple #1
0
 void PlayerModelDeath(object sender, GameEventArgs e)
 {
     if (!(sender is Player)) return;
     PlayerOptions.BotCountWin++;
     var user = (Player)sender;
     _playerModel.Log = String.Format("{0} {1}: left {2} HP:{3}", _playerModel.Name, e.msg, _playerModel.Name, _playerModel.Hp);
     var endForm = new MessageForm();
     endForm.Show();
 }
Exemple #2
0
 void npc_Death(object sender, GameEventArgs e)
 {
     if (!(sender is Npc)) return;
     PlayerOptions.PlayerCountWin++;
     var bot = (Npc)sender;
     _npc.Log = string.Format("{0} {1}: left Bot HP:{2}", bot.Name, e.msg, bot.Hp);
     var playerForm = new MessageForm();
     playerForm.Show();
 }