Exemplo n.º 1
0
        private void updateConnections()
        {
            if (cave.availablePaths(map.getPlayerPos())[0] != -1)
            {
                N.Text = "N: O";
            }
            else
            {
                N.Text = "N: X";
            }

            if (cave.availablePaths(map.getPlayerPos())[1] != -1)
            {
                NE.Text = "NE: O";
            }
            else
            {
                NE.Text = "NE: X";
            }

            if (cave.availablePaths(map.getPlayerPos())[2] != -1)
            {
                SE.Text = "SE: O";
            }
            else
            {
                SE.Text = "SE: X";
            }

            if (cave.availablePaths(map.getPlayerPos())[3] != -1)
            {
                S.Text = "S: O";
            }
            else
            {
                S.Text = "S: X";
            }

            if (cave.availablePaths(map.getPlayerPos())[4] != -1)
            {
                SW.Text = "SW: O";
            }
            else
            {
                SW.Text = "SW: X";
            }

            if (cave.availablePaths(map.getPlayerPos())[5] != -1)
            {
                NW.Text = "NW: O";
            }
            else
            {
                NW.Text = "NW: X";
            }
        }