예제 #1
0
 public Engine(IResourcesDatabase resDatabase)
 {
     this.resDatabase      = resDatabase;
     this.strategyholder   = new StrategyHolder();
     this.garbageProcessor = new GarbageProcessor(this.strategyholder);
     this.resController    = new ResourcesController(this.resDatabase, this.garbageProcessor);
     this.comExecutor      = new CommandExecutor(this.resController);
     this.consoleReader    = new ConsoleReader();
     this.consoleWriter    = new ConsoleWriter();
     this.inputInterpreter = new InputInterpreter();
 }
예제 #2
0
 public ResourcesController(IResourcesDatabase database, IGarbageProcessor garbageProcessor)
 {
     this.database              = database;
     this.garbageProcessor      = garbageProcessor;
     this.ManagementRequirement = null;
 }
예제 #3
0
 public ResourcesController(IResourcesDatabase database, IGarbageProcessor garbageProcessor)
 {
     this.database         = database;
     this.garbageProcessor = garbageProcessor;
 }