/// <summary> /// Initializes a new instance of the <see cref="EngineCore" /> class. /// </summary> /// <param name="ctx"></param> /// <param name="inputValidator"></param> /// <param name="cmdFactory"></param> /// <param name="logger"></param> protected EngineCore(IContext ctx, IUserInputValidator inputValidator, ICommandFactory cmdFactory, ILogger logger) { this.Context = ctx; this.Validator = inputValidator; this.commandFactory = cmdFactory; this.Context.LogicProvider.RandomizeBalloonField(this.Context.Game.Field); this.logger = logger; }
public Engine(IUserInterface ui, IUserInputValidator validator, ICommandFactory commandFactory, IGameModel gameModel, IGameLogicProvider gameLogicProvider) { this.userInterface = ui; this.validator = validator; this.create = commandFactory; this.game = gameModel; this.gameLogicProvider = gameLogicProvider; this.highScoreChart = new string[2, 5]; }
public Engine(IUserInterface ui, IUserInputValidator validator, ICommandFactory commandFactory, IGameModel gameModel, IGameLogicProvider gameLogicProvider) { this.userInterface = ui; this.validator = validator; this.create = commandFactory; this.game = gameModel; this.gameLogicProvider = gameLogicProvider; this.highScoreChart = new string[2, 5]; }
public GraphicEngine(IEventBasedUserInterface ui, IUserInputValidator validator, ICommandFactory commandFactory, IGameModel gameModel, IGameLogicProvider gameLogicProvider) : base(ui, validator, commandFactory, gameModel, gameLogicProvider) { ui.Raise += new EventHandler(this.HandleUserInput); }
public LoginRoutine(IUserService userService, IUserInputValidator validator) { _userService = userService; _validator = validator; }
public GraphicEngine(IEventBasedUserInterface ui, IUserInputValidator validator, ICommandFactory commandFactory, IGameModel gameModel, IGameLogicProvider gameLogicProvider) : base(ui, validator, commandFactory, gameModel, gameLogicProvider) { ui.Raise += new EventHandler(this.HandleUserInput); }
public ArticleIdParser(IUserInputValidator userInputValidator, IArticleIdentifierFactory articleIdentifierFactory) { _userInputValidator = userInputValidator; _articleIdentifierFactory = articleIdentifierFactory; }