|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.TeamHEC.LocomotionCommotion.Card.CardFactory
public class CardFactory
Constructor Summary | |
---|---|
CardFactory(Player player)
The initialiser. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CardFactory(Player player)
player
- The player that you want to generate Cards for.Method Detail |
---|
public Card createAnyCard()
public Card createResourceCard()
public Card createMagicCard()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |