Example #1
0
 /// <summary>
 /// Changes the image to the troll, reassigns the lblresults content to something related, and instantiates a troll class with arguments for food and skin type and assigns the instance to the beast variable.
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void RBTroll_Checked(object sender, RoutedEventArgs e)
 {
     ImgBeast.Source    = new BitmapImage(new Uri("frosttroll.jpg", UriKind.Relative));
     LblResults.Content = "Frost Trolls crush their prey.";
     beast = new Troll("Icy blue skin with grey tufts of fur", "Sheep and smaller animals, large beasts on ocassion.");
 }
Example #2
0
 /// <summary>
 /// Changes the image to the dragon, reassigns the lblresults content to something related, and instantiates a dragon class with arguments for food and skin type and assigns the instance to the beast variable.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void RBDragon_Checked(object sender, RoutedEventArgs e)
 {
     ImgBeast.Source    = new BitmapImage(new Uri("dragon.jpg", UriKind.Relative));
     LblResults.Content = "White dragons soar the skies among the highest peaks in the frostlands.";
     beast = new Dragon("Larger animals and any who dare get near", "Scales and Horns");
 }
Example #3
0
 /// <summary>
 /// Changes the image to the yeti, reassigns the lblresults content to something related, and instantiates a yeti class with arguments for food and skin type and assigns the instance to the beast variable.
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void RBYeti_Checked(object sender, RoutedEventArgs e)
 {
     ImgBeast.Source    = new BitmapImage(new Uri("yeti.jpg", UriKind.Relative));
     LblResults.Content = "Yetis tend to live solitary lives in the brutal tundra.";
     beast = new Yeti("Medium size animals, typically livestock from nearby towns.", "Thick white fur and black skin.");
 }