public class CardFactory
extends java.lang.Object
Constructor and Description |
---|
CardFactory(Player player)
The initialiser.
|
Modifier and Type | Method and Description |
---|---|
Card |
createAnyCard()
Creates a random card from either the magicCardList or resourceCardList.
|
Card |
createMagicCard()
Creates a random card from the set of magic cards.
|
Card |
createResourceCard()
Creates a random card from the set of resource cards.
|
public CardFactory(Player player)
player
- The player that you want to generate Cards for.public Card createAnyCard()
public Card createResourceCard()
public Card createMagicCard()