public GameInstanceService()
        {
            var testBuilder = new TestInstanceBuilderService();

            GameInstance = testBuilder.GetTestInstance();

            _turnPlanningService  = new TurnPlanningService(this);
            _gameWorldService     = new GameWorldService(this);
            _unitMoveService      = new UnitMoveService(this, _gameWorldService);
            _fieldOfVisionService = new FieldOfViewService(this, _gameWorldService, _unitMoveService);

            // FOV Initialization
            UpdateVisiblePositionsForTeam(GameInstance.TeamAlpha);
            UpdateVisiblePositionsForTeam(GameInstance.TeamOmega);
        }
Esempio n. 2
0
 public FieldOfViewService(GameInstanceService gameInstanceService, GameWorldService gameWorldService, UnitMoveService unitMoveService)
 {
     _gameInstanceService = gameInstanceService;
     _gameWorldService    = gameWorldService;
     _unitMoveService     = unitMoveService;
 }
Esempio n. 3
0
 public UnitMoveService(GameInstanceService gameInstanceService, GameWorldService gameWorldService)
 {
     _gameInstanceService = gameInstanceService;
     _gameWorldService    = gameWorldService;
 }