public TemplateSlide createTemplateSlide(EditorResourceProvider resourceProvider) { TemplateSlide slide = new TemplateSlide(); slide.LayoutStrategy = LayoutStrategy.createDerivedStrategy(slide, this, resourceProvider, false, true); return(slide); }
public void Init(LayoutStrategy lastStrat, HashSet<NewBomb> newBombs) { if (strategyView) { strategyView.PlayStrategyIntro(lastStrat); } SetCurrentBombSet(newBombs); }
/// <summary> /// Create a parent with the given layout strategy /// </summary> /// <param name="strategy"></param> public Parent(LayoutStrategy strategy) { Strategy = strategy; }
public void copyLayoutToSlide(Slide slide, EditorResourceProvider resourceProvider, bool overwriteContent) { slide.LayoutStrategy = LayoutStrategy.createDerivedStrategy(slide, this, resourceProvider, overwriteContent, false); }
void SetRandomStrategy() { //pick a strategy if (currentLayoutStrategy) { currentLayoutStrategy.CleanupStrategy(); } LayoutStrategy oldStrat = currentLayoutStrategy; currentLayoutStrategy = GetRandomStrategy(); currentLayoutStrategy.Init(oldStrat, bombsInPlay); //currentLayoutStrategy.SetCurrentBombSet(bombsInPlay); }