/// <summary> /// Initializes a new ManipulatorManager /// </summary> public ManipulatorManagerController(Map map) { Map = map; _manipulators = new Dictionary <ManipulatorManagerTypes, ManipulatorManagerBase>(); DefaultManipulator = new DefaultManipulatorManager(map); CurrentManipulator = DefaultManipulator; _manipulators.Add(ManipulatorManagerTypes.Default, CurrentManipulator); PolygonManipulator = new PolygonManipulatorManager(map); _manipulators.Add(ManipulatorManagerTypes.Polygon, PolygonManipulator); AttackManipulator = new AttackManipulatorManager(map); _manipulators.Add(ManipulatorManagerTypes.Attack, AttackManipulator); }
public NoVillageAttackContextMenu(AttackManipulatorManager manipulator) { _manipulator = manipulator; _menu = JanusContextMenu.Create(); _menu.AddToggleCommand(ControlsRes.NoVillageAttackContextMenu_ShowNonActivePlanTargets, _manipulator.Settings.ShowOtherTargets, OnShowOtherTargets); _menu.AddToggleCommand(ControlsRes.NoVillageAttackContextMenu_ShowNonActivePlanAttackers, _manipulator.Settings.ShowOtherAttackers, OnShowOtherAttackers); _menu.AddSeparator(); _menu.AddToggleCommand(ControlsRes.NoVillageAttackContextMenu_AlwaysShowAttackPlans, _manipulator.Settings.ShowIfNotActiveManipulator, OnShowIfNotActiveManipulator); _menu.AddSeparator(); _menu.AddToggleCommand(ControlsRes.NoVillageAttackContextMenu_ShowArrivalTimesWhenSentNow, _manipulator.Settings.ShowArrivalTimeWhenSentNow, OnShowArrivalTimeWhenSentNow); }