public FormController(IView theView, Game theGame, FileHandler thefiler, LevelBuilder thebuilder)
 {
     view = theView;
     game = theGame;
     filer = thefiler;
     builder = thebuilder;
 }
Beispiel #2
0
        public void Init(int theList, string newMap)
        {
            currentMap = newMap;
            currentList = theList;
            filer = new FileHandler();
            game = new Game();
            mediaPath = @"H:\2015\semester 2\PR 283 C#\Theseus\TheseusFormed - Test\media";

            filer.Init();
            filer.SetMap(theList, newMap);
            game.SetFiler(filer);
            LoadMap();
        }
Beispiel #3
0
        public void Init(int theList, string newMap)
        {
            currentMap = newMap;
            currentList = theList;
            filer = new FileHandler();
            game = new Game();
            mediaPath = Painter.SetMediaPath();

            filer.Init();
            filer.SetMap(theList, newMap);
            game.SetFiler(filer);
            LoadMap();
        }
Beispiel #4
0
 internal void SetGame(Game aGame)
 {
     myGame = aGame;
 }
Beispiel #5
0
        public Controller(IView theView, Game theGame, FileHandler theFiler, LevelBuilder theBuilder)
        {
            view = theView;
            game = theGame;
            filer = theFiler;
            builder = theBuilder;

            filer.Init();
            game.Init(view, filer);
        }