def construct(self, gardenData):
        DistributedPlantBaseAI.construct(self, gardenData)

        self.wilted = gardenData.getUint8()
        if self.waterLevel == -1:
            self.wilted = True

        self.gagTrack, self.gagLevel = GardenGlobals.getTreeTrackAndLevel(self.typeIndex)
示例#2
0
    def construct(self, gardenData):
        DistributedPlantBaseAI.construct(self, gardenData)

        self.wilted = gardenData.getUint8()
        if self.waterLevel == -1:
            self.wilted = True

        self.gagTrack, self.gagLevel = GardenGlobals.getTreeTrackAndLevel(
            self.typeIndex)
示例#3
0
    def construct(self, gardenData, gType = 0):
        DistributedPlantBaseAI.construct(self, gardenData, gType)
        print (gardenData,"construct gagtree!")

        self.plotIndex = gardenData[1]
        self.typeIndex = gardenData[2]
        self.waterLevel = gardenData[3]
        self.growthLevel = gardenData[4]
        self.timestamp = gardenData[5]
        self.updateFromTimestamp()

        print (self.typeIndex)

        self.wilted = gardenData[6]
        if self.waterLevel == -1:
            self.wilted = True

        self.gagTrack, self.gagLevel = GardenGlobals.getTreeTrackAndLevel(self.typeIndex)