示例#1
0
 def __init__(self, air):
     DistributedSuitAI.__init__(self, air)
     self.mg = None
     self.flyTrack = None
     self.currentFlyPoint = None
     self.flySpeed = 0.0
     return
 def __init__(self, air, mg):
     DistributedSuitAI.__init__(self, air)
     self.mg = mg
     self.truck = random.choice(self.mg.trucks)
     self.truckIndex = self.mg.trucks.index(self.truck)
     self.spawnPoint = None
     return
 def __init__(self, air, index, tut, avatarId):
     DistributedSuitAI.__init__(self, air)
     self.tutPartIndex = index
     self.tutorial = tut
     self.avatarId = avatarId
     self.currentPath = None
     self.walkTrack = None
 def __init__(self, air, index, tut, avatarId):
     DistributedSuitAI.__init__(self, air)
     self.tutPartIndex = index
     self.tutorial = tut
     self.avatarId = avatarId
     self.currentPath = None
     self.walkTrack = None
     return
 def __init__(self, air, battle, initPointData, isChair, hood):
     DistributedSuitAI.__init__(self, air)
     self.hood = hood
     self.battle = battle
     self.battleDoId = self.battle.doId
     self.flyToPoint = None
     self.initPointIndex = initPointData[0]
     initPoint = initPointData[1]
     self.floorSection = initPoint[0]
     self.initPoint = initPoint[1]
     if isChair:
         self.flyToPoint = initPoint[2]
     self.isChair = isChair
     self.fsm = ClassicFSM.ClassicFSM('DistributedCogOfficeSuitAI', [
         State.State('off', self.enterOff, self.exitOff),
         State.State('guard', self.enterGuard, self.exitGuard, ['think']),
         State.State('think', self.enterThink, self.exitThink, ['off']),
         State.State('chair', self.enterChair, self.exitChair,
                     ['chair2battle']),
         State.State('chair2battle', self.enterChair2Battle,
                     self.exitChair2Battle, ['think'])
     ], 'off', 'off')
     self.fsm.enterInitialState()
     self.stateExtraArgs = []
 def __init__(self, air):
     DistributedSuitAI.__init__(self, air)
     self.mg = None
     self.flyTrack = None
     self.currentFlyPoint = None
     self.flySpeed = 0.0
 def __init__(self, air, mg):
     DistributedSuitAI.__init__(self, air)
     self.mg = mg
     self.truck = random.choice(self.mg.trucks)
     self.truckIndex = self.mg.trucks.index(self.truck)
     self.spawnPoint = None