Camfight.Form1.GameOver C# (CSharp) Method

GameOver() private method

private GameOver ( string cmd ) : void
cmd string
return void
        private void GameOver(string cmd)
        {
            try
            {
                packet mypacket = new packet("q", username, null, -1, 0, 0, false);
                SendPacket(mypacket);
            }
            catch { }
            try
            {
                if (listenthr != null)
                    listenthr.Abort();
                   listenthr = null;
                if (fpu_thr != null)
                    fpu_thr.Abort();
                fpu_thr = null;
            }
            catch { }

            if (cmd == "w")
            {
                gameoverIndex = 0;
            }
            else if(cmd=="l")
            {
                gameoverIndex = 1;
            }
            else
            {
                gameoverIndex = 2 ;
            }
            if (big_flash == 0 && hit_flash == 0)
            {
                if (gamestate == GameState.SINGLE && stage<3)
                {
                    stage++;
                    single_reset();
                }
                else
                {
                    gamestate = GameState.END;
                }
            }
        }