Loading...
Searching...
No Matches
CityBuilderCore.NoPathfinding Class Reference

Detailed Description

fallback pathfinding that just returns a straight path from start to target

Inheritance diagram for CityBuilderCore.NoPathfinding:
CityBuilderCore.IPathfinder

Classes

class  NoPathQuery
 

Public Member Functions

WalkingPath FindPath (Vector2Int[] starts, Vector2Int[] targets, object parameter=null)
 attempts to find a path between one of the starts and one of the ends
 
PathQuery FindPathQuery (Vector2Int[] starts, Vector2Int[] targets, object tag=null)
 
bool HasPoint (Vector2Int point, object tag=null)
 checks if a point exists within the pathfinder
for example points on map pathing that are blocked or points for road pathing that dont have a road
 

Member Function Documentation

◆ FindPath()

WalkingPath CityBuilderCore.NoPathfinding.FindPath ( Vector2Int[] starts,
Vector2Int[] targets,
object tag = null )
inline

attempts to find a path between one of the starts and one of the ends

Parameters
startscollection of one or more possible start points
targetscollection of one or more possible start points
tagadditional pathfinding parameter(road type, walker info, ...)
Returns
the calculated path or null when no path was found

Implements CityBuilderCore.IPathfinder.

◆ FindPathQuery()

PathQuery CityBuilderCore.NoPathfinding.FindPathQuery ( Vector2Int[] starts,
Vector2Int[] targets,
object tag = null )
inline

◆ HasPoint()

bool CityBuilderCore.NoPathfinding.HasPoint ( Vector2Int point,
object tag = null )
inline

checks if a point exists within the pathfinder
for example points on map pathing that are blocked or points for road pathing that dont have a road

Parameters
pointthe map point to check
tagadditional pathfinding parameter(road type, walker info, ...)
Returns
whether the point exists in the pathfinder

Implements CityBuilderCore.IPathfinder.