def __init__(self, air):
     DistributedKartPadAI.__init__(self, air)
     FSM.__init__(self, 'DistributedRacePadAI')
     self.genre = 'urban'
     self.state = 'Off'
     self.trackInfo = [0, 0]
     self.laps = 3
     self.avIds = []
Exemple #2
0
 def __init__(self, air):
     DistributedKartPadAI.__init__(self, air)
     FSM.__init__(self, 'DistributedRacePadAI')
     self.air = air
     self.trackId, self.trackType = [None, None]
     self.lastTime = globalClockDelta.getRealNetworkTime()
     self.shouldStart = False
     self.index = -1
     self.nameType = 'urban'
Exemple #3
0
 def __init__(self, air):
     DistributedKartPadAI.__init__(self, air)
     FSM.__init__(self, 'DistributedRacePadAI')
     self.air = air
     self.trackId, self.trackType = [None, None]
     self.lastTime = globalClockDelta.getRealNetworkTime()
     self.shouldStart = False
     self.index = -1
     self.nameType = 'urban'
Exemple #4
0
    def __init__(self, air, area):
        """
        COMMENT
        """

        # Initialize the KartPadAI Super Classes
        DistributedKartPadAI.__init__(self, air, area)

        # Initialize Instance Variables
        self.id = DistributedViewPadAI.id
        DistributedViewPadAI.id += 1
        self.kickAvDict = {}
        self.lastEntered = 0
Exemple #5
0
    def __init__(self, air, area, tunnelGenre, tunnelId):
        """
        COMMENT
        """

        # Initialize the KartPadAI and FSM Super Classes
        DistributedKartPadAI.__init__(self, air, area)
        FSM.__init__(self, "RacePad_%s_FSM" % (DistributedRacePadAI.id))

        # Initialize Instance Variables
        self.id = DistributedRacePadAI.id
        DistributedRacePadAI.id += 1

        self.tunnelId = tunnelId
        self.tunnelGenre = tunnelGenre
        self.timerTask = None
        raceInfo = RaceGlobals.getNextRaceInfo(-1, tunnelGenre, tunnelId)
        self.trackId = raceInfo[0]
        self.trackType = raceInfo[1]
        self.numLaps = raceInfo[2]
        self.raceMgr = self.air.raceMgr
Exemple #6
0
 def __init__(self, air):
     DistributedKartPadAI.__init__(self, air)
     self.timestamp = globalClockDelta.getRealNetworkTime()
Exemple #7
0
 def __init__(self, air):
     DistributedKartPadAI.__init__(self, air)
     self.lastEntered = globalClockDelta.getRealNetworkTime()
 def __init__(self, air):
     DistributedKartPadAI.__init__(self, air)
     self.timestamp = globalClockDelta.getRealNetworkTime()
Exemple #9
0
 def __init__(self, air):
     DistributedKartPadAI.__init__(self, air)
     self.lastEntered = 0
Exemple #10
0
 def __init__(self, air):
     DistributedKartPadAI.__init__(self, air)
     self.state = 'Off'
     self.trackInfo = [0, 0]