AI-Project/survival/components/pathfinding_component.py
2021-05-24 17:20:08 +02:00

7 lines
280 B
Python

class PathfindingComponent:
def __init__(self, target_pos, searching_for_resource=False):
self.target_grid_pos = (int(target_pos[0] / 32), int(target_pos[1] / 32))
self.searching_for_resource = False
self.current_target = None
self.path = None