def __init__(self, *args, **kwargs): super(CvRFCEventManager, self).__init__(*args, **kwargs) # map the initial EventHandlerMap values into the new data structure for eventType, eventHandler in self.EventHandlerMap.iteritems(): self.setEventHandler(eventType, eventHandler) self.CustomEvents = { 7614 : ('RiseAndFallPopupEvent', self.rnfEventApply7614, self.rnfEventBegin7614), 7615 : ('FlipPopupEvent', self.rnfEventApply7615, self.rnfEventBegin7615), 7616 : ('VotePopupEvent', self.congEventApply7616, self.congEventBegin7616), 7617 : ('AskCityPopupEvent', self.congEventApply7617, self.congEventBegin7617), 7618 : ('DecisionPopupEvent', self.congEventApply7618, self.congEventBegin7618), 7619 : ('InvitationPopupEvent', self.congEventApply7619, self.congEventBegin7619), 7620 : ('BribePopupEvent', self.congEventApply7620, self.congEventBegin7620), 7621 : ('GoldPopupEvent', self.congEventApply7621, self.congEventBegin7621), 7622 : ('ResurrectionEvent', self.rnfEventApply7622, self.rnfEventBegin7622), 7623 : ('AskNoCityPopupEvent', self.congEventApply7623, self.congEventBegin7623) } # --> INSERT EVENT HANDLER INITIALIZATION HERE <-- CvRFCEventHandler.CvRFCEventHandler(self) self.rnf = RiseAndFall.RiseAndFall() self.cong = Congresses.Congresses() # Fierabras start Civ4lerts.Civ4lerts(self)