Beispiel #1
0
 public CheckFlagCommandProcessor(IFlagAccessor flagAccessor
                                  , LineService lineService
                                  , IBookmarkService bookmarkService
                                  ) : base(Keyword.CheckFlag, lineService)
 {
     _flagAccessor    = flagAccessor;
     _lineService     = lineService;
     _bookmarkService = bookmarkService;
 }
 public GetCommandProcessorsService(IScriptAccessor scriptAccessor
                                    , IFlagAccessor flagAccessor
                                    , LineService lineService
                                    , IImageAccessor imageAccessor
                                    , IVideoAccessor videoAccessor
                                    , IVariableAccessor variableAccessor
                                    , ITauntAccessor tauntAccessor
                                    , IConfigurationAccessor configurationAccessor
                                    , IRandomNumberService randomNumberService
                                    , INotifyUser notifyUser
                                    , ISettingsAccessor settingsAccessor
                                    , IPathsAccessor pathsAccessor
                                    , IBookmarkService bookmarkService
                                    , IMediaContainerService mediaContainerService
                                    , ITimeService timeService
                                    , ILineCollectionFilter lineCollectionFilter
                                    , IVitalSubService vitalSubService
                                    , IConditionalObjectLogic conditionalObjectLogic
                                    , IVocabularyProcessor sessionVocabularyProcessor
                                    )
 {
     _scriptAccessor             = scriptAccessor;
     _flagAccessor               = flagAccessor;
     _lineService                = lineService;
     _imageAccessor              = imageAccessor;
     _videoAccessor              = videoAccessor;
     _variableAccessor           = variableAccessor;
     _tauntAccessor              = tauntAccessor;
     _configurationAccessor      = configurationAccessor;
     _randomNumberService        = randomNumberService;
     _notifyUser                 = notifyUser;
     _settingsAccessor           = settingsAccessor;
     _pathsAccessor              = pathsAccessor;
     _bookmarkService            = bookmarkService;
     _mediaContainerService      = mediaContainerService;
     _timeService                = timeService;
     _lineCollectionFilter       = lineCollectionFilter;
     _vitalSubService            = vitalSubService;
     _conditionalObjectLogic     = conditionalObjectLogic;
     _sessionVocabularyProcessor = sessionVocabularyProcessor;
 }
Beispiel #3
0
 public FlagCommandProcessor(IFlagAccessor flagAccessor, LineService lineService) : base(Keyword.Flag, lineService)
 {
     _flagAccessor = flagAccessor;
     _lineService  = lineService;
 }
