def __init__(self): Event.__init__(self) self.base = 'empires' self.desc = "+1VP, Gain a Gold." self.name = "Wedding" self.cost = 4 self.debtcost = 3
def __init__(self): Event.__init__(self) self.base = 'empires' self.desc = "After this turn, put all cards from your deck and discard pile into your hand, trash any number, shuffle your hand into your deck, then draw 5 cards." self.name = "Donate" self.cost = 0 self.debtcost = 8
def __init__(self): Event.__init__(self) self.base = 'empires' self.desc = "Gain a Curse. If you do, trash a card from your hand. +1VP per Coin it cost." self.name = "Ritual" self.cost = 4 self.required_cards = ['Curse']
def __init__(self): Event.__init__(self) self.base = 'empires' self.desc = """Once per turn: Turn your Journey token over; then if it's face up, choose up to 3 differently named cards you have in play and gain a copy of each.""" self.name = "Pilgrimage" self.cost = 4
def __init__(self): Event.__init__(self) self.base = 'empires' self.desc = "+1 Buy. Gain a Silver." self.name = "Delve" self.buys = 1 self.cost = 2
def __init__(self): Event.__init__(self) self.base = 'adventure' self.desc = "+1 Buy, Look at the top 5 cards of your deck. Discard 3 of them and put the rest back in any order" self.name = "Scouting Party" self.buys = 1 self.cost = 2
def __init__(self, message): """ Initialization First, determine message type from the argument. Then, check if this might be a legacy message. Proceed to unpack the message. """ # invoke constructor of parent class Event.__init__(self) # get the message field in the message table self.message = message[1]
def __init__(self, reaction_parameter, nodes, compartment_destroyed, influencing_compartments=None): """ New destroy event. Must specify the compartment from which member removed, may specify members of which compartments have destroyed the member (else spontaneous destruction) :param reaction_parameter: Reaction parameter of event :param nodes: Nodes where destruction occurs :param compartment_destroyed: The compartment to remove a member from :param influencing_compartments: Compartments whose members cause destruction (if not specified, spontaneous destruction) """ self._compartment_destroyed = compartment_destroyed self._influencing_compartments = influencing_compartments Event.__init__(self, reaction_parameter, nodes)
def __init__(self, reaction_parameter, nodes, compartment_created, influencing_compartments=None): """ New create event. Must specify the compartment created, may specify members of which compartments have created the new member (else spontaneous creation) :param reaction_parameter: Reaction parameter of event :param nodes: Nodes where creation occurs :param compartment_created: The compartment to add new member into :param influencing_compartments: Compartments whose members cause creation (if not specified, spontaneous creation) """ self._compartment_created = compartment_created self._influencing_compartments = influencing_compartments Event.__init__(self, reaction_parameter, nodes)
def __init__(self, reaction_parameter, nodes, compartment_translocating, edge_class, rate_increases_with_edges=True, influencing_compartments=None): """ New translocate event. If rate_increases_with_edges, then the rate of the event increases the more edges there are at node. If false, then rate is only dependent on their being one edge. :param reaction_parameter: Reaction parameter of event :param nodes: Nodes where translocation occurs :param compartment_translocating: The compartment of the member translocating :param edge_class: Class of edge which this event occurs along :param rate_increases_with_edges: Does the rate increase the more viable edges there are at node? :param influencing_compartments: External compartments which cause translocation """ self._viable_edges_lookup = {} self._compartment_translocating = compartment_translocating self._rate_increases_with_edges = rate_increases_with_edges self._edge_class = edge_class.__name__ self._influencing_compartments = influencing_compartments Event.__init__(self, reaction_parameter, nodes)
def __init__(self,ID): Event.__init__(self) self.ID = ID
def __init__(self, manager, fields, data, eventPermission=True): Event.__init__(self) self.updateFromFields(fields, data) self._zem = manager.getId() self._baseurl = manager.absolute_url_path() self.eventPermission = eventPermission
def __init__(self): Event.__init__(self) self.base = 'adventure' self.desc = "Take -1 Coin token; Gain 2 cards each costing up to 4 Coin" self.name = "Ball" self.cost = 5
def __init__(self,startxy,currxy): Event.__init__(self) self.start = startxy; self.curr = currxy; self.verboseInfo = "\tStartPos: " + str(self.start) + "\n" + \ "\tCurrPos: " + str(self.curr) + "\n"
def __init__(self,posxy): Event.__init__(self) self.pos = posxy self.verboseInfo = "\tPosition: " + str(self.pos) + "\n"
def __init__(self, playerName, abilityName, targetPlayerName): Event.__init__(self) self.abilityName = abilityName self.playerName = playerName self.targetPlayerName = targetPlayerName
def __init__(self): Event.__init__(self) self.base = 'empires' self.desc = "Gain an Estate. If you did, +1VP per card you've gained this turn." self.name = "Triumph" self.debtcost = 5
def __init__(self,isFullScreen): Event.__init__(self) self.isFullScreen = isFullScreen
def __init__(self,resolution, displaySurface): Event.__init__(self) self.resolution = resolution self.displaySurface = displaySurface
def __init__(self,elapsedTimeSinceLastFrame,totalTime): Event.__init__(self) self.elapsedTimeSinceLastFrame = elapsedTimeSinceLastFrame self.elapsedTotalTime = totalTime
def __init__(self): Event.__init__(self) self.base = 'adventure' self.desc = "Move your +1 Action Token to an Action Supply Pile" self.name = "Lost Arts" self.cost = 6
def __init__(self): Event.__init__(self) self.base = 'empires' self.desc = "Gain a Province. If you do, +9VP." self.name = "Dominate" self.cost = 14
def __init__(self): Event.__init__(self) self.base = 'empires' self.desc = "+1VP. Trash a Victory card from the Supply." self.name = "Salt the Earth" self.cost = 4
def __init__(self, cond): Event.__init__(self) self._cond = cond
def __init__(self): Event.__init__(self) self.base = 'adventure' self.desc = "Discard stuff to gain a gold" self.name = "Quest" self.cost = 0
def __init__(self,aStr): Event.__init__(self) self.data = aStr self.verboseInfo = ''#"Data: " + str(self.data) + "\n"
def __init__(self, message): Event.__init__(self) self.message = message
def __init__(self, name, ownername, noofdays, costperday): Event.__init__(self, name, ownername, noofdays, costperday)
def __init__(self, inst, startTime): Event.__init__(self, inst, startTime)
def __init__(self, model, assignmentString, triggerExpression, delay, useValuesFromTriggerTime): Event.__init__(self, model, assignmentString) self.triggerExpression = triggerExpression self.delay = delay self.useValuesFromTriggerTime = useValuesFromTriggerTime
def __init__(self): Event.__init__(self) self.base = 'adventure' self.desc = "You may trash an Action card from your hand. If you do, gain an Action card costing up to 6." self.name = "Advance" self.cost = 0
def __init__(self,startxy,endxy): Event.__init__(self) self.start = startxy self.curr = endxy self.verboseInfo = "\tStartPos: " + str(self.start) + "\n"+\ "\tEndPos: " + str(self.curr) + "\n"
def __init__(self): Event.__init__(self) self.base = 'adventure' self.desc = "Draw 2 extra cards for your next turn" self.name = "Expedition" self.cost = 3
def __init__(self, model, assignmentString, times): Event.__init__(self, model, assignmentString) self.times = times
def __init__(self,world): Event.__init__(self) self.world = world
def __init__(self): Event.__init__(self) self.base = 'adventure' self.name = "Alms" self.cost = 0
def __init__(self): Event.__init__(self) self.base = 'adventure' self.desc = "Trash up to two cards you have in play" self.name = "Bonfire" self.cost = 3