示例#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;
 }
示例#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;
 }