debug prints

This commit is contained in:
Zach 2015-05-29 15:59:26 -05:00
parent 5c51fe8037
commit 3ed02edc04
2 changed files with 5 additions and 0 deletions

View file

@ -14,9 +14,11 @@ class DistributedCogHQExteriorDoor(DistributedCogHQDoor.DistributedCogHQDoor):
self.lobbyGui = None
def selectLobby(self, avId):
print("********\nCreating Lobby GUI...\n********")
self.lobbyGui = BossLobbyGui(self.sendConfirmation, avId)
def sendConfirmation(self, avId, status):
self.lobbyGui.destroy()
self.lobbyGui = None
print("********\nGUI Complete.\nSending Confirmation...\n********")
self.sendUpdate('confirmEntrance', [avId, status])

View file

@ -31,11 +31,14 @@ class DistributedCogHQExteriorDoorAI(DistributedCogHQDoorAI.DistributedCogHQDoor
if not allowed:
self.sendReject(avId, self.isLockedDoor())
else:
print("********\nRequesting Lobby GUI...\n********")
self.sendUpdate('selectLobby', [avId])
def confirmEntrance(self, avId, status):
if status:
print("********\nAvatar Heading to Lobby...\n********")
self.enqueueAvatarIdEnter(avId)
self.sendUpdateToAvatarId(avId, 'setOtherZoneIdAndDoId', [self.destinationZone, self.otherDoor.getDoId()])
else:
print("********\nAvatar Canceled Entrance.\n********")
self.sendReject(avId, 0)