예제 #1
0
 public SimulationAnimation3D(
     IInstanceInfo instance,
     Dispatcher uiDispatcher,
     SimulationAnimationConfig config,
     Func <bool> heatModeEnabled,
     Func <BotColorMode> botColorModeGetter,
     HelixViewport3D contentControl,
     SimulationInfoManager infoControl)
     : base(instance, uiDispatcher, config, botColorModeGetter, heatModeEnabled)
 {
     _contentControl = contentControl; _infoControl = infoControl;
 }
예제 #2
0
        public SimulationAnimation(IInstanceInfo instance, Dispatcher uiDispatcher, SimulationAnimationConfig config, Func <BotColorMode> botColorModeGetter, Func <bool> heatModeEnabled)
        {
            _config             = config;
            _dispatcher         = uiDispatcher;
            _heatModeEnabled    = heatModeEnabled;
            _botColorModeGetter = botColorModeGetter;
            _instance           = instance;
            // Init colors for current bots
            List <IBotInfo> bots = instance.GetInfoBots().ToList();

            for (int i = 0; i < bots.Count; i++)
            {
                _rainbowBotColors[bots[i]] = new SolidColorBrush(HeatVisualizer.GenerateBiChromaticHeatColor(Colors.Purple, Colors.Red, ((double)i / (bots.Count - 1))));
            }
        }
예제 #3
0
 public SimulationAnimation2D(
     IInstanceInfo instance,
     Dispatcher uiDispatcher,
     SimulationAnimationConfig config,
     Func <bool> heatModeEnabled,
     Func <BotColorMode> botColorModeGetter,
     Canvas contentControl,
     Grid contentHost,
     MouseButtonEventHandler elementClickAction,
     SimulationInfoManager infoControl,
     ITierInfo currentTier)
     : base(instance, uiDispatcher, config, botColorModeGetter, heatModeEnabled)
 {
     _contentControl     = contentControl;
     _contentHost        = contentHost;
     _currentTier        = instance.GetInfoTiers().First();
     _elementClickAction = elementClickAction;
     _infoControl        = infoControl;
     _currentTier        = currentTier;
 }