コード例 #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
ファイル: carnivore.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 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
ファイル: burrowing.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 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
ファイル: scavenger.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 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
ファイル: pack_hunting.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 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
ファイル: symbiosis.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 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
ファイル: hard_shell.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 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
ファイル: cooperation.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 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
ファイル: long_neck.py プロジェクト: bennn/Evolution
 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
ファイル: fat_tissue.py プロジェクト: bennn/Evolution
 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
ファイル: fat_tissue.py プロジェクト: bennn/Evolution
 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
ファイル: cooperation.py プロジェクト: bennn/Evolution
 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
ファイル: long_neck.py プロジェクト: bennn/Evolution
 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
ファイル: hard_shell.py プロジェクト: bennn/Evolution
 def __eq__(self, other):
     return isinstance(other, HardShellCard) and TraitCard.__eq__(self, other)
コード例 #34
0
ファイル: carnivore.py プロジェクト: bennn/Evolution
 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
ファイル: fat_tissue.py プロジェクト: bennn/Evolution
 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
ファイル: scavenger.py プロジェクト: bennn/Evolution
 def __eq__(self, other):
     return isinstance(other, ScavengerCard) and TraitCard.__eq__(self,
                                                                  other)
コード例 #39
0
ファイル: symbiosis.py プロジェクト: bennn/Evolution
 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)