public DungenonGeneratorService(
     IPresentation presentationAdapter,
     IStoryMaker storyMaker)
 {
     _presentationAdapter = presentationAdapter;
     _storyMaker          = storyMaker;
 }
Example #2
0
        public DungeonGeneratorService(
            IPresentation presentationAdapter,
            IStoryMaker storyMaker,
            IStoryElements storyElements)
        {
            if (presentationAdapter == null)
            {
                throw new ArgumentNullException("PresentationAdapter cannot be null");
            }
            _presentationAdapter = presentationAdapter;

            if (storyMaker == null)
            {
                throw new ArgumentNullException("StoryMaker cannot be null");
            }
            _storyMaker = storyMaker;

            if (storyElements == null)
            {
                throw new ArgumentNullException("StoryElements cannot be null");
            }
            _storyElements = storyElements;
        }