public virtual void PerformInteraction(Board board, BoardBot bot, Direction direction, IDiamondGeneratorService DiamondGenerator) { PerformInteraction(board, bot, direction); }
public MoveService(IStorage storage, IDiamondGeneratorService boardDiamondManager, IGameObjectGeneratorService boardObjectGenerator) { _storage = storage; _boardDiamondManager = boardDiamondManager; _boardObjectGenerator = boardObjectGenerator; }
public BoardsController(IStorage storage, IMoveService moveService, IDiamondGeneratorService diamondGeneratorService, IGameObjectGeneratorService gameObjectGenerators) { this._storage = storage; this._moveService = moveService; this._diamondGeneratorService = diamondGeneratorService; this._gameObjectGeneratorService = gameObjectGenerators; }
public WrappingMoveService(IStorage storage, IDiamondGeneratorService boardDiamondManager, IGameObjectGeneratorService boardsObjectGenerator) : base(storage, boardDiamondManager, boardsObjectGenerator) //TODO: Remove inheritance, all methods are reimplemented. { }
private void AttemptTriggerGameObject(Board board, Direction direction, Position attemptedNextPosition, BoardBot bot, IDiamondGeneratorService generator) { var gameObject = board.GameObjects.Where(gf => gf.Position.Equals(attemptedNextPosition)). DefaultIfEmpty(new DoNothingGameObject()).FirstOrDefault(); gameObject.PerformInteraction(board, bot, direction, generator); }