OpenTTD: LinkGraph::BaseEdge Struct Reference

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- Data Structures
- Class Hierarchy
- Data Fields

Public Member Functions | Data Fields
LinkGraph::BaseEdge Struct Reference

An edge in the link graph. More...

`#include <linkgraph.h>`

## Public Member Functions
void | Init ()
| Create an edge.

## Data Fields
uint | capacity
| Capacity of the link.
uint | usage
| Usage of the link.
Date | last_unrestricted_update
| When the unrestricted part of the link was last updated.
Date | last_restricted_update
| When the restricted part of the link was last updated.
NodeID | next_edge
| Destination of next valid edge starting at the same source node.

## Detailed Description

An edge in the link graph.

Corresponds to a link between two stations or at least the distance between them. Edges from one node to itself contain the ID of the opposite Node of the first active edge (i.e. not just distance) in the column as next_edge.

Definition at line 63 of file linkgraph.h.

The documentation for this struct was generated from the following files:

- src/linkgraph/linkgraph.h
- src/linkgraph/linkgraph.cpp