示例#1
0
 public SimCorpMobile(ScreenBase screen, BatteryBase battery, CPUBase cpu, MessageStorage messageStorage) : base(screen, battery, cpu, messageStorage)
 {
     Screen         = screen;
     Battery        = battery;
     CPU            = cpu;
     SMSProviderInt = new SMSProviderInt(messageStorage);
 }
示例#2
0
        public SimCorpMobileThreadTask(ScreenBase screen, BatteryBase battery, CPUBase cpu, MessageStorage messageStorage) : base(screen, battery, cpu, messageStorage)
        {
            Screen  = screen;
            Battery = battery;
            CPU     = cpu;
            //Factory Pattern here:
            SMSProviderIntCreator sMSProviderIntCreator = new SMSProviderIntCreator();

            SMSProviderIntThreadTask = sMSProviderIntCreator.GetSMSProvider(messageStorage, SMSProviderIntType.Task);
        }