Ejemplo n.º 1
0
 public BattlefieldFactory(ITeamFactory teamFactory, GroupingFactory groupingFactory, IMenuFactory menuFactory, IChanceService chanceService)
 {
     _teamFactory     = teamFactory;
     _groupingFactory = groupingFactory;
     _menuFactory     = menuFactory;
     _chanceService   = chanceService;
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     _chanceService = new MockChanceService();
     _menuFactory   = new MockMenuFactory();
     _teamFactory   = new TestTeamFactory(_chanceService, _menuFactory);
     _factory       = new GroupingFactory(_chanceService, _teamFactory, new FighterFactory());
 }
Ejemplo n.º 3
0
        public void TearDown()
        {
            _chanceService = null;
            _output        = null;
            _input         = null;
            _battleManager = null;
            _config        = null;

            _regionFactory   = null;
            _regionManager   = null;
            _groupingFactory = null;

            _teamFactory = null;
            _mapManager  = null;

            _humanFighter1 = null;
            _humanFighter2 = null;
            _humanTeam     = null;
        }
Ejemplo n.º 4
0
        public void SetUp()
        {
            _chanceService = new MockChanceService();
            _output        = new MockOutput();
            _input         = new MockInput();
            _battleManager = new TestBattleManager(_chanceService, _input, _output);
            _config        = new SilentBattleConfiguration();
            _battleManager.SetConfig(_config);

            _teamFactory     = new TestTeamFactory(_chanceService);
            _mapManager      = new MockMapManager();
            _decisionManager = new MockDecisionManager(new GodRelationshipManager());
            _regionFactory   = new MockRegionFactory(_decisionManager);
            _groupingFactory = new GroupingFactory(_chanceService, _teamFactory, new FighterFactory());

            _humanFighter1 = (TestHumanFighter)TestFighterFactory.GetFighter(TestFighterType.TestHuman, 1);
            _humanFighter2 = (TestHumanFighter)TestFighterFactory.GetFighter(TestFighterType.TestHuman, 1);
            _humanTeam     = new Team(TestMenuManager.GetTestMenuManager(), _humanFighter1, _humanFighter2);

            _oneEnemyTeam = GetSingleEnemyTeam();
        }
Ejemplo n.º 5
0
 public void TearDown()
 {
     _factory = null;
 }