Exemple #1
0
 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
Exemple #2
0
 def __init__(self, air, mg):
     DistributedSuitAI.__init__(self, air)
     self.mg = mg
     self.truck = random.choice(self.mg.getTrucksWithBarrels())
     self.truckIndex = self.truck.getIndex()
     self.spawnPoint = None
     self.holdingBarrel = False
     self.track = None
Exemple #3
0
 def __init__(self, air, planner, bldg, doorDoId):
     DistributedSuitAI.__init__(self, air)
     self.planner = planner
     self.bldg = bldg
     self.doorDoId = doorDoId
     self.takeOverTrack = None
     self.state = 'off'
     self.stateTimestamp = 0
     self.setAllowHits(False)
Exemple #4
0
    def __init__(self, air, battle, spawnData, hangoutData, isChair, hood):
        DistributedSuitAI.__init__(self, air)
        self.hood = hood
        self.battle = battle
        self.battleDoId = self.battle.doId
        self.flyToPoint = None
        self.hangoutData = hangoutData
        self.floorSection = spawnData[0]
        self.initPoint = spawnData[1]
        if isChair:
            self.flyToPoint = spawnData[2]
            flyToPoint = spawnData[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'])
        ], 'off', 'off')
        self.fsm.enterInitialState()
        self.stateExtraArgs = []

        if isChair:
            self.chairPoint = [(self.initPoint[0], self.initPoint[1],
                                self.initPoint[2]), self.initPoint[3]]
        else:
            self.chairPoint = [(0, 0, 0), 0]

        if isChair:
            self.guardPoint = [(flyToPoint[0], flyToPoint[1], flyToPoint[2]),
                               flyToPoint[3]]
        else:
            self.guardPoint = [(self.initPoint[0], self.initPoint[1],
                                self.initPoint[2]), self.initPoint[3]]

        if hangoutData[0]:
            self.hangoutPoint = [
                1, (hangoutData[1][0], hangoutData[1][1], hangoutData[1][2]),
                hangoutData[2][0]
            ]
        else:
            self.hangoutPoint = [0, (0, 0, 0), 0]
Exemple #5
0
 def __init__(self, air, dispatch):
     DistributedSuitAI.__init__(self, air)
     self.setDispatch(dispatch)
     self.setBattleZone(dispatch)
 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, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     DistributedSuitAI.__init__(self, air)
     self.setBattleZone(dispatch)
     dispatch.suits.append(self)
Exemple #8
0
 def __init__(self, air, vp):
     DistributedSuitAI.__init__(self, air)
     BaseVPEnemy.__init__(self, vp)