2015-03-03 16:10:12 -06:00
|
|
|
from direct.directnotify.DirectNotifyGlobal import directNotify
|
|
|
|
from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
|
|
|
|
|
|
|
class NewsManagerAI(DistributedObjectAI):
|
|
|
|
notify = directNotify.newCategory('NewsManagerAI')
|
|
|
|
|
|
|
|
def announceGenerate(self):
|
|
|
|
DistributedObjectAI.announceGenerate(self)
|
|
|
|
|
|
|
|
self.accept('avatarEntered', self.__handleAvatarEntered)
|
|
|
|
|
|
|
|
def __handleAvatarEntered(self, avatar):
|
|
|
|
if self.air.suitInvasionManager.getInvading():
|
|
|
|
self.air.suitInvasionManager.notifyInvasionBulletin(avatar.getDoId())
|
|
|
|
|
2015-06-21 14:46:17 -05:00
|
|
|
def isHolidayRunning(self, holidayId):
|
|
|
|
return False
|
|
|
|
|
2015-03-03 16:10:12 -06:00
|
|
|
def setPopulation(self, todo0):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def setBingoWin(self, todo0):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def setBingoStart(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def setBingoEnd(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def setCircuitRaceStart(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def setCircuitRaceEnd(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def setInvasionStatus(self, msgType, cogType, numRemaining, skeleton):
|
|
|
|
self.sendUpdate('setInvasionStatus', args=[msgType, cogType, numRemaining, skeleton])
|
|
|
|
|
|
|
|
def setHolidayIdList(self, holidays):
|
|
|
|
self.sendUpdate('setHolidayIdList', holidays)
|
|
|
|
|
|
|
|
def holidayNotify(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def setWeeklyCalendarHolidays(self, todo0):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def getWeeklyCalendarHolidays(self):
|
|
|
|
return []
|
|
|
|
|
|
|
|
def setYearlyCalendarHolidays(self, todo0):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def getYearlyCalendarHolidays(self):
|
|
|
|
return []
|
|
|
|
|
|
|
|
def setOncelyCalendarHolidays(self, todo0):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def getOncelyCalendarHolidays(self):
|
|
|
|
return []
|
|
|
|
|
|
|
|
def setRelativelyCalendarHolidays(self, todo0):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def getRelativelyCalendarHolidays(self):
|
|
|
|
return []
|
|
|
|
|
|
|
|
def setMultipleStartHolidays(self, todo0):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def getMultipleStartHolidays(self):
|
|
|
|
return []
|
|
|
|
|
|
|
|
def sendSystemMessage(self, todo0, todo1):
|
2015-06-21 03:16:48 -05:00
|
|
|
pass
|