/// <summary>
        /// Constructor
        /// </summary>
        /// <param name="mode">
        /// The mode settings.
        /// </param>
        /// <param name="expectedValue">
        /// The required entrance shuffle value.
        /// </param>
        public EntranceShuffleRequirement(IMode mode, EntranceShuffle expectedValue)
        {
            _mode          = mode;
            _expectedValue = expectedValue;

            _mode.PropertyChanged += OnModeChanged;

            UpdateValue();
        }
 /// <summary>
 /// Returns a new change entrance shuffle action.
 /// </summary>
 /// <param name="entranceShuffle">
 /// The new entrance shuffle value.
 /// </param>
 /// <returns>
 /// A new change entrance shuffle.
 /// </returns>
 public IUndoable GetChangeEntranceShuffle(EntranceShuffle entranceShuffle)
 {
     return(_changeEntranceShuffleFactory(entranceShuffle));
 }
Beispiel #3
0
 /// <summary>
 /// Executes the action.
 /// </summary>
 public void ExecuteDo()
 {
     _previousEntranceShuffle = _mode.EntranceShuffle;
     _mode.EntranceShuffle    = _entranceShuffle;
 }
Beispiel #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mode">
 /// The mode settings.
 /// </param>
 /// <param name="entranceShuffle">
 /// The new entrance shuffle setting.
 /// </param>
 public ChangeEntranceShuffle(IMode mode, EntranceShuffle entranceShuffle)
 {
     _mode            = mode;
     _entranceShuffle = entranceShuffle;
 }
 /// <summary>
 /// Executes the action.
 /// </summary>
 public void Execute()
 {
     _previousEntranceShuffle      = Mode.Instance.EntranceShuffle;
     Mode.Instance.EntranceShuffle = _entranceShuffle;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="entranceShuffle">
 /// The new entrance shuffle setting.
 /// </param>
 public ChangeEntranceShuffle(EntranceShuffle entranceShuffle)
 {
     _entranceShuffle = entranceShuffle;
 }