(self, spawnpoint)
| 62 | self.max_time = spawnpoint.time |
| 63 | |
| 64 | def simulate_centroid(self, spawnpoint): |
| 65 | f = len(self._spawnpoints) / (len(self._spawnpoints) + 1.0) |
| 66 | new_centroid = utils.intermediate_point(spawnpoint.position, self.centroid, f) |
| 67 | |
| 68 | return new_centroid |
| 69 | |
| 70 | def cost(spawnpoint, cluster, time_threshold): |
| 71 | distance = utils.distance(spawnpoint.position, cluster.centroid) |