Show / Hide Table of Contents

Class CenterBoundsConnectionPointSelector

Selects the center points of the bounding boxes of each map area. On concave map areas, because the center point of the bounding box is not actually guaranteed to be among the MapArea's walkable tiles, connecting these two points is not guaranteed to actually connect the entirety of the two areas.

Inheritance
System.Object
CenterBoundsConnectionPointSelector
Implements
IAreaConnectionPointSelector
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GoRogue.MapGeneration.Connectors
Assembly: GoRogue.dll
Syntax
public class CenterBoundsConnectionPointSelector : IAreaConnectionPointSelector

Methods

| Improve this Doc View Source

SelectConnectionPoints(IReadOnlyMapArea, IReadOnlyMapArea)

Selects and returns a the center point of the bounding rectangle for each map area's positions list.

Declaration
public Tuple<Coord, Coord> SelectConnectionPoints(IReadOnlyMapArea area1, IReadOnlyMapArea area2)
Parameters
Type Name Description
IReadOnlyMapArea area1

First map area to connect.

IReadOnlyMapArea area2

First map area to connect.

Returns
Type Description
System.Tuple<Coord, Coord>

A tuple representing the center of the bounding box of each map area.

Implements

IAreaConnectionPointSelector

Extension Methods

Utility.Yield<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX