Skip to content

Commit

Permalink
update style
Browse files Browse the repository at this point in the history
  • Loading branch information
harisankar95 committed Jan 27, 2024
1 parent eb07579 commit 4d45495
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pathfinding3d/core/diagonal_movement.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class DiagonalMovement:
"""Enum for diagonal movement"""

always = 1
never = 2
if_at_most_one_obstacle = 3
Expand Down
1 change: 1 addition & 0 deletions pathfinding3d/core/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class Grid:
"""
A grid represents the map (as 3d-list of nodes).
"""

def __init__(
self,
width: int = 0,
Expand Down
1 change: 1 addition & 0 deletions pathfinding3d/core/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Node:
tested : bool
Used for IDA* and Jump-Point-Search.
"""

__slots__ = ["h", "g", "f", "opened", "closed", "parent", "retain_count", "tested"]

def __init__(self):
Expand Down
1 change: 1 addition & 0 deletions pathfinding3d/core/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class World:
"""
A world connects grids but can have multiple grids.
"""

def __init__(self, grids: Dict[int, Grid]):
"""
Initialize a new world.
Expand Down

0 comments on commit 4d45495

Please sign in to comment.