Class Algorithms.NodeConnections<TNode>
Describes the 4-way connections of a node.
Inherited Members
Namespace: SadConsole
Assembly: SadConsole.dll
Syntax
public class Algorithms.NodeConnections<TNode>
Type Parameters
Name | Description |
---|---|
TNode | The type of object the node and its connections are. |
Constructors
NodeConnections()
Creates a new instance of this object with all connections set to null.
Declaration
public NodeConnections()
NodeConnections(TNode, TNode, TNode, TNode, bool, bool, bool, bool)
Creates a new instance of this object with the specified connections.
Declaration
public NodeConnections(TNode west, TNode east, TNode north, TNode south, bool isWest, bool isEast, bool isNorth, bool isSouth)
Parameters
Type | Name | Description |
---|---|---|
TNode | west | The west connection. |
TNode | east | The east connection. |
TNode | north | The north connection. |
TNode | south | The south connection. |
bool | isWest | When true indicates the West connection is valid; otherwise false. |
bool | isEast | When true indicates the East connection is valid; otherwise false. |
bool | isNorth | When true indicates the North connection is valid; otherwise false. |
bool | isSouth | When true indicates the South connection is valid; otherwise false. |
Fields
East
The east or right node.
Declaration
public TNode? East
Field Value
Type | Description |
---|---|
TNode |
HasEast
Declaration
public bool HasEast
Field Value
Type | Description |
---|---|
bool |
HasNorth
Declaration
public bool HasNorth
Field Value
Type | Description |
---|---|
bool |
HasSouth
Declaration
public bool HasSouth
Field Value
Type | Description |
---|---|
bool |
HasWest
Declaration
public bool HasWest
Field Value
Type | Description |
---|---|
bool |
North
The north or up node.
Declaration
public TNode? North
Field Value
Type | Description |
---|---|
TNode |
South
The south or down node.
Declaration
public TNode? South
Field Value
Type | Description |
---|---|
TNode |
West
The west or left node.
Declaration
public TNode? West
Field Value
Type | Description |
---|---|
TNode |