Beispiel #1
0
 public CardGameTableSpace(CardGameTableSpaceOptions options)
 {
     Vertical = !options.Vertical ? false : options.Vertical;
     X        = options.X == 0 ? 0 : options.X;
     Y        = options.Y == 0 ? 0 : options.Y;
     Name     = options.Name ?? "TableSpace";
     Width    = options.Width == 0 ? 0 : options.Width;
     Height   = options.Height == 0 ? 0 : options.Height;
     //Rotate = options.Rotate == 0 ? 0 : options.Rotate;
     Visible    = !options.Visible ? true : options.Visible;
     StackCards = !options.StackCards ? false : options.StackCards;
     Pile       = new CardGamePile(Name + "Pile");
     SortOrder  = options.SortOrder;
     NumberOfCardsHorizontal = options.NumerOfCardsHorizontal == 0 ? 1 : options.NumerOfCardsHorizontal;
     NumberOfCardsVertical   = options.NumerOfCardsVertical == 0 ? 1 : options.NumerOfCardsVertical;
     ResizeType = options.ResizeType;
     //Rotate = ExtensionMethods.eval("options.rotate? options.rotate : 0");
     Effects = new List <string>();
 }
Beispiel #2
0
 public CardGameTableSpace(CardGameTableSpaceOptions options)
 {
     Vertical = !options.Vertical ? false : options.Vertical;
     X = options.X == 0 ? 0 : options.X;
     Y = options.Y == 0 ? 0 : options.Y;
     Name = options.Name ?? "TableSpace";
     Width = options.Width == 0 ? 0 : options.Width;
     Height = options.Height == 0 ? 0 : options.Height;
     //Rotate = options.Rotate == 0 ? 0 : options.Rotate;
     Visible = !options.Visible ? true : options.Visible;
     StackCards = !options.StackCards ? false : options.StackCards;
     Pile = new CardGamePile(Name + "Pile");
     SortOrder = options.SortOrder;
     NumberOfCardsHorizontal = options.NumerOfCardsHorizontal == 0 ? 1 : options.NumerOfCardsHorizontal;
     NumberOfCardsVertical = options.NumerOfCardsVertical == 0 ? 1 : options.NumerOfCardsVertical;
     ResizeType = options.ResizeType;
     //Rotate = ExtensionMethods.eval("options.rotate? options.rotate : 0");
     Effects = new List<string>();
 }