コード例 #1
0
ファイル: Bitmon.cs プロジェクト: Track-tor/Bitmonlandia
        /*Esta funcion es para que el Gofue transforme un terreno vegetacion en desiertico, o un terreno
         * de nieve en uno de agua:*/
        public void Secar(Mapa mapa)
        {
            int x = GetPosicion()[0];
            int y = GetPosicion()[1];

            string[,,] tablero = mapa.GetTablero();
            if (tablero[x, y, 0] == "V")
            {
                mapa.SetTerreno("D", x, y);
            }

            else if (tablero[x, y, 0] == "N")
            {
                mapa.SetTerreno("A", x, y);
            }
        }
コード例 #2
0
ファイル: Bitmon.cs プロジェクト: Track-tor/Bitmonlandia
        //Esta funcion es para que el Taplan transforme un terreno desiertico en vegetacion
        public void Plantar(Mapa mapa)
        {
            int x = GetPosicion()[0];
            int y = GetPosicion()[1];

            string[,,] tablero = mapa.GetTablero();
            terreno            = tablero[x, y, 0];
            if (tablero[x, y, 0] == "D")
            {
                mapa.SetTerreno("V", x, y);
            }
        }