Esempio n. 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);
            };
        }
Esempio n. 2
0
 public void Init()
 {
     GameOptions = new Selector();
     {
         GameOptions.AddOption("Podaj litere");
         GameOptions.AddOption("Zgadnij haslo");
     };
 }