private void SetStarProperties(GameArtist artist)
 {
     int index = GetIndexOfCurrentStarLevel(artist);
     CurrentStar = StarClass[index];
     NextStar = StarClass[index + 1];
     FameAtNextStar = artist.StarLevels[index];
 }
 public ArtistViewModel(GameArtist artist)
 {
     Artist = artist;
     SetStarProperties(artist);
     SetPromotionText(artist);
     BonusClass = IconCss.BonusClass[artist.DiscoverBonus];
 }
 private void SetPromotionText(GameArtist artist)
 {
     var text = "-";
     if (artist.Promotion > 0)
     {
         text = artist.Promotion.ToString();
     }
     PromotionText = text;
 }
Esempio n. 4
0
 public void AddArtists(List<TemplateArtist> artists, List<BonusType> artistBonuses)
 {
     foreach (TemplateArtist artist in artists)
     {
         var gameArtist = new GameArtist(artist);
         gameArtist.DiscoverBonus = artistBonuses[0];
         artistBonuses.RemoveAt(0);
         Artists.Add(gameArtist);
     }
 }
Esempio n. 5
0
 public void AddArtists(List <TemplateArtist> artists, List <BonusType> artistBonuses)
 {
     foreach (TemplateArtist artist in artists)
     {
         var gameArtist = new GameArtist(artist);
         gameArtist.DiscoverBonus = artistBonuses[0];
         artistBonuses.RemoveAt(0);
         Artists.Add(gameArtist);
     }
 }
 private int GetIndexOfCurrentStarLevel(GameArtist artist)
 {
     int i = 0;
     while (artist.StarLevels[i] < artist.Fame) { i++; }
     return i;
 }