Exemplo n.º 1
0
 def createPicnic(self, picnicBasket):
     self.accept(self.picnicBasketDoneEvent, self.handlePicnicBasketDone)
     place = base.cr.playGame.getPlace()
     if not hasattr(place, 'picnic') or not place.picnic:
         place.picnic = PicnicBasket.PicnicBasket(place, place.fsm, self.picnicBasketDoneEvent, picnicBasket.getDoId(), picnicBasket.seatNumber)
         place.picnic.load()
         place.picnic.enter()
Exemplo n.º 2
0
 def enterPicnicBasketBlock(self, picnicBasket):
     base.localAvatar.laffMeter.start()
     base.localAvatar.b_setAnimState('off', 1)
     base.localAvatar.cantLeaveGame = 1
     self.accept(self.picnicBasketDoneEvent, self.handlePicnicBasketDone)
     self.trolley = PicnicBasket.PicnicBasket(self, self.fsm, self.picnicBasketDoneEvent, picnicBasket.getDoId(), picnicBasket.seatNumber)
     self.trolley.load()
     self.trolley.enter()
    def enterPicnicBasketBlock(self, picnicBasket):
        assert (self.notify.debug("enterPicnicBasketBlock()"))
        # Turn on the laff meter
        base.localAvatar.laffMeter.start()

        # clear the anim state
        base.localAvatar.b_setAnimState("off", 1)

        # Disable leave to pay / set parent password (for consistency)
        base.localAvatar.cantLeaveGame = 1

        self.accept(self.picnicBasketDoneEvent, self.handlePicnicBasketDone)
        self.trolley = PicnicBasket.PicnicBasket(self, self.fsm,
                                                 self.picnicBasketDoneEvent,
                                                 picnicBasket.getDoId(),
                                                 picnicBasket.seatNumber)
        self.trolley.load()
        self.trolley.enter()