JourneyCalculatorFULL version only

Class in ChivalrousGames.DungeonMaster

Description

Static class. Allows to determine the shortest Journey through a Dungeon. Will consider the Dungeon Character keys and will ignore Undiscovered Rooms. Based on a custom implementation of A*.

Static Methods

CalculateJourney
public static Journey CalculateJourney(Character character, Room goal);
Parameters
character Dungeon Character The Dungeon Character in the Dungeon
goal Room The destination Room
Return
Journey The shortest possible Journey. If no Journey is possible, returns null.
Description

Calculates and returns the shortest possible Journey from the Dungeon Character’s current location to a goal Room.