コード例 #1
0
ファイル: ManagerGameBinder.cs プロジェクト: Zerogorn/Runner
        public void Bind()
        {
            GameModel      gameModel      = new GameModel();
            MoveSimulation moveSimulation = new MoveSimulation();
            BotValidator   botValidator   = new BotValidator();
            GameFactory    gameFactory    = new GameFactory(gameModel, new PullMoveStrategy());

            _managerGame.Bind(gameModel, moveSimulation, botValidator, gameFactory);
        }
コード例 #2
0
 public void Bind(GameModel gameModel,
                  MoveSimulation moveSimulation,
                  BotValidator botValidator,
                  GameFactory gameFactory)
 {
     _gameModel      = gameModel;
     _moveSimulation = moveSimulation;
     _botValidator   = botValidator;
     _gameFactory    = gameFactory;
 }