C# 클래스 FlatRedBall.AI.Pathfinding.TileNodeNetwork

상속: NodeNetwork
파일 보기 프로젝트 열기: vchelaru/FlatRedBall 1 사용 예제들

공개 메소드들

메소드 설명
AddAndLinkTiledNode ( int x, int y ) : PositionedNode
AddAndLinkTiledNode ( int x, int y, DirectionalType directionalType ) : PositionedNode
AddAndLinkTiledNodeWorld ( float worldX, float worldY ) : PositionedNode
AreAdjacentTiles ( Microsoft &targetPosition, Microsoft &startPosition ) : bool
AreAdjacentTiles ( Microsoft &targetPosition, Microsoft &startPosition, bool ignoreCorners ) : bool
AttachNodeToNodeAtIndex ( PositionedNode node, int x, int y ) : void
EliminateCutCorners ( ) : void
EliminateCutCornersForNodeAtIndex ( int x, int y ) : void
FillCompletely ( ) : void
GetClosestNodeTo ( Microsoft &position ) : PositionedNode
GetClosestNodeTo ( float x, float y ) : PositionedNode
GetClosestUnoccupiedNodeTo ( Microsoft &targetPosition, Microsoft &startPosition ) : PositionedNode
GetClosestUnoccupiedNodeTo ( Microsoft &targetPosition, Microsoft &startPosition, bool ignoreCorners ) : PositionedNode
GetOccupiedTileLocation ( object occupier ) : Microsoft.Xna.Framework.Vector2
GetOccupier ( float x, float y ) : object
IndexToWorld ( int xIndex, int yIndex, float &worldX, float &worldY ) : void
IsTileOccupied ( int x, int y ) : bool
IsTileOccupied ( int x, int y, object &occupier ) : bool
IsTileOccupiedWorld ( float worldX, float worldY ) : bool
IsTileOccupiedWorld ( float worldX, float worldY, object &occupier ) : bool
OccupyTile ( int x, int y ) : void
OccupyTile ( int x, int y, object occupier ) : void
OccupyTileWorld ( float worldX, float worldY ) : void
OccupyTileWorld ( float worldX, float worldY, object occupier ) : void
RecalculateCostsForCostIndex ( int costIndex ) : void
Remove ( PositionedNode nodeToRemove ) : void
RemoveAndUnlinkNode ( Microsoft &positionToRemoveNodeFrom ) : void
SetCosts ( ) : void
TileNodeNetwork ( float xSeed, float ySeed, float gridSpacing, int numberOfXTiles, int numberOfYTiles, DirectionalType directionalType ) : System
TiledNodeAt ( int x, int y ) : PositionedNode
TiledNodeAtWorld ( float x, float y ) : PositionedNode
Unoccupy ( int x, int y ) : void
Unoccupy ( object occupier ) : void
UpdateNodeAccordingToCosts ( PositionedNode node ) : void
UpdateShapes ( ) : void
WorldToIndex ( float worldX, float worldY, int &xIndex, int &yIndex ) : void

비공개 메소드들

메소드 설명
GetTileOccupier ( int x, int y ) : object
TileNodeNetwork ( ) : System

메소드 상세

AddAndLinkTiledNode() 공개 메소드

public AddAndLinkTiledNode ( int x, int y ) : PositionedNode
x int
y int
리턴 PositionedNode

AddAndLinkTiledNode() 공개 메소드

public AddAndLinkTiledNode ( int x, int y, DirectionalType directionalType ) : PositionedNode
x int
y int
directionalType DirectionalType
리턴 PositionedNode

AddAndLinkTiledNodeWorld() 공개 메소드

public AddAndLinkTiledNodeWorld ( float worldX, float worldY ) : PositionedNode
worldX float
worldY float
리턴 PositionedNode

AreAdjacentTiles() 공개 메소드

public AreAdjacentTiles ( Microsoft &targetPosition, Microsoft &startPosition ) : bool
targetPosition Microsoft
startPosition Microsoft
리턴 bool

AreAdjacentTiles() 공개 메소드

public AreAdjacentTiles ( Microsoft &targetPosition, Microsoft &startPosition, bool ignoreCorners ) : bool
targetPosition Microsoft
startPosition Microsoft
ignoreCorners bool
리턴 bool

AttachNodeToNodeAtIndex() 공개 메소드

public AttachNodeToNodeAtIndex ( PositionedNode node, int x, int y ) : void
node PositionedNode
x int
y int
리턴 void

EliminateCutCorners() 공개 메소드

public EliminateCutCorners ( ) : void
리턴 void

EliminateCutCornersForNodeAtIndex() 공개 메소드

public EliminateCutCornersForNodeAtIndex ( int x, int y ) : void
x int
y int
리턴 void

FillCompletely() 공개 메소드

public FillCompletely ( ) : void
리턴 void

GetClosestNodeTo() 공개 메소드

public GetClosestNodeTo ( Microsoft &position ) : PositionedNode
position Microsoft
리턴 PositionedNode

GetClosestNodeTo() 공개 메소드

public GetClosestNodeTo ( float x, float y ) : PositionedNode
x float
y float
리턴 PositionedNode

GetClosestUnoccupiedNodeTo() 공개 메소드

public GetClosestUnoccupiedNodeTo ( Microsoft &targetPosition, Microsoft &startPosition ) : PositionedNode
targetPosition Microsoft
startPosition Microsoft
리턴 PositionedNode

GetClosestUnoccupiedNodeTo() 공개 메소드

public GetClosestUnoccupiedNodeTo ( Microsoft &targetPosition, Microsoft &startPosition, bool ignoreCorners ) : PositionedNode
targetPosition Microsoft
startPosition Microsoft
ignoreCorners bool
리턴 PositionedNode

GetOccupiedTileLocation() 공개 메소드

public GetOccupiedTileLocation ( object occupier ) : Microsoft.Xna.Framework.Vector2
occupier object
리턴 Microsoft.Xna.Framework.Vector2

GetOccupier() 공개 메소드

public GetOccupier ( float x, float y ) : object
x float
y float
리턴 object

IndexToWorld() 공개 메소드

public IndexToWorld ( int xIndex, int yIndex, float &worldX, float &worldY ) : void
xIndex int
yIndex int
worldX float
worldY float
리턴 void

IsTileOccupied() 공개 메소드

public IsTileOccupied ( int x, int y ) : bool
x int
y int
리턴 bool

IsTileOccupied() 공개 메소드

public IsTileOccupied ( int x, int y, object &occupier ) : bool
x int
y int
occupier object
리턴 bool

IsTileOccupiedWorld() 공개 메소드

public IsTileOccupiedWorld ( float worldX, float worldY ) : bool
worldX float
worldY float
리턴 bool

IsTileOccupiedWorld() 공개 메소드

public IsTileOccupiedWorld ( float worldX, float worldY, object &occupier ) : bool
worldX float
worldY float
occupier object
리턴 bool

OccupyTile() 공개 메소드

public OccupyTile ( int x, int y ) : void
x int
y int
리턴 void

OccupyTile() 공개 메소드

public OccupyTile ( int x, int y, object occupier ) : void
x int
y int
occupier object
리턴 void

OccupyTileWorld() 공개 메소드

public OccupyTileWorld ( float worldX, float worldY ) : void
worldX float
worldY float
리턴 void

OccupyTileWorld() 공개 메소드

public OccupyTileWorld ( float worldX, float worldY, object occupier ) : void
worldX float
worldY float
occupier object
리턴 void

RecalculateCostsForCostIndex() 공개 메소드

public RecalculateCostsForCostIndex ( int costIndex ) : void
costIndex int
리턴 void

Remove() 공개 메소드

public Remove ( PositionedNode nodeToRemove ) : void
nodeToRemove PositionedNode
리턴 void

RemoveAndUnlinkNode() 공개 메소드

public RemoveAndUnlinkNode ( Microsoft &positionToRemoveNodeFrom ) : void
positionToRemoveNodeFrom Microsoft
리턴 void

SetCosts() 공개 메소드

public SetCosts ( ) : void
리턴 void

TileNodeNetwork() 공개 메소드

public TileNodeNetwork ( float xSeed, float ySeed, float gridSpacing, int numberOfXTiles, int numberOfYTiles, DirectionalType directionalType ) : System
xSeed float
ySeed float
gridSpacing float
numberOfXTiles int
numberOfYTiles int
directionalType DirectionalType
리턴 System

TiledNodeAt() 공개 메소드

public TiledNodeAt ( int x, int y ) : PositionedNode
x int
y int
리턴 PositionedNode

TiledNodeAtWorld() 공개 메소드

public TiledNodeAtWorld ( float x, float y ) : PositionedNode
x float
y float
리턴 PositionedNode

Unoccupy() 공개 메소드

public Unoccupy ( int x, int y ) : void
x int
y int
리턴 void

Unoccupy() 공개 메소드

public Unoccupy ( object occupier ) : void
occupier object
리턴 void

UpdateNodeAccordingToCosts() 공개 메소드

public UpdateNodeAccordingToCosts ( PositionedNode node ) : void
node PositionedNode
리턴 void

UpdateShapes() 공개 메소드

public UpdateShapes ( ) : void
리턴 void

WorldToIndex() 공개 메소드

public WorldToIndex ( float worldX, float worldY, int &xIndex, int &yIndex ) : void
worldX float
worldY float
xIndex int
yIndex int
리턴 void