OpenTTD Source 20241224-master-gee860a5c8e
|
Declaration of link graph classes used for cargo distribution. More...
#include "../core/pool_type.hpp"
#include "../station_base.h"
#include "../cargotype.h"
#include "../timer/timer_game_economy.h"
#include "../saveload/saveload.h"
#include "linkgraph_type.h"
#include <utility>
Go to the source code of this file.
Data Structures | |
class | LinkGraph |
A connected component of a link graph. More... | |
struct | LinkGraph::BaseEdge |
An edge in the link graph. More... | |
struct | LinkGraph::BaseNode |
Node of the link graph. More... | |
Typedefs | |
typedef Pool< LinkGraph, LinkGraphID, 32, 0xFFFF > | LinkGraphPool |
Type of the pool for link graph components. | |
Variables | |
LinkGraphPool | _link_graph_pool |
The actual pool with link graphs. | |
Declaration of link graph classes used for cargo distribution.
Definition in file linkgraph.h.
typedef Pool<LinkGraph, LinkGraphID, 32, 0xFFFF> LinkGraphPool |
Type of the pool for link graph components.
Each station can be in at up to 32 link graphs. So we allow for plenty of them to be created.
Definition at line 27 of file linkgraph.h.