Example #1
0
 def __init__(self, cr):
     DistributedObjectOV.DistributedObjectOV.__init__(self, cr)
     Teamable.__init__(self)
     self.shipClass = 0
     self.maxHp = 0
     self.Hp = 0
     self.deltaHp = 0
     self.maxSp = 0
     self.Sp = 0
     self.deltaSp = 0
     self.cargo = []
     self.maxCargo = 0
     self.crew = []
     self.mastStates = [0, 0, 0, 0, 0]
     self.armorStates = [0, 0, 0]
     self.healthState = 0.0
     self.crewCount = 0
     self.state = 'Off'
     self.timerTime = 0
     self.timerTimestamp = 0
     self.customHull = 0
     self.customRigging = 0
     self.customSailPattern = 0
     self.customSailLogo = 0
     self.customProw = 0
     self.customCannon = 0
 def __init__(self, cr):
     DistributedObjectOV.DistributedObjectOV.__init__(self, cr)
     Teamable.__init__(self)
     self.shipClass = 0
     self.maxHp = 0
     self.Hp = 0
     self.deltaHp = 0
     self.maxSp = 0
     self.Sp = 0
     self.deltaSp = 0
     self.cargo = []
     self.maxCargo = 0
     self.crew = []
     self.mastStates = [
         0,
         0,
         0,
         0,
         0]
     self.armorStates = [
         0,
         0,
         0]
     self.healthState = 0.0
     self.crewCount = 0
     self.state = 'Off'
     self.timerTime = 0
     self.timerTimestamp = 0
Example #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
    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]
Example #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]
Example #6
0
 def __init__(self, cr):
     DistributedObjectOV.DistributedObjectOV.__init__(self, cr)
     Teamable.__init__(self)
     self.shipClass = 0
     self.maxHp = 0
     self.Hp = 0
     self.deltaHp = 0
     self.maxSp = 0
     self.Sp = 0
     self.deltaSp = 0
     self.cargo = []
     self.maxCargo = 0
     self.crew = []
     self.mastStates = [0, 0, 0, 0, 0]
     self.armorStates = [0, 0, 0]
     self.healthState = 0.0
     self.crewCount = 0
     self.state = 'Off'
     self.timerTime = 0
     self.timerTimestamp = 0