Skip to content

Releases: FaronBracy/RogueSharp

Map Inheritance

23 May 01:16
86e09ae
Compare
Choose a tag to compare
Map Inheritance Pre-release
Pre-release

New features:

  • Map and cell classes now have generic versions that are easier to inherit from.
  • Improved performance of Pathfinder class.

Breaking changes:

  • Removed IsInFov from Map and Cell classes (use FieldOfView class instead)
  • Removed IsExplored from Map and Cell classes

Weighted Pools with random selection.

30 Jun 21:33
57d8058
Compare
Choose a tag to compare
Pre-release

New features:

  • Weighted pool class for randomly picking items.
  • Pathfinder class caches graph and dijkstra result for speedier performance with multiple lookups.
  • Added Map.GetCellsInRectangle method. (Thanks to Andre Odendaal)

Breaking changes:

  • Bug fix - Change Map.Create to be generic, returning the same map type as the creation strategy's map. (Thanks to Andre Odendaal)
  • Bug fix - Update Map Save and Restore methods to track IsExplored status. (Thanks to Andre Odendaal)
  • Map.Initialize is virtual so that it can be overridden in derived classes
  • Map.Clone is now virtual and generic so that it can be overridden in derived classes.

Bug fix for NumberOfEdges property

01 Jan 16:58
d20f757
Compare
Choose a tag to compare
  • Bug fix: EdgeWeightedDigraph updates NumberOfEdges property when new edge is added
  • Fix spelling mistakes in comments
  • Add unit tests for algorithms that did not have code coverage
  • Add .editorconfig

Fix selecting border cells

04 Aug 12:24
4cac168
Compare
Choose a tag to compare

Bug fix - selecting border cells along edge of map no longer selects center cell

.NET Standard Support

29 Jul 15:12
333f86d
Compare
Choose a tag to compare

New features:

  • Optimized cave map generator (Thanks to James Neal)
  • Optimized DijkstraShortestPath.FindPath method (Thanks to flend for this update)
  • Multiple new "Try" methods which return null instead of throwing exceptions
  • Diagonal paths can be found by using new constructors on GoalMap and PathFinder
  • Map.GetCellsInCircle and Map.GetBorderCellsInCircle to get cells within a circular radius

Breaking changes:

  • Point and Rectangle classes are now structs (Thanks to James Neal)
  • Updated all appropriate references to Cell with ICell (Thanks to Courtney Strachan)
  • Map.ComputeFov and Map.AppendFov both return a ReadonlyCollection of ICell instead void
  • The Path returned from PathFinder.ShortestPath now includes the source cell in the returned Path
  • Map.GetCellsInArea was renamed to Map.GetCellsInSquare
  • Map.GetCellsInRadius was renamed to Map.GetCellsInDiamond