Ejemplo n.º 1
0
 void view_Battle(object sender, GameEventArgs e)
 {
     _controller.Battle();
 }
Ejemplo n.º 2
0
 void PlayerModelWound(object sender, GameEventArgs e)
 {
     if (!(sender is Player)) return;
     var user = (Player)sender;
     _playerModel.Log = string.Format("{0} {1} {2}: left {3} HP:{4}", _npc.Name, e.msg, _playerModel.Name, _playerModel.Name, _playerModel.Hp);
 }
Ejemplo n.º 3
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();
 }
Ejemplo n.º 4
0
 void npc_Wound(object sender, GameEventArgs e)
 {
     if (!(sender is Npc)) return;
     var bot = (Npc)sender;
     _npc.Log = string.Format("{0} {1} {2}: left Bot HP:{3}", _playerModel.Name, e.msg, bot.Name, bot.Hp);
 }
Ejemplo n.º 5
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();
 }
Ejemplo n.º 6
0
 void npc_Block(object sender, GameEventArgs e)
 {
     if (!(sender is Npc)) return;
     var bot = (Npc)sender;
     _npc.Log = string.Format("{0} {1}: left Bot HP:{2}", bot.Name, e.msg, bot.Hp);
 }