Exemplo n.º 1
0
 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");
 }
Exemplo n.º 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>();
 }
Exemplo n.º 3
0
 public CardGameTableSpace AssignPile(CardGamePile pile)
 {
     Pile     = pile;
     PileName = pile.Name;
     return(this);
 }
Exemplo n.º 4
0
 public CardGameUser(string name)
 {
     UserName = name;
     Cards    = new CardGamePile(name);
 }
Exemplo n.º 5
0
 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");
 }
Exemplo n.º 6
0
 public CardGameUser(string name)
 {
     UserName = name;
     Cards = new CardGamePile(name);
 }
Exemplo n.º 7
0
 public CardGameTableSpace AssignPile(CardGamePile pile)
 {
     Pile = pile;
     PileName = pile.Name;
     return this;
 }
Exemplo n.º 8
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>();
 }