def invokeOperation(self, operationName): if operationName == OPERATION_RETRAIN: self.fireEvent(LoadViewEvent(VIEW_ALIAS.RETRAIN_CREW)) elif operationName == OPERATION_RETURN: self.__processReturnCrew() else: Crew.unloadCrew()
def invokeOperation(self, operationName): if operationName == OPERATION_RETRAIN: self.fireEvent(LoadViewEvent(VIEW_ALIAS.RETRAIN_CREW), EVENT_BUS_SCOPE.LOBBY) elif operationName == OPERATION_RETURN: self.__processReturnCrew() else: Crew.unloadCrew()
def invokeOperation(self, operationName): if operationName == OPERATION_RETRAIN: self.fireEvent(LoadViewEvent(SFViewLoadParams(VIEW_ALIAS.RETRAIN_CREW)), EVENT_BUS_SCOPE.LOBBY) elif operationName == OPERATION_RETURN: self.__processReturnCrew() elif operationName == OPERATION_CREW_BOOKS: availableBooksCount = self.__getAvailableBooksCount() if availableBooksCount > 0: self.__openCrewBooksView() else: self.__openCrewBooksLackView() else: Crew.unloadCrew()
def DropAllCrew(self): Crew.unloadCrew()