Beispiel #1
0
 public static SpellCard NewCard(string name)
 {
     Uri baseUri = new Uri("ms-appx:///");
     SpellCard card = new SpellCard();
     card.Name = name;
     switch (name)
     {
         case "Block Attack":
             card.Description = "Select 1 of your opponent's monsters and shift it to Defense Position.";
             card.SetImage(baseUri, "Assets/Spell/BlockAttack.jpg");
             card.ShortDescription = "";
             card.Category = "Normal";
             break;
         case "Dian Keto the Cure Master":
             card.Description = "Increases your Life Points by 1000 points.";
             card.SetImage(baseUri, "Assets/Spell/DianKetoTheCureMaster.jpg");
             card.ShortDescription = "";
             card.Category = "Normal";
             break;
         case "Pot of Greed":
             card.Description = "Draw 2 cards from your Deck.";
             card.SetImage(baseUri, "Assets/Spell/PotOfGreed.jpg");
             card.ShortDescription = "";
             card.Category = "Normal";
             break;
         case "Remove Trap":
             card.Description = "Destroys 1 face-up Trap Card on the field.";
             card.SetImage(baseUri, "Assets/Spell/RemoveTrap.jpg");
             card.ShortDescription = "";
             card.Category = "Normal";
             break;
         case "Stop Defense":
             card.Description = "Select 1 of your opponent's monsters and switch it to Attack Position. If the card is face-down, flip it face-up. If the card has a flip effect, it is activated immediately.";
             card.SetImage(baseUri, "Assets/Spell/StopDefense.jpg");
             card.ShortDescription = "";
             card.Category = "Normal";
             break;
     }
     return card;
 }