public GameCardGame() { Spaces = new List <CardGameTableSpace>(); TextAreas = new List <GameCardGameTextArea>(); EmulatedAnswers = new List <CardGameAnswer>(); Users = new List <CardGameUser>(); Effects = new List <CardGameEffect>(); Deck = new CardGamePile("deck"); }
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>(); }
public CardGameTableSpace AssignPile(CardGamePile pile) { Pile = pile; PileName = pile.Name; return(this); }
public CardGameUser(string name) { UserName = name; Cards = new CardGamePile(name); }
public GameCardGame() { Spaces = new List<CardGameTableSpace>(); TextAreas = new List<GameCardGameTextArea>(); EmulatedAnswers = new List<CardGameAnswer>(); Users = new List<CardGameUser>(); Effects = new List<CardGameEffect>(); Deck = new CardGamePile("deck"); }
public CardGameTableSpace AssignPile(CardGamePile pile) { Pile = pile; PileName = pile.Name; return this; }
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>(); }