public Battle(IEnumerable<IEnumerable<Character>> teams, IPlugin interopPlugin, IJSScriptHelper scriptHelper, IRandomHelper randomHelper) { if(teams == null) { throw new ArgumentNullException(nameof(teams)); } if(interopPlugin == null) { throw new ArgumentNullException(nameof(interopPlugin)); } if(scriptHelper == null) { throw new ArgumentNullException(nameof(scriptHelper)); } if(randomHelper == null) { throw new ArgumentNullException(nameof(randomHelper)); } this.AllCharactersInTeams = new Dictionary<string, ICollection<SpecificCharacter>>(); foreach (var team in teams) { var teamCharacters = (ICollection<SpecificCharacter>)team.Select(x => new SpecificCharacter(x)); this.AllCharactersInTeams.Add("team", teamCharacters); } this.InteropPlugin = interopPlugin; this.ScriptHelper = scriptHelper; this.RandomHelper = randomHelper; }
public MiddletonOrderProcessor(IDealService dealService, IChamberOfCommerceApi chamberOfCommerceApi, IAdvertPrinter printer, IRandomHelper randomHelper) { _dealService = dealService; _chamberOfCommerceApi = chamberOfCommerceApi; _printer = printer; _randomHelper = randomHelper; }
public BotLogic( CSharpWarsDbContext dbContext, IRandomHelper randomHelper, IArenaLogic arenaLogic) { _dbContext = dbContext; _randomHelper = randomHelper; _arenaLogic = arenaLogic; }
public DistrictOrderFactory(IChamberOfCommerceApi chamberOfCommerceApi, IAdvertPrinter printer, IDealService dealService, IDateTimeResolver dateTimeResolver, IRandomHelper randomHelper) { _chamberOfCommerceApi = chamberOfCommerceApi; _printer = printer; _dealService = dealService; _dateTimeResolver = dateTimeResolver; _randomHelper = randomHelper; }
public BotLogic( IRandomHelper randomHelper, IRepository <Bot> botRepository, IRepository <BotScript> scriptRepository, IRepository <Player> playerRepository, IMapper <Bot, BotDto> botMapper, IMapper <Bot, BotToCreateDto> botToCreateMapper, IArenaLogic arenaLogic, IConfigurationHelper configurationHelper) { _randomHelper = randomHelper; _botRepository = botRepository; _scriptRepository = scriptRepository; _playerRepository = playerRepository; _botMapper = botMapper; _botToCreateMapper = botToCreateMapper; _arenaLogic = arenaLogic; _configurationHelper = configurationHelper; }
public static Move Build(BotProperties botProperties, IRandomHelper randomHelper) { return(_moves[botProperties.CurrentMove](botProperties, randomHelper)); }
public Postprocessor(IRandomHelper randomHelper) { _randomHelper = randomHelper; }
public ShapeFactory(IRandom rand, IRandomHelper randomHelper) { this.rand = rand; this.randomHelper = randomHelper; }
public MessageManager(IRandomHelper randomHelper) { this.randomHelper = randomHelper; }
public DiceService(IRandomHelper random = null) { _random = random ?? new RandomHelper(); }
public Teleport(BotProperties botProperties, IRandomHelper randomHelper) : base(botProperties) { _randomHelper = randomHelper; }