Beispiel #4
0
        public SessionEngine(ISettingsAccessor settingsAccessor
                             , IStringService stringService
                             , IScriptAccessor scriptAccessor
                             , ITimerFactory timerFactory
                             , IFlagAccessor flagAccessor
                             , IImageAccessor imageAccessor
                             , IVideoAccessor videoAccessor
                             , IVariableAccessor variableAccessor
                             , ITauntAccessor tauntAccessor
                             , ISystemVocabularyAccessor systemVocabularyAccessor
                             , IVocabularyAccessor vocabularyAccessor
                             , ILineCollectionFilter lineCollectionFilter
                             , IRandomNumberService randomNumberService
                             , IConfigurationAccessor configurationAccessor
                             , INotifyUser notifyUser
                             , IPathsAccessor pathsAccessor
                             , IGetCommandProcessorsService getCommandProcessorsService
                             , IInterpolationProcessor interpolationProcessor
                             )
        {
            CommandProcessors = getCommandProcessorsService.CreateCommandProcessors();

            CommandProcessors[Keyword.StartStroking].CommandProcessed += StartStrokingCommandProcessed;
            CommandProcessors[Keyword.Edge].CommandProcessed          += EdgeCommandProcessed;
            CommandProcessors[Keyword.End].CommandProcessed           += EndCommandProcessed;
            CommandProcessors[Keyword.TauntFromFile].CommandProcessed += TauntFromFileCommandProcessed;

            CommandProcessors[Keyword.ShowImage].CommandProcessed         += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowButtImage].CommandProcessed     += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowBoobsImage].CommandProcessed    += ShowImageCommandProcessed;
            CommandProcessors[Keyword.SearchImageBlog].CommandProcessed   += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowHardcoreImage].CommandProcessed += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowSoftcoreImage].CommandProcessed += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowLesbianImage].CommandProcessed  += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowBlowjobImage].CommandProcessed  += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowFemdomImage].CommandProcessed   += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowLezdomImage].CommandProcessed   += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowHentaiImage].CommandProcessed   += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowGayImage].CommandProcessed      += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowMaledomImage].CommandProcessed  += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowCaptionsImage].CommandProcessed += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowGeneralImage].CommandProcessed  += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowLikedImage].CommandProcessed    += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowDislikedImage].CommandProcessed += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowBlogImage].CommandProcessed     += ShowImageCommandProcessed;
            CommandProcessors[Keyword.NewBlogImage].CommandProcessed      += ShowImageCommandProcessed;
            CommandProcessors[Keyword.ShowLocalImage].CommandProcessed    += ShowImageCommandProcessed;

            CommandProcessors[Keyword.PlayVideo].CommandProcessed              += PlayVideoCommandProcessed;
            CommandProcessors[Keyword.PlayJoiVideo].CommandProcessed           += PlayVideoCommandProcessed;
            CommandProcessors[Keyword.PlayCockHeroVideo].CommandProcessed      += PlayVideoCommandProcessed;
            CommandProcessors[Keyword.PlayCensorshipSucks].CommandProcessed    += PlayCensorshipSucksVideoTauntCommandProcessed;
            CommandProcessors[Keyword.PlayRedLightGreenLight].CommandProcessed += PlayRedLightGreenLightVideoTauntCommandProcessed;
            CommandProcessors[Keyword.StopVideo].CommandProcessed              += StopVideoCommandProcessed;
            CommandProcessors[Keyword.PauseVideo].CommandProcessed             += PauseVideoCommandProcessed;
            CommandProcessors[Keyword.UnpauseVideo].CommandProcessed           += UnpauseVideoCommandProcessed;
            CommandProcessors[Keyword.ShowCensorshipBar].CommandProcessed      += ShowCensorshipBarCommandProcessed;
            CommandProcessors[Keyword.HideCensorshipBar].CommandProcessed      += HideCensorshipBarCommandProcessed;

            CommandProcessors[Keyword.SendDailyTasks].CommandProcessed     += RequestTaskCommandProcessed;
            CommandProcessors[Keyword.VitalSubAssignment].CommandProcessed += VitalSubAssignmentCommandProcessed;

            MessageProcessors = CreateMessageProcessors(settingsAccessor, stringService, new LineService(), systemVocabularyAccessor, variableAccessor, new RandomNumberService());

            MessageProcessors[MessageProcessor.ScriptResponse].MessageProcessed += ScriptResponse_MessageProcessed;
            MessageProcessors[MessageProcessor.EdgeDetection].MessageProcessed  += EdgeDetection_MessageProcessed;

            CommandProcessors[Keyword.RiskyPickStart].CommandProcessed += RiskyPickStartCommandProcessed;

            CommandProcessors[Keyword.LikeImage].BeforeCommandProcessed += LikeImageCommandProcessed;

            _scriptAccessor        = scriptAccessor;
            _variableAccessor      = variableAccessor;
            _configurationAccessor = configurationAccessor;
            _scriptTimer           = timerFactory.Create();
            _scriptTimer.Elapsed  += _scriptTimer_Elapsed;

            _tauntTimer          = timerFactory.Create();
            _tauntTimer.Elapsed += _tauntTimer_Elapsed;

            _teaseCountDown          = timerFactory.Create();
            _teaseCountDown.Elapsed += _teaseCountDown_Elapsed;

            _vocabularyProcesser    = new VocabularyProcessor(lineCollectionFilter, new LineService(), vocabularyAccessor, imageAccessor, randomNumberService, settingsAccessor);
            _interpolationProcessor = interpolationProcessor;
        }
Beispiel #5
0
 public FlagService(IFlagAccessor flagAccessor)
 {
     _flagAccessor = flagAccessor;
     _lineService  = new LineService();
 }
Beispiel #6
0
 public DeleteFlagCommandProcessor(IFlagAccessor flagService, LineService lineService) : base(Keyword.DeleteFlag, lineService)
 {
     _flagService = flagService;
     _lineService = lineService;
 }