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); }
public FieldOfViewService(GameInstanceService gameInstanceService, GameWorldService gameWorldService, UnitMoveService unitMoveService) { _gameInstanceService = gameInstanceService; _gameWorldService = gameWorldService; _unitMoveService = unitMoveService; }