public ArtViewModel(Game game, GameArt art)
 {
     Art = art;
     Visitors = game.VisitorByLocation(TypeLocationMap.TypeToLocation[art.Type]);
     VisitorTypeNames = Visitors.Select(v => v.Type.ToString()).ToArray();
     SetTicketStrings(art);
 }
Esempio n. 2
0
 public void AddArtStack(List<TemplateArt> artList)
 {
     var i = 0;
     foreach (TemplateArt art in artList)
     {
         var gameArt = new GameArt(art);
         gameArt.Order = i++;
         Art.Add(gameArt);
     }
 }
Esempio n. 3
0
        public void AddArtStack(List <TemplateArt> artList)
        {
            var i = 0;

            foreach (TemplateArt art in artList)
            {
                var gameArt = new GameArt(art);
                gameArt.Order = i++;
                Art.Add(gameArt);
            }
        }
Esempio n. 4
0
 public void AddArtStack(Dictionary<ArtType, List<TemplateArt>> artDict)
 {
     foreach (var artList in artDict.Values)
     {
         var i = 0;
         foreach (TemplateArt art in artList)
         {
             var gameArt = new GameArt(art);
             gameArt.Order = i++;
             Art.Add(gameArt);
         }
     }
 }
Esempio n. 5
0
 public void AddArtStack(Dictionary <ArtType, List <TemplateArt> > artDict)
 {
     foreach (var artList in artDict.Values)
     {
         var i = 0;
         foreach (TemplateArt art in artList)
         {
             var gameArt = new GameArt(art);
             gameArt.Order = i++;
             Art.Add(gameArt);
         }
     }
 }
 public void SetTicketStrings(GameArt art)
 {
     FirstTicket = ArtTicketToClass(Art.FirstTicket);
     SecondTicket = "";
     if (Art.NumTickets > 1)
     {
         SecondTicket = ArtTicketToClass(Art.SecondTicket);
     }
     if (SecondTicket == FirstTicket)
     {
         FirstTicket = "art-tile-ticket-single " + "ticket-any-two";
         SecondTicket = "hidden";
     }
     else if (SecondTicket != "")
     {
         FirstTicket = "art-tile-ticket " + FirstTicket;
         SecondTicket = "art-tile-ticket " + SecondTicket;
     }
     else
     {
         FirstTicket = "art-tile-ticket-single " + FirstTicket;
         SecondTicket = "hidden";
     }
 }
 public PlayerArtViewModel(GameArt art)
 {
     Art = art;
     ArtValue = art.GetArtValue().ToString();
 }