Exemplo n.º 1
0
 def __init__(self, air, connectorId, modelPath, name):
     DistributedGameAreaAI.__init__(self, air, modelPath)
     DistributedCartesianGridAI.__init__(
         self,
         air,
         startingZone=self.air.allocateZone(),
         gridSize=10,
         gridRadius=10,
         cellWidth=20)
     self.connectorId = connectorId
Exemplo n.º 2
0
    def __init__(self, air):
        DistributedCartesianGridAI.__init__(self, air,
                                            GAME_AREA_INTERIOR_STARTING_ZONE,
                                            GAME_AREA_INTERIOR_GRID_SIZE,
                                            GAME_AREA_INTERIOR_GRID_RADIUS,
                                            GAME_AREA_INTERIOR_CELL_SIZE)

        DistributedGameAreaAI.__init__(self, air)

        self.connectorId = 0
        self.interiorDoor = None
        self.exteriorDoor = None
        self.builder = InteriorAreaBuilderAI(air, self)
Exemplo n.º 3
0
    def __init__(self, air):
        DistributedCartesianGridAI.__init__(self, air, ISLAND_GRID_STARTING_ZONE, ISLAND_GRID_SIZE,
            ISLAND_GRID_RADIUS, ISLAND_CELL_SIZE)

        DistributedGameAreaAI.__init__(self, air)
        Teamable.__init__(self)

        self.sphereRadii = [0, 0, 0]
        self.sphereCenter = [0, 0]
        self.islandModel = ''
        self.undockable = False
        self.collisionSpheres = []
        self.feastFireEnabled = False
        self.fireworkShowEnabled = [False, 0]

        self.nextEvent = 0
Exemplo n.º 4
0
    def __init__(self, air, islandModel, name, uid):
        DistributedGameAreaAI.__init__(self, air, islandModel, name, uid)
        DistributedCartesianGridAI.__init__(self, air, WorldGlobals.ISLAND_GRID_STARTING_ZONE, WorldGlobals.ISLAND_GRID_SIZE, WorldGlobals.ISLAND_GRID_RADIUS, WorldGlobals.ISLAND_CELL_SIZE)
        Teamable.__init__(self)

        self.parentingRules = ['island', '2000:10:20']
        self.islandTransform = [1, 1, 1, 1]
        self.zoneSphereSize = [1, 1, 1]
        self.zoneSphereCenter = [1, 1]

        self.islandModel = islandModel

        self.undockable = True
        self.portCollisionSpheres = []
        self.feastFireEnabled = False
        self.fireworkShowEnabled = [False, 0]
Exemplo n.º 5
0
    def __init__(self, air, islandModel, name, uid):
        DistributedGameAreaAI.__init__(self, air, islandModel, name, uid)
        DistributedCartesianGridAI.__init__(
            self, air, WorldGlobals.ISLAND_GRID_STARTING_ZONE,
            WorldGlobals.ISLAND_GRID_SIZE, WorldGlobals.ISLAND_GRID_RADIUS,
            WorldGlobals.ISLAND_CELL_SIZE)
        Teamable.__init__(self)

        self.parentingRules = ['island', '2000:10:20']
        self.islandTransform = [1, 1, 1, 1]
        self.zoneSphereSize = [1, 1, 1]
        self.zoneSphereCenter = [1, 1]

        self.islandModel = islandModel

        self.undockable = True
        self.portCollisionSpheres = []
        self.feastFireEnabled = False
        self.fireworkShowEnabled = [False, 0]
Exemplo n.º 6
0
 def __init__(self, air, connectorId, modelPath, name):
     DistributedGameAreaAI.__init__(self, air, modelPath)
     DistributedCartesianGridAI.__init__(self, air, startingZone=self.air.allocateZone(), gridSize=10, gridRadius=10, cellWidth=20)
     self.connectorId = connectorId