Beispiel #1
0
        public static void Init()
        {
            Database = new WordsDatabse();
            {
                Database.LoadDatabase();
            };

            Statistics = new GameStatistic();
            {
                Statistics.LoadStatistics();
            };

            SelectorMenu = new Selector();
            {
                SelectorMenu.AddOption("Rozpocznij gre");
                SelectorMenu.AddOption("Pokaz historie gier (top10)");
                SelectorMenu.AddOption("Dodaj slowo");
                SelectorMenu.AddOption("Wyjscie");
            };

            WisielecGame = new Wisielec();
            {
                WisielecGame.Init();
                WisielecGame.SetWordDatabase(Database);
            };
        }
Beispiel #2
0
 public void SetWordDatabase(WordsDatabse database)
 {
     Database = database;
 }