Exemplo n.º 1
0
        public void SetUpCompetition(InputCompetitionDataDTO competitionData)
        {
            _robots = _robotMapper.FromListRobotDTOToListRobot(competitionData.RobotsToDeploy);

            _battleArena.SetUpArena(
                _arenaMapper.FromArenaCoordinatesDTOToArenaCoordinates(competitionData.ArenaBottomLeftCoords),
                _arenaMapper.FromArenaCoordinatesDTOToArenaCoordinates(competitionData.ArenaUpperRightCoords)
                );

            _battleArena.DeployRobots(_robots);

            _navigationSystem.ConnectNavigationSystemToBattleArena(_battleArena);

            _competitionIsReady = true;
        }
Exemplo n.º 2
0
 public void Should_setup_arena()
 {
     battleArena.SetUpArena(null, null);
 }