Пример #1
0
        public TemplateSlide createTemplateSlide(EditorResourceProvider resourceProvider)
        {
            TemplateSlide slide = new TemplateSlide();

            slide.LayoutStrategy = LayoutStrategy.createDerivedStrategy(slide, this, resourceProvider, false, true);
            return(slide);
        }
Пример #2
0
 public void Init(LayoutStrategy lastStrat, HashSet<NewBomb> newBombs)
 {
     if (strategyView)
     {
         strategyView.PlayStrategyIntro(lastStrat);
     }
     SetCurrentBombSet(newBombs);
 }
Пример #3
0
 /// <summary>
 ///     Create a parent with the given layout strategy
 /// </summary>
 /// <param name="strategy"></param>
 public Parent(LayoutStrategy strategy)
 {
     Strategy = strategy;
 }
Пример #4
0
 public void copyLayoutToSlide(Slide slide, EditorResourceProvider resourceProvider, bool overwriteContent)
 {
     slide.LayoutStrategy = LayoutStrategy.createDerivedStrategy(slide, this, resourceProvider, overwriteContent, false);
 }
Пример #5
0
    void SetRandomStrategy()
    {
        //pick a strategy
        if (currentLayoutStrategy)
        {
            currentLayoutStrategy.CleanupStrategy();
        }
        LayoutStrategy oldStrat = currentLayoutStrategy;

        currentLayoutStrategy = GetRandomStrategy();
        currentLayoutStrategy.Init(oldStrat, bombsInPlay);
        //currentLayoutStrategy.SetCurrentBombSet(bombsInPlay);
    }