C# Class fBaseXtensions.Navigation.Gridpoint.GPRectangle

GridPointCircle A collection of GridPoints that is surrounding a given vector3. Allows safespot finding and will iterate thru its sectors to find any safespots contained within.
Inheritance: PointCollection
Exibir arquivo Open project: herbfunk/Funky Class Usage Examples

Public Properties

Property Type Description
AvoidanceCount int
CreationVector System.Vector3
MonsterCount int

Private Properties

Property Type Description
Expand void
FullyExpand void
UpdateObjectCount void
UpdateQuadrants void

Public Methods

Method Description
Clone ( ) : GPRectangle
Equals ( object obj ) : bool
GPRectangle ( DirectionPoint Direction ) : System

Using a direction point. Center will be established at the DirectionPoint center, with an area covering the start/end points.

GPRectangle ( DirectionPoint Direction, PointCollection baseCache ) : System

Using a direction point. Center will be established at the DirectionPoint center, with an area covering the start/end points.

GPRectangle ( GPRectangle clone ) : System
GPRectangle ( System.Vector3 center, int expansionCount = 2 ) : System

Creates a new point collection from center point. Area will be sqrt(1 + expansionCount) Points are sorted by the quadrant it lays in using center point as the testing point.

GetHashCode ( ) : int
GetQuadrantContainingPoint ( GridPoint Point ) : GPQuadrant
TryFindSafeSpot ( System.Vector3 CurrentPosition, System.Vector3 &safespot, System.Vector3 los, PointCheckingFlags Flags, List BlacklistedPoints, bool expandOnFailure = false, double CurrentWeight ) : bool

Private Methods

Method Description
Expand ( GridPoint point ) : void
FullyExpand ( ) : void
UpdateObjectCount ( bool resetSearchIndex = false ) : void
UpdateQuadrants ( ) : void

Method Details

Clone() public method

public Clone ( ) : GPRectangle
return GPRectangle

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GPRectangle() public method

Using a direction point. Center will be established at the DirectionPoint center, with an area covering the start/end points.
public GPRectangle ( DirectionPoint Direction ) : System
Direction DirectionPoint
return System

GPRectangle() public method

Using a direction point. Center will be established at the DirectionPoint center, with an area covering the start/end points.
public GPRectangle ( DirectionPoint Direction, PointCollection baseCache ) : System
Direction DirectionPoint
baseCache PointCollection
return System

GPRectangle() public method

public GPRectangle ( GPRectangle clone ) : System
clone GPRectangle
return System

GPRectangle() public method

Creates a new point collection from center point. Area will be sqrt(1 + expansionCount) Points are sorted by the quadrant it lays in using center point as the testing point.
public GPRectangle ( System.Vector3 center, int expansionCount = 2 ) : System
center System.Vector3
expansionCount int
return System

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetQuadrantContainingPoint() public method

public GetQuadrantContainingPoint ( GridPoint Point ) : GPQuadrant
Point GridPoint
return GPQuadrant

TryFindSafeSpot() public method

public TryFindSafeSpot ( System.Vector3 CurrentPosition, System.Vector3 &safespot, System.Vector3 los, PointCheckingFlags Flags, List BlacklistedPoints, bool expandOnFailure = false, double CurrentWeight ) : bool
CurrentPosition System.Vector3
safespot System.Vector3
los System.Vector3
Flags PointCheckingFlags
BlacklistedPoints List
expandOnFailure bool
CurrentWeight double
return bool

Property Details

AvoidanceCount public_oe property

public int AvoidanceCount
return int

CreationVector public_oe property

public Vector3,System CreationVector
return System.Vector3

MonsterCount public_oe property

public int MonsterCount
return int