示例#1
0
        private void Defeat()
        {
            lost = true;
            StateAbstract title = new StateTitleScreen();

            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[2];
            colors[0] = Color.White;
            colors[1] = Color.White;

            int mX     = 400;
            int mY     = 100;
            int height = 100;
            int width  = 345;

            string[] attackMessage = new string[2];
            attackMessage[0] = "Game Over!!";
            attackMessage[1] = "The Flying Spaghetti Code Monster has triumphed!";

            SubStateDisplayMessage temp = new SubStateDisplayMessage(attackMessage, height, width, mX, mY, StateHandler.State);

            StateHandler.State = temp;
        }
示例#2
0
        private void Defeat()
        {
            lost = true;
            StateAbstract title = new StateTitleScreen();

            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[2];
            colors[0] = Color.White;
            colors[1] = Color.White;

            int mX = 400;
            int mY = 100;
            int height = 100;
            int width = 345;

            string[] attackMessage = new string[2];
            attackMessage[0] = "Game Over!!";
            attackMessage[1] = "The Flying Spaghetti Code Monster has triumphed!";

            SubStateDisplayMessage temp = new SubStateDisplayMessage(attackMessage, height, width, mX, mY, StateHandler.State);
            StateHandler.State = temp;
        }