24 lines
704 B
Python
24 lines
704 B
Python
from typing import List
|
|
|
|
from data.enum.Direction import Direction
|
|
from decision.Action import Action
|
|
from util.PathDefinitions import GridLocation
|
|
|
|
|
|
class PathFinderState:
|
|
|
|
def __init__(self,
|
|
agent_position: GridLocation,
|
|
agent_direction: Direction,
|
|
cost: float,
|
|
last_action: Action,
|
|
action_taken: List[Action],
|
|
desired_item=None):
|
|
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
|
|
self.desired_item = desired_item
|