def __init__(self, gameManager, gameMap, coordinate, edgeLength, rotation): MapObject.__init__(self, gameMap) self.state = Door.STATE_CLOSING self.edgeLength = edgeLength self.height = - self.edgeLength / 2 self.rotation = rotation i, j = coordinate self.characterNearCondition = CharacterNearCondition( gameManager, Point3D((i + 0.5) * self.edgeLength, 0, (j + 0.5) * self.edgeLength), self.edgeLength * 2) self.createPolygons(coordinate, self.edgeLength)
def __init__(self, gameMap, character): MapObject.__init__(self, gameMap) self.character = character self.tick()