Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }