예제 #1
0
파일: ee.py 프로젝트: xjcl/PYlo
 def __init__(self, pdeck, phci, pwner):
     self.cont = []            # @below: get home card its own class in an Entity?
     self.owner = pwner
     self.hc = card.Card(home.Home(phci, self.owner), self.owner) # is initing with strings such a good idea? idk.
     for a_card_name in pdeck:
         if phylo_dic.get(a_card_name):
             self.cont.append(card.Card(phylo.Phylo(a_card_name), self.owner))
         if event_dic.get(a_card_name): # in case there are terrain cards or stuff to implement
             self.cont.append(card.Card(event.Event(a_card_name), self.owner))