C# Class DivineRightGame.Pathfinding.PathfinderInterface

An interface for using the Pathfinding algorithm
Mostrar archivo Open project: Haedrian/Divine-Right

Public Methods

Method Description
CeilToPower2 ( int number ) : int
GetPath ( MapCoordinate startPoint, MapCoordinate endPoint ) : Stack

Gets a path from the startPoint to the endPoint. Or null if there are no possible points

Method Details

CeilToPower2() public static method

public static CeilToPower2 ( int number ) : int
number int
return int

GetPath() public static method

Gets a path from the startPoint to the endPoint. Or null if there are no possible points
public static GetPath ( MapCoordinate startPoint, MapCoordinate endPoint ) : Stack
startPoint MapCoordinate
endPoint MapCoordinate
return Stack