def load(self): self.fog = Fog('PartyFog') Place.Place.load(self) if hasattr(base.localAvatar, 'aboutToPlanParty') and base.localAvatar.aboutToPlanParty: if not hasattr(self, 'partyPlanner') or self.partyPlanner is None: self.partyPlanner = PartyPlanner.PartyPlanner(self.partyPlannerDoneEvent) self.parentFSMState.addChild(self.fsm) return
def load(self): assert(self.notify.debug("load()")) self.fog = Fog("PartyFog") # Call up the chain Place.Place.load(self) if hasattr(base.localAvatar, "aboutToPlanParty") and base.localAvatar.aboutToPlanParty: if not hasattr(self, "partyPlanner") or self.partyPlanner is None: self.partyPlanner = PartyPlanner.PartyPlanner(self.partyPlannerDoneEvent) self.parentFSMState.addChild(self.fsm)