private void FightClubForm_Load(object sender, EventArgs e)
        {
            human      = new GameParticipant("You");
            computer   = new GameParticipant("Computer");
            controller = new GameController(this, logsForm, userForm, computerForm, human, computer);

            human.Block     += BlockHandler;
            human.TakeWound += WoundHandler;
            human.Die       += DeathHandler;

            computer.Block     += BlockHandler;
            computer.TakeWound += WoundHandler;
            computer.Die       += DeathHandler;

            logsForm.UpdateLogs("You, please, start attack...\r");
        }
Пример #2
0
 private GameParticipant DeathHandler(GameParticipant user)
 {
     logsForm.UpdateLogs(user.name + " was dead... \r");
     form.startFightButton.Enabled = false;
     return(user);
 }