OpenTTD Source: src/league_type.h File Reference

OpenTTD Source 15.0-RC2

Data Structures | Typedefs | Enumerations
league_type.h File Reference

basic types related to league tables More...

`#include "core/pool_type.hpp"`

Go to the source code of this file.

## Data Structures
struct | Link

## Typedefs
typedef uint32_t | LinkTargetID
| Contains either tile, industry ID, town ID, story page ID or company ID.
using | LeagueTableID = PoolID< uint8_t, struct LeagueTableIDTag, 255, 0xFF >
| ID of a league table.
using | LeagueTableElementID = PoolID< uint16_t, struct LeagueTableElementIDTag, 64000, 0xFFFF >
| ID of a league table.

## Enumerations
enum | LinkType : uint8_t { LT_NONE = 0 , LT_TILE = 1 , LT_INDUSTRY = 2 , LT_TOWN = 3 , LT_COMPANY = 4 , LT_STORY_PAGE = 5 }
| Types of the possible link targets. More...

## Detailed Description

basic types related to league tables

Definition in file league_type.h.

## Typedef Documentation

## ◆ LeagueTableElementID

using LeagueTableElementID = PoolID<uint16_t, struct LeagueTableElementIDTag, 64000, 0xFFFF>

ID of a league table.

Definition at line 38 of file league_type.h.

## ◆ LeagueTableID

using LeagueTableID = PoolID<uint8_t, struct LeagueTableIDTag, 255, 0xFF>

ID of a league table.

Definition at line 35 of file league_type.h.

## ◆ LinkTargetID

typedef uint32_t LinkTargetID

Contains either tile, industry ID, town ID, story page ID or company ID.

Definition at line 25 of file league_type.h.

## Enumeration Type Documentation

## ◆ LinkType

enum LinkType : uint8_t

Types of the possible link targets.

Enumerator
LT_NONE | No link.
LT_TILE | Link a tile.
LT_INDUSTRY | Link an industry.
LT_TOWN | Link a town.
LT_COMPANY | Link a company.
LT_STORY_PAGE | Link a story page.

Definition at line 16 of file league_type.h.