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
파일 보기 프로젝트 열기: herbfunk/Funky 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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