示例#1
0
 public static EngineDataGame Instance()
 {
     if ((valor == null))
     {
         valor = new EngineDataGame();
     }
     return(valor);
 }
示例#2
0
        public bool AbrirJuego(string pathArchivo)
        {
            EngineDataGame ValorGame = EngineDataGame.Instance();
            bool           resultado = false;
            ArrayList      arrText   = AbrirValoresArchivo(pathArchivo);

            ValorGame.valorIngresado = SetValorIngresado(arrText, valorIngresado);
            ValorGame.valorEliminado = SetValorEliminado(arrText, valorEliminado);
            ValorGame.valorInicio    = SetValorInicio(arrText, valorInicio);
            ValorGame.valorSolucion  = SetValorSolucion(arrText, valorSolucion);
            resultado = ExisteValorIngresado(valorIngresado);
            return(resultado);
        }