SI_InteligentnyWozekWidlowy/pathfinding/PathFinderState.py
2022-05-14 15:05:43 +02:00

17 lines
574 B
Python

from typing import List
from data.enum.Direction import Direction
from decision.ActionType import ActionType
from util.PathDefinitions import GridLocation
class PathFinderState:
def __init__(self, agent_position: GridLocation, agent_direction: Direction, cost: float,
last_action: ActionType, action_taken: List[ActionType]):
super().__init__()
self.agent_position = agent_position
self.agent_direction = agent_direction
self.cost = cost
self.last_action = last_action
self.action_taken = action_taken