Arc Class |
Namespace: Pathfinding
[SerializableAttribute] public class Arc
The Arc type exposes the following members.
Name | Description | |
---|---|---|
Cost |
Gets the cost of moving through the arc.
Can be overriden when not simply equals to Weight*Length.
| |
EndNode |
Gets/Sets the node to which the arc ends.
| |
Length |
Gets arc's length.
| |
Passable |
Gets/Sets the functional state of the arc.
'true' means that the arc is in its normal state.
'false' means that the arc will not be taken into account (as if it did not exist or if its cost were infinite).
| |
StartNode |
Gets/Sets the node from which the arc starts.
| |
Weight |
Sets/Gets the weight of the arc.
This value is used to determine the cost of moving through the arc.
|
Name | Description | |
---|---|---|
CalculateLength |
Performs the calculous that returns the arc's length
Can be overriden for derived types of arcs that are not linear.
| |
Equals |
Object.Equals override.
Tells if two arcs are equal by comparing StartNode and EndNode.
(Overrides ObjectEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Object.GetHashCode override.
(Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Returns the textual description of the arc.
object.ToString() override.
(Overrides ObjectToString.) |