예제 #1
0
 /// <summary>
 /// Constructor for the Engine class. 
 /// </summary>
 /// <param name="renderer">IRenderer object</param>
 /// <param name="inputProvider">IInputProvider object.</param>
 public Engine(IRenderer renderer, IInputProvider inputProvider)
 {
     this.inputProvider = inputProvider;
     this.renderer = renderer;
     this.scoreBoard = Scoreboard.Instance;
     this.wordDataBase = new WordDatabase(this.dataSerialization);
     this.wordFactory = new WordFactory(this.wordDataBase);
     this.gameLogic = new DefaultGameLogic();
     this.gameLogic.Word = this.wordFactory.GetWord(Categories.IT);
 }
 public void CreateFactory()
 {
     this.wordFactory = new WordFactory(this.dbWordDatabase);
 }