mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-29 06:32:40 -06:00
64 lines
1.5 KiB
Python
64 lines
1.5 KiB
Python
|
from otp.ai.AIBaseGlobal import *
|
||
|
from pandac.PandaModules import *
|
||
|
import DistributedToonAI
|
||
|
from direct.fsm import ClassicFSM
|
||
|
from direct.fsm import State
|
||
|
from direct.distributed import ClockDelta
|
||
|
from toontown.toonbase import ToontownGlobals
|
||
|
import NPCToons
|
||
|
from direct.task import Task
|
||
|
from toontown.quest import Quests
|
||
|
|
||
|
class DistributedNPCToonBaseAI(DistributedToonAI.DistributedToonAI):
|
||
|
|
||
|
def __init__(self, air, npcId, questCallback = None):
|
||
|
DistributedToonAI.DistributedToonAI.__init__(self, air)
|
||
|
self.air = air
|
||
|
self.npcId = npcId
|
||
|
self.busy = 0
|
||
|
self.questCallback = questCallback
|
||
|
self.givesQuests = 1
|
||
|
|
||
|
def delete(self):
|
||
|
taskMgr.remove(self.uniqueName('clearMovie'))
|
||
|
DistributedToonAI.DistributedToonAI.delete(self)
|
||
|
|
||
|
def _doPlayerEnter(self):
|
||
|
pass
|
||
|
|
||
|
def _doPlayerExit(self):
|
||
|
pass
|
||
|
|
||
|
def _announceArrival(self):
|
||
|
pass
|
||
|
|
||
|
def isPlayerControlled(self):
|
||
|
return False
|
||
|
|
||
|
def getHq(self):
|
||
|
return 0
|
||
|
|
||
|
def getTailor(self):
|
||
|
return 0
|
||
|
|
||
|
def getGivesQuests(self):
|
||
|
return self.givesQuests
|
||
|
|
||
|
def avatarEnter(self):
|
||
|
pass
|
||
|
|
||
|
def isBusy(self):
|
||
|
return self.busy > 0
|
||
|
|
||
|
def getNpcId(self):
|
||
|
return self.npcId
|
||
|
|
||
|
def freeAvatar(self, avId):
|
||
|
self.sendUpdateToAvatarId(avId, 'freeAvatar', [])
|
||
|
|
||
|
def setPositionIndex(self, posIndex):
|
||
|
self.posIndex = posIndex
|
||
|
|
||
|
def getPositionIndex(self):
|
||
|
return self.posIndex
|