using System.Collections;
namespace OpenVIII.IGMData.Target
{
public class Random
{
#region Fields
private BitArray fields = new BitArray(3, false);
#endregion Fields
#region Constructors
public Random()
{
}
///
/// Set all feilds to a true/false value
///
/// true/false
public Random(bool value) => fields.SetAll(value);
#endregion Constructors
#region Properties
///
/// Positive spells go to allies and Negative go to enemies.
///
public bool PositiveMatters { get => fields[2]; set => fields[2] = value; }
///
/// if true the side (enemy or party) is randomized
///
public bool Side { get => fields[0]; set => fields[0] = value; }
///
/// if true only a single target is chosen at random
///
public bool Single { get => fields[1]; set => fields[1] = value; }
#endregion Properties
#region Methods
public static implicit operator Random(bool value) => new Random(value);
#endregion Methods
}
}