Beispiel #1
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this AmbushCard
     :type num_tokens_as_food_card: int
     :return: None
     """
     TraitCard.__init__(self, num_tokens_as_food_card, "AmbushCard overcomes a Warning Call during an evolution.")
Beispiel #2
0
 def __init__(self, num_tokens_as_food_card: int = TRAIT_CARD_DEFAULT_FOOD_TOKENS) -> None:
     """
     :param num_tokens_as_food_card: The food tokens associated with this HerdingCard
     """
     TraitCard.__init__(self, num_tokens_as_food_card,
                        "Herding stops attacks from Carnivore species whose populations "
                        "are smaller or equal in size to this species population.")
Beispiel #3
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this CarnivoreCard
     :type num_tokens_as_food_card: int
     :return: None
     """
     TraitCard.__init__(self, num_tokens_as_food_card, "CarnivoreCard must attack to eat during the evolution stage.")
Beispiel #4
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this BurrowingCard
     :type num_tokens_as_food_card: int
     :return None
     """
     TraitCard.__init__(self, num_tokens_as_food_card, "BurrowingCard deflects an attack when its species has a food"
                                                       " supply equal to its population size.")
Beispiel #5
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this FertileCard
     :type num_tokens_as_food_card: int
     :return: None
     """
     description = "FertileCard automatically adds one animal to the population when the food cards are revealed."
     TraitCard.__init__(self, num_tokens_as_food_card, description)
Beispiel #6
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this ScavengerCard
     :type num_tokens_as_food_card: int
     :return None
     """
     description = "Scavenger automatically eats one food token every time a Carnivore eats another species."
     TraitCard.__init__(self, num_tokens_as_food_card, description)
Beispiel #7
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this HornCard
     :type num_tokens_as_food_card: int
     :return: None
     """
     description = "Horns kills one animal of an attacking CarnivoreCard species before the attack is completed."
     TraitCard.__init__(self, num_tokens_as_food_card, description)
Beispiel #8
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this ForagingCard
     :type num_tokens_as_food_card: int
     :return: None
     """
     description = "Foraging enables this species to eat two tokens of food for every evolution."
     TraitCard.__init__(self, num_tokens_as_food_card, description)
Beispiel #9
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this PackHuntingCard
     :type num_tokens_as_food_card: int
     :return: None
     """
     description = "Pack Hunting adds this species population size to its body size for " \
                   "attacks on other species."
     TraitCard.__init__(self, num_tokens_as_food_card, description)
Beispiel #10
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this SymbiosisCard
     :type num_tokens_as_food_card: int
     :return: None
     """
     TraitCard.__init__(self, num_tokens_as_food_card,
                        "Symbiosis prevents an attack if this species has a neighbor to "
                        "the right whose body size is larger than this ones.")
Beispiel #11
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this HardShellCard
     :type num_tokens_as_food_card: int
     :return: None
     """
     TraitCard.__init__(self, num_tokens_as_food_card,
                        "Hard Shell prevents an attack unless the attacker is "
                        "at least 4 units larger than this species in body size.")
Beispiel #12
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this CooperationCard
     :type num_tokens_as_food_card: int
     :return: None
     """
     description = "CooperationCard automatically feeds the species to its right one token of food every time it " \
                   "eats (taken from the common food supply at the watering hole)."
     TraitCard.__init__(self, num_tokens_as_food_card, description)
Beispiel #13
0
 def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this ClimbingCard
     :type num_tokens_as_food_card: int
     :return None
     """
     TraitCard.__init__(self, num_tokens_as_food_card,
                        "ClimbingCard prevents an attack unless the Carnivore"
                        " also has the ClimbingCard attribute.")
Beispiel #14
0
 def __init__(self,
              num_tokens_as_food_card: int = TRAIT_CARD_DEFAULT_FOOD_TOKENS):
     """
     :param num_tokens_as_food_card: The food tokens associated with this LongNeckCard
     :type num_tokens_as_food_card: int
     :return: None
     """
     description = "Long Neck automatically adds one food token for the entire species when the food cards are " \
                   "revealed."
     TraitCard.__init__(self, num_tokens_as_food_card, description)
Beispiel #15
0
 def add_stored_fat_food(self, stored_fat_food, owner_body_size):
     """ Set the stored fat food which is always GEN_TRAIT_CARD_STORED_FOOD for Non-FatTissueCards
     :param stored_fat_food: The amount of food you wish to store
     :type stored_fat_food: Nat
     :param owner_body_size: The owner's body size
     :type owner_body_size: Nat
     :return: The new self.food
     :rtype: Nat
     """
     TraitCard.add_stored_fat_food(self, stored_fat_food, owner_body_size)
     self.stored_food += stored_fat_food
     return self.stored_food
Beispiel #16
0
 def add_stored_fat_food(self, stored_fat_food, owner_body_size):
     """ Set the stored fat food which is always GEN_TRAIT_CARD_STORED_FOOD for Non-FatTissueCards
     :param stored_fat_food: The amount of food you wish to store
     :type stored_fat_food: Nat
     :param owner_body_size: The owner's body size
     :type owner_body_size: Nat
     :return: The new self.food
     :rtype: Nat
     """
     TraitCard.add_stored_fat_food(self, stored_fat_food, owner_body_size)
     self.stored_food += stored_fat_food
     return self.stored_food
Beispiel #17
0
 def __init__(self,
              num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS,
              stored_food=FAT_TISSUE_STARTING_FOOD):
     """
     Construct a FatTissue Trait Card
     :param num_tokens_as_food_card: The number of food tokens associated with this FatTissueCard
     :type num_tokens_as_food_card: int
     :param stored_food: The food currently stored on the FatTissueCard from last round's storage
     :type stored_food: Nat
     :return: None
     """
     description = "Fat Tissue allows a species to store as many food tokens as its body-size count. In a " \
                   "physical game, the additional food is stored on the actual card. It must be used to feed the " \
                   "species at the beginning of the next evolution round, before any food is taken from the " \
                   "watering hole."
     TraitCard.__init__(self, num_tokens_as_food_card, description)
     self.stored_food = stored_food  # type: Natural
Beispiel #18
0
 def __eq__(self, other):
     return isinstance(other, CooperationCard) and TraitCard.__eq__(self,
                                                                    other)
Beispiel #19
0
 def __eq__(self, other):
     return isinstance(other, WarningCallCard) and TraitCard.__eq__(self, other)
Beispiel #20
0
 def __eq__(self, other):
     return isinstance(other, PackHuntingCard) and TraitCard.__eq__(self, other)
Beispiel #21
0
 def __eq__(self, other):
     return isinstance(other, ClimbingCard) and TraitCard.__eq__(self, other)
Beispiel #22
0
 def __eq__(self, other):
     return isinstance(other, PackHuntingCard) and TraitCard.__eq__(
         self, other)
Beispiel #23
0
 def __eq__(self, other):
     return isinstance(other, LongNeckCard) and TraitCard.__eq__(self, other)
Beispiel #24
0
 def __eq__(self, other):
     return isinstance(other, HornCard) and TraitCard.__eq__(self, other)
Beispiel #25
0
 def __eq__(self, other):
     return isinstance(other, FertileCard) and TraitCard.__eq__(self, other)
Beispiel #26
0
 def __eq__(self, other):
     return isinstance(other, ScavengerCard) and TraitCard.__eq__(
         self, other)
Beispiel #27
0
 def __eq__(self, other):
     return isinstance(other, FertileCard) and TraitCard.__eq__(self, other)
Beispiel #28
0
 def __eq__(self, other):
     return isinstance(other, CarnivoreCard) and TraitCard.__eq__(
         self, other)
Beispiel #29
0
 def __eq__(self, other):
     return isinstance(other, AmbushCard) and TraitCard.__eq__(self, other)
Beispiel #30
0
 def __eq__(self, other):
     return isinstance(other, SymbiosisCard) and TraitCard.__eq__(
         self, other)
Beispiel #31
0
 def __eq__(self, other):
     return isinstance(other, LongNeckCard) and TraitCard.__eq__(
         self, other)
 def __eq__(self, other):
     return isinstance(other, CooperationCard) and TraitCard.__eq__(self,
                                                                    other)
Beispiel #33
0
 def __eq__(self, other):
     return isinstance(other, HardShellCard) and TraitCard.__eq__(self, other)
Beispiel #34
0
 def __eq__(self, other):
     return isinstance(other, CarnivoreCard) and TraitCard.__eq__(self, other)
Beispiel #35
0
 def __eq__(self, other):
     return isinstance(other, ClimbingCard) and TraitCard.__eq__(
         self, other)
Beispiel #36
0
 def __eq__(self, other):
     return isinstance(other, FatTissueCard) and other.stored_food == self.stored_food and \
            TraitCard.__eq__(self, other)
Beispiel #37
0
 def __eq__(self, other):
     return isinstance(other, FatTissueCard) and other.stored_food == self.stored_food and \
            TraitCard.__eq__(self, other)
Beispiel #38
0
 def __eq__(self, other):
     return isinstance(other, ScavengerCard) and TraitCard.__eq__(self,
                                                                  other)
Beispiel #39
0
 def __eq__(self, other):
     return isinstance(other, SymbiosisCard) and TraitCard.__eq__(self, other)
Beispiel #40
0
 def __eq__(self, other):
     return isinstance(other, BurrowingCard) and TraitCard.__eq__(self, other)