Ejemplo n.º 1
0
 //keep track of the active strategy (note: a strategy is like a plugin and adds additional functionality/operations)
 public void SetStrategy(PlatformBuilderStrategy strategy)
 {
     activeStrategy = strategy;
     _platformBuilder.SetStrategy(strategy, this);
 }
Ejemplo n.º 2
0
 //called by the platform class, so it can keep track of the active strategy
 public void SetStrategy(PlatformBuilderStrategy strategy, Platform platform)
 {
     _strategy = strategy;
     _strategy.SetParent(platform);
 }