コード例 #1
0
        void HandleGameOverEvent(object sender, EventArgs m)
        {
            EventArgStructures.GameOver gameOverData = (EventArgStructures.GameOver)m;

            MessageBox.Show(gameOverData.winner + "Has won the game! They correctly accused " + gameOverData.p +
                            " of killing the victim using the " + gameOverData.w +
                            " in the " + gameOverData.r + "!", "Game Over!");
        }
コード例 #2
0
        //We'll need real logic to pick the winner
        //This is just an example of the event being packed and sent to the UI
        public void GameOver()
        {
            EventArgs arg = new EventArgStructures.GameOver(Board_Controller.Person.White, Board_Controller.Person.Scarlet, Board_Controller.Room.Ballroom, Board_Controller.Weapon.Knife);

            GameOverEvent(this, arg);
        }