C# Class NodeManager, Corsair

Afficher le fichier Open project: Final-Parsec/Corsair Class Usage Examples

Méthodes publiques

Свойство Type Description
nodes ].Node[
size_x int
size_y int

Méthodes publiques

Méthode Description
BlockNode ( Vector3 position ) : bool
CorrectInitialPosition ( Vector3 vector ) : Vector3

Corrects the Y position of the Vector3 to layer correctly with the rest of the map. Uses the original Y value of the vector.

CorrectPosition ( Vector3 vector ) : Vector3

Corrects the Y position of the Vector3 to layer correctly with the rest of the map. Does not use the original Y value of the vecotor.

GetClosestNode ( Vector3 location ) : Node

Gets the tile from location.

GetDestinationNode ( ) : Node
GetNodeFromLocation ( Vector3 location ) : Node

Gets the tile from location.

GetSpawnNodes ( ) : Node[]
NodeManager ( ) : System
UnBlockNode ( Vector3 position ) : void

Private Methods

Méthode Description
BuildNodes ( ) : void
ConnectNodes ( ) : void
MakeNodes ( ) : void
SetGridPosition ( ) : void
SetGridSize ( ) : void

Method Details

BlockNode() public méthode

public BlockNode ( Vector3 position ) : bool
position Vector3
Résultat bool

CorrectInitialPosition() public méthode

Corrects the Y position of the Vector3 to layer correctly with the rest of the map. Uses the original Y value of the vector.
public CorrectInitialPosition ( Vector3 vector ) : Vector3
vector Vector3 The original position of the object
Résultat Vector3

CorrectPosition() public méthode

Corrects the Y position of the Vector3 to layer correctly with the rest of the map. Does not use the original Y value of the vecotor.
public CorrectPosition ( Vector3 vector ) : Vector3
vector Vector3 The original position of the object
Résultat Vector3

GetClosestNode() public méthode

Gets the tile from location.
public GetClosestNode ( Vector3 location ) : Node
location Vector3
Résultat Node

GetDestinationNode() public méthode

public GetDestinationNode ( ) : Node
Résultat Node

GetNodeFromLocation() public méthode

Gets the tile from location.
public GetNodeFromLocation ( Vector3 location ) : Node
location Vector3
Résultat Node

GetSpawnNodes() public méthode

public GetSpawnNodes ( ) : Node[]
Résultat Node[]

NodeManager() public méthode

public NodeManager ( ) : System
Résultat System

UnBlockNode() public méthode

public UnBlockNode ( Vector3 position ) : void
position Vector3
Résultat void

Property Details

nodes public_oe property

public Node[,] nodes
Résultat ].Node[

size_x public_oe property

public int size_x
Résultat int

size_y public_oe property

public int size_y
Résultat int