public Engine(IUnitContainer unitContainer, IInputReader reader, IOutputWriter writer, ICommandDispatcher commandDispatcher, IUnitEffector unitEffector) { this.units = new LinkedList<IUnit>(); this.unitContainer = unitContainer; this.writer = writer; this.reader = reader; this.commandDispatcher = commandDispatcher; this.commandDispatcher.Engine = this; this.unitEffector = unitEffector; }
public Engine(IUnitContainer unitContainer, IInputReader reader, IOutputWriter writer, ICommandDispatcher commandDispatcher, IUnitEffector unitEffector) { this.units = new LinkedList <IUnit>(); this.unitContainer = unitContainer; this.writer = writer; this.reader = reader; this.commandDispatcher = commandDispatcher; this.commandDispatcher.Engine = this; this.unitEffector = unitEffector; }