コード例 #1
0
ファイル: EngineCore.cs プロジェクト: Baloons-Pop-4/Main
 /// <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;
 }
コード例 #2
0
ファイル: Engine.cs プロジェクト: gitter-badger/Main-2
 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];
 }
コード例 #3
0
ファイル: Engine.cs プロジェクト: gitter-badger/Main-2
 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];
 }
コード例 #4
0
ファイル: GraphicEngine.cs プロジェクト: gitter-badger/Main-2
 public GraphicEngine(IEventBasedUserInterface ui, IUserInputValidator validator, ICommandFactory commandFactory, IGameModel gameModel, IGameLogicProvider gameLogicProvider)
     : base(ui, validator, commandFactory, gameModel, gameLogicProvider)
 {
     ui.Raise += new EventHandler(this.HandleUserInput);
 }
コード例 #5
0
 public LoginRoutine(IUserService userService, IUserInputValidator validator)
 {
     _userService = userService;
     _validator   = validator;
 }
コード例 #6
0
 public GraphicEngine(IEventBasedUserInterface ui, IUserInputValidator validator, ICommandFactory commandFactory, IGameModel gameModel, IGameLogicProvider gameLogicProvider)
     : base(ui, validator, commandFactory, gameModel, gameLogicProvider)
 {
     ui.Raise += new EventHandler(this.HandleUserInput);
 }
コード例 #7
0
ファイル: ArticleIdParser.cs プロジェクト: tomaskrupka/Wikify
 public ArticleIdParser(IUserInputValidator userInputValidator, IArticleIdentifierFactory articleIdentifierFactory)
 {
     _userInputValidator       = userInputValidator;
     _articleIdentifierFactory = articleIdentifierFactory;
 }