Beispiel #1
0
 private GuiHudText(Intel intel, IDictionary<GuiHudLineKeys, IColoredTextList> textLine) {
     Intel = intel;
     _textLine = textLine;
     IsDirty = true;
 }
Beispiel #2
0
        //public GuiHudText(IntelLevel intelLevel)
        //    : this(intelLevel, new Dictionary<GuiHudLineKeys, IColoredTextList>()) { }

        //private GuiHudText(IntelLevel intelLevel, IDictionary<GuiHudLineKeys, IColoredTextList> textLine) {
        //    IntelLevel = intelLevel;
        //    _textLine = textLine;
        //    IsDirty = true;
        //}

        public GuiHudText(Intel intel)
            : this(intel, new Dictionary<GuiHudLineKeys, IColoredTextList>()) { }
Beispiel #3
0
 /// <summary>
 /// Derived classes should override this if they have a different type of AIntel than <see cref="Intel" />.
 /// </summary>
 /// <param name="initialcoverage">The initial coverage.</param>
 /// <returns></returns>
 protected virtual AIntel MakeIntel(IntelCoverage initialcoverage) {
     var intel = new Intel();
     intel.InitializeCoverage(initialcoverage);
     return intel;
 }
Beispiel #4
0
 /// <summary>
 /// Derived classes should override this if they have a different type of AIntel and/or starting coverage than <see cref="Intel" /> and
 /// <see cref="IntelCoverage.None"/>.
 /// </summary>
 /// <param name="player">The player.</param>
 /// <returns></returns>
 protected virtual AIntel InitializeIntelState(Player player) {
     AIntel beginningIntel = new Intel();
     beginningIntel.CurrentCoverage = IntelCoverage.None;
     return beginningIntel;
 }
Beispiel #5
0
 /// <summary>
 /// Copy constructor. Initializes a new instance of the <see cref="Intel"/> class,
 /// a copy of <c>intelToCopy</c>.
 /// </summary>
 /// <param name="intelToCopy">The intel to copy.</param>
 public Intel(Intel intelToCopy)
     : base(intelToCopy) {
     DatedCoverage = intelToCopy.DatedCoverage;
     DateStamp = intelToCopy.DateStamp;
 }