SI_InteligentnyWozekWidlowy/pathfinding/PathFinderState.py

24 lines
704 B
Python
Raw Normal View History

2022-04-28 21:22:19 +02:00
from typing import List
2022-05-14 15:05:43 +02:00
from data.enum.Direction import Direction
2022-05-22 16:27:36 +02:00
from decision.Action import Action
2022-04-28 21:22:19 +02:00
from util.PathDefinitions import GridLocation
class PathFinderState:
2022-05-22 16:27:36 +02:00
def __init__(self,
agent_position: GridLocation,
agent_direction: Direction,
cost: float,
last_action: Action,
action_taken: List[Action],
desired_item=None):
2022-04-28 21:22:19 +02:00
super().__init__()
self.agent_position = agent_position
self.agent_direction = agent_direction
self.cost = cost
self.last_action = last_action
2022-05-22 16:27:36 +02:00
self.action_taken = action_taken
self.desired_item = desired_item