Ejemplo n.º 1
0
    def __init__(self, air):
        DistributedCartesianGridAI.__init__(self, air,
                                            OCEAN_GRID_STARTING_ZONE,
                                            OCEAN_GRID_SIZE, OCEAN_GRID_RADIUS,
                                            OCEAN_CELL_SIZE)

        self.uidMgr = UniqueIdManager(self.air)
Ejemplo n.º 2
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
Ejemplo n.º 3
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)
Ejemplo n.º 4
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
Ejemplo 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]
Ejemplo n.º 6
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]
Ejemplo n.º 7
0
 def __init__(self, air):
     DistributedCartesianGridAI.__init__(
         self, air, WorldGlobals.OCEAN_GRID_STARTING_ZONE,
         WorldGlobals.OCEAN_GRID_SIZE, WorldGlobals.OCEAN_GRID_RADIUS,
         WorldGlobals.OCEAN_CELL_SIZE)
     self.parentingRules = ['ocean', '2000:10:20']
 def __init__(self, air):
     DistributedInstanceBaseAI.__init__(self, air)
 	DistributedCartesianGridAI.__init__(self, air, startingZone, 1000, 1000, 1000)
 	self.setWelcomeWorld()
Ejemplo n.º 9
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
	def __init__(self, air, startingZone=777, size=1000):
		DistributedCartesianGridAI.__init__(self, air, startingZone, size, size, size)
Ejemplo n.º 11
0
 def __init__(self, air):
     DistributedCartesianGridAI.__init__(self, air, WorldGlobals.OCEAN_GRID_STARTING_ZONE, WorldGlobals.OCEAN_GRID_SIZE, WorldGlobals.OCEAN_GRID_RADIUS, WorldGlobals.OCEAN_CELL_SIZE)
     self.parentingRules = ['ocean', '2000:10:20']