17 lines
569 B
Python
17 lines
569 B
Python
|
from typing import List
|
||
|
|
||
|
from data.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
|