예제 #1
0
파일: ambush.py 프로젝트: bennn/Evolution
 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.")
예제 #2
0
파일: herding.py 프로젝트: bennn/Evolution
 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.")
예제 #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.")
예제 #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.")
예제 #5
0
파일: fertile.py 프로젝트: bennn/Evolution
 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)
예제 #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)
예제 #7
0
파일: horn.py 프로젝트: bennn/Evolution
 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)
예제 #8
0
파일: foraging.py 프로젝트: bennn/Evolution
 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)
예제 #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)
예제 #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.")
예제 #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.")
예제 #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)
예제 #13
0
파일: climbing.py 프로젝트: bennn/Evolution
 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.")
예제 #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)
예제 #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
예제 #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
예제 #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
예제 #18
0
 def __eq__(self, other):
     return isinstance(other, CooperationCard) and TraitCard.__eq__(self,
                                                                    other)
예제 #19
0
 def __eq__(self, other):
     return isinstance(other, WarningCallCard) and TraitCard.__eq__(self, other)
예제 #20
0
 def __eq__(self, other):
     return isinstance(other, PackHuntingCard) and TraitCard.__eq__(self, other)
예제 #21
0
파일: climbing.py 프로젝트: bennn/Evolution
 def __eq__(self, other):
     return isinstance(other, ClimbingCard) and TraitCard.__eq__(self, other)
예제 #22
0
 def __eq__(self, other):
     return isinstance(other, PackHuntingCard) and TraitCard.__eq__(
         self, other)
예제 #23
0
 def __eq__(self, other):
     return isinstance(other, LongNeckCard) and TraitCard.__eq__(self, other)
예제 #24
0
 def __eq__(self, other):
     return isinstance(other, HornCard) and TraitCard.__eq__(self, other)
예제 #25
0
 def __eq__(self, other):
     return isinstance(other, FertileCard) and TraitCard.__eq__(self, other)
예제 #26
0
 def __eq__(self, other):
     return isinstance(other, ScavengerCard) and TraitCard.__eq__(
         self, other)
예제 #27
0
파일: fertile.py 프로젝트: bennn/Evolution
 def __eq__(self, other):
     return isinstance(other, FertileCard) and TraitCard.__eq__(self, other)
예제 #28
0
 def __eq__(self, other):
     return isinstance(other, CarnivoreCard) and TraitCard.__eq__(
         self, other)
예제 #29
0
파일: ambush.py 프로젝트: bennn/Evolution
 def __eq__(self, other):
     return isinstance(other, AmbushCard) and TraitCard.__eq__(self, other)
예제 #30
0
 def __eq__(self, other):
     return isinstance(other, SymbiosisCard) and TraitCard.__eq__(
         self, other)
예제 #31
0
 def __eq__(self, other):
     return isinstance(other, LongNeckCard) and TraitCard.__eq__(
         self, other)
예제 #32
0
 def __eq__(self, other):
     return isinstance(other, CooperationCard) and TraitCard.__eq__(self,
                                                                    other)
예제 #33
0
 def __eq__(self, other):
     return isinstance(other, HardShellCard) and TraitCard.__eq__(self, other)
예제 #34
0
 def __eq__(self, other):
     return isinstance(other, CarnivoreCard) and TraitCard.__eq__(self, other)
예제 #35
0
 def __eq__(self, other):
     return isinstance(other, ClimbingCard) and TraitCard.__eq__(
         self, other)
예제 #36
0
 def __eq__(self, other):
     return isinstance(other, FatTissueCard) and other.stored_food == self.stored_food and \
            TraitCard.__eq__(self, other)
예제 #37
0
 def __eq__(self, other):
     return isinstance(other, FatTissueCard) and other.stored_food == self.stored_food and \
            TraitCard.__eq__(self, other)
예제 #38
0
 def __eq__(self, other):
     return isinstance(other, ScavengerCard) and TraitCard.__eq__(self,
                                                                  other)
예제 #39
0
 def __eq__(self, other):
     return isinstance(other, SymbiosisCard) and TraitCard.__eq__(self, other)
예제 #40
0
 def __eq__(self, other):
     return isinstance(other, BurrowingCard) and TraitCard.__eq__(self, other)