C# Класс 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.
Наследование: PointCollection
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AvoidanceCount int
CreationVector System.Vector3
MonsterCount int

Private Properties

Свойство Тип Описание
Expand void
FullyExpand void
UpdateObjectCount void
UpdateQuadrants void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Expand ( GridPoint point ) : void
FullyExpand ( ) : void
UpdateObjectCount ( bool resetSearchIndex = false ) : void
UpdateQuadrants ( ) : void

Описание методов

Clone() публичный Метод

public Clone ( ) : GPRectangle
Результат GPRectangle

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GPRectangle() публичный Метод

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
Результат System

GPRectangle() публичный Метод

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
Результат System

GPRectangle() публичный Метод

public GPRectangle ( GPRectangle clone ) : System
clone GPRectangle
Результат System

GPRectangle() публичный Метод

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
Результат System

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetQuadrantContainingPoint() публичный Метод

public GetQuadrantContainingPoint ( GridPoint Point ) : GPQuadrant
Point GridPoint
Результат GPQuadrant

TryFindSafeSpot() публичный Метод

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
Результат bool

Описание свойств

AvoidanceCount публичное свойство

public int AvoidanceCount
Результат int

CreationVector публичное свойство

public Vector3,System CreationVector
Результат System.Vector3

MonsterCount публичное свойство

public int MonsterCount
Результат int