Exemplo n.º 1
0
        public void Load()
        {
            string[] newLevel = FilerView.Load();
            string   filename = newLevel[0];
            string   rawLevel = newLevel[1];

            Filer.SetString(rawLevel);
            string level = Filer.Load(filename);

            Designer.Load(level);
        }
Exemplo n.º 2
0
 public void LoadGame()
 {
     try
     {
         string[] newLevel = FilerView.Load();
         string   rawLevel = newLevel[1];
         Filer.SetString(rawLevel);
         string level = Filer.Load();
         Game.Load(level);
         int rows = GameFileable.GetRowCount();
         int cols = GameFileable.GetColumnCount();
         BuildGameLevel(cols, rows);
     }
     catch (ArgumentException e)
     {
         GameView.Display(e.Message);
     }
 }
Exemplo n.º 3
0
 public void LoadDesign()
 {
     try
     {
         string[] newLevel = FilerView.Load();
         string   rawLevel = newLevel[1];
         Filer.SetString(rawLevel);
         string level = Filer.Load();
         //DesignerView.Display(level);
         Designer.Load(level);
         int rows = DesignerFileable.GetRowCount();
         int cols = DesignerFileable.GetColumnCount();
         BuildLevel(cols, rows, "Edit");
         DesignerView.UpdateLevel();
     }
     catch (ArgumentException e)
     {
         DesignerView.Display(e.Message);
     }
 }
Exemplo n.º 4
0
        public void Load()
        {
            string[] newLevel = FilerView.Load();
            string   filename = newLevel[0];
            string   rawLevel = newLevel[1];

            Filer.SetString(rawLevel);
            string level = Filer.Load(filename);

            try
            {
                Game.Load(level);
                BuildView();
                //UpdateView();
                GameView.LevelName(filename);
            }
            catch (ArgumentOutOfRangeException e)
            {
                FilerView.Display(e);
            }
        }