コード例 #1
0
        /// <summary>
        /// Create a card of type.
        /// NOTE: Do not use this overload if you are creating a 'color' type card.
        /// </summary>
        /// <param name="type">The type of card.</param>
        public ColorettoCard(ColorettoCardTypes type)
            : this()
        {
            CardType = type;
            Color = ColorettoCardColors.None;

            ValidateCard();
        }
コード例 #2
0
        /// <summary>
        /// Create a card of type and color.
        /// </summary>
        /// <param name="type">The type of card. (The Unknown type will cause an ArgumentException)</param>
        /// <param name="color">For cards of color type this will be the color of the card. For non-color type cards use the 'none' value.</param>
        public ColorettoCard(ColorettoCardTypes type, ColorettoCardColors color)
            : this()
        {
            CardType = type;
            Color = color;

            ValidateCard();
        }
コード例 #3
0
 /// <summary>
 /// Create a card that is of type and in a fixed position
 /// </summary>
 /// <param name="type"></param>
 /// <param name="fixedPosition"></param>
 public ColorettoCard(ColorettoCardTypes type, int fixedPosition)
     : this(type)
 {
     FixedDeckPosition = fixedPosition;
 }