Exemple #1
0
        static void Main()
        {
            String DictionaryFile = @"..\..\Slowa.txt";

            Encoding.Encoding DictionaryEncoding = new Encoding.Polish();
            Dictionary.Dictionary D = new Dictionary.TrieDictionary(DictionaryFile, DictionaryEncoding);
            Language.Language Language = new Polish();
            //Dictionary.Benchmark.Benchmark1(D);

            //Console.Read();
            D.Reload();
            BlockingCollection<ApplicationEvent> ViewEvents = new BlockingCollection<ApplicationEvent>();
            Model.Model GameModel = new Model.Model(D, Language);
            //GameForm GameForm = new GameForm();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            GameForm GameForm = new GameForm(ViewEvents);
            GameController = new Controller.Controller(GameModel, GameForm, ViewEvents);

            GameController.AddStrategies();
            ThreadStart childref = new ThreadStart(ControllerThread);
            Thread childThread = new Thread(childref);
            childThread.Start();

            Application.Run(GameForm); //TODO use GameForm implemented above

            GameController.Start();
        }
Exemple #2
0
 protected Strategy(Controller Parent)
 {
     this.Parent = Parent;
 }
Exemple #3
0
 public ReplaceTileStrategy(Controller Parent)
     : base(Parent)
 {
 }
Exemple #4
0
 public PutWordStrategy(Controller Parent)
     : base(Parent)
 {
 }
Exemple #5
0
 public PassStrategy(Controller Parent)
     : base(Parent)
 {
 }
Exemple #6
0
 public NewGameStrategy(Controller Parent)
     : base(Parent)
 {
 }