Esempio n. 1
0
 public void deckAssembly(DeckConstructor constructor, string identifier)
 {
     if (identifier == "TESTDECK")
     {
         constructor.addCardsToDeck(4, 6);
         constructor.addCardsToDeck(16, 5);
         constructor.addCardsToDeck(4, 7);
         constructor.addCardsToDeck(20, 2);
         constructor.addCardsToDeck(6, 12);
         constructor.addCardsToDeck(4, 3);
         constructor.addCardsToDeck(4, 8);
         constructor.addCardsToDeck(4, 9);
         constructor.addCardsToDeck(16, 4);
     }
     else if (identifier == "TESTDECK2")
     {
         constructor.addCardsToDeck(10, 0);
         constructor.addCardsToDeck(10, 10);
         constructor.addCardsToDeck(10, 11);
         constructor.addCardsToDeck(10, 0);
         constructor.addCardsToDeck(10, 0);
     }
     else
     {
         throw new Exception("deck didn't load my guy, need to check and see if your identifier is correct");
     }
 }
Esempio n. 2
0
 private void loadBuildersAndConstructors()
 {
     cardBuilder     = new CardBuilder();
     cardConstructor = new CardConstructor();
     deckBuilder     = new DeckBuilder();
     deckConstructor = new DeckConstructor();
 }
Esempio n. 3
0
 public Deck getDeck(DeckConstructor constructor, string identifier)
 {
     constructor.setDeck();
     deckAssembly(constructor, identifier);
     return(constructor.getDeck());
 }