23extern StoryPageElementPool _story_page_element_pool;
24extern StoryPagePool _story_page_pool;
25extern uint32_t _story_page_element_next_sort_value;
26extern uint32_t _story_page_next_sort_value;
122 uint32_t referenced_id = 0;
143struct StoryPageElement : StoryPageElementPool::PoolItem<&_story_page_element_pool> {
162struct StoryPage : StoryPagePool::PoolItem<&_story_page_pool> {
Container for an encoded string, created by GetEncodedString.
StrongType::Typedef< int32_t, DateTag< struct Calendar >, StrongType::Compare, StrongType::Integer > Date
Types related to companies.
Types related to the graphics and/or input devices.
Colours
One of 16 base colours used for companies and windows/widgets.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
StoryPageElementType
Each story page element is one of these types.
@ ButtonTile
A button that allows the player to select a tile, and triggers an event with the tile.
@ Invalid
Invalid story page element type.
@ ButtonVehicle
A button that allows the player to select a vehicle, and triggers an event with the vehicle.
@ ButtonPush
A push button that triggers an immediate event.
@ Location
An element that references a tile along with a one-line text.
StoryPageButtonCursor
Mouse cursors usable by story page buttons.
@ Desert
Use the Desert cursor.
@ BuyLand
Use the Buy Land cursor.
@ River
Use the River cursor.
@ AutoRail
Use the Auto Rail cursor.
@ LowerLand
Use the Lower Land cursor.
@ TruckStation
Use the Truck Station cursor.
@ ConvertMono
Use the Convert Mono cursor.
@ PickStation
Use the Pick Station cursor.
@ MonoDepot
Use the Mono Depot cursor.
@ Transmitter
Use the Transmitter cursor.
@ Tree
Use the Tree cursor.
@ Demolish
Use the Demolish cursor.
@ AutoMono
Use the Auto Mono cursor.
@ BuildSignals
Use the Build Signals cursor.
@ ConvertRail
Use the Convert Rail cursor.
@ RockyArea
Use the RockyArea cursor.
@ AutoTram
Use the Auto Tram cursor.
@ RailDepot
Use the Rail Depot cursor.
@ Query
Use the Query cursor.
@ RailStation
Use the Rail Station cursor.
@ RoadDepot
Use the Road Depot cursor.
@ TunnelElrail
Use the Tunnel Elrail cursor.
@ MaglevDepot
Use the Maglev Depot cursor.
@ CloneAirplane
Use the Clone Airplane cursor.
@ CloneRoadVeh
Use the Clone Road Veh cursor.
@ RaiseLand
Use the Raise Land cursor.
@ ConvertMaglev
Use the Convert Maglev cursor.
@ CloneShip
Use the Clone Ship cursor.
@ RoadTunnel
Use the Road Tunnel cursor.
@ ShipDepot
Use the Ship Depot cursor.
@ TunnelRail
Use the Tunnel Rail cursor.
@ Canal
Use the Canal cursor.
@ CloneTrain
Use the Clone Train cursor.
@ TunnelMaglev
Use the Tunnel Maglev cursor.
@ Buoy
Use the Buoy cursor.
@ AutoRoad
Use the Auto Road cursor.
@ Lock
Use the Lock cursor.
@ BusStation
Use the Bus Station cursor.
@ Aqueduct
Use the Aqueduct cursor.
@ TunnelMono
Use the Tunnel Mono cursor.
@ ConvertElrail
Use the Convert Elrail cursor.
@ AutoElrail
Use the Auto Elrail cursor.
@ LevelLand
Use the Level Land cursor.
@ Bridge
Use the Bridge cursor.
@ ElrailDepot
Use the Elrail Depot cursor.
@ Mouse
Use the Mouse cursor.
@ AutoMaglev
Use the Auto Maglev cursor.
StoryPageButtonFlag
Flags available for buttons.
@ FloatLeft
Button will float on the left.
@ FloatRight
Button will float on the right.
EnumBitSet< StoryPageButtonFlag, uint8_t > StoryPageButtonFlags
Bitset of StoryPageButtonFlag elements.
bool IsValidStoryPageButtonCursor(StoryPageButtonCursor cursor)
Checks if a StoryPageButtonCursor value is valid.
Basic types related to story pages.
PoolID< uint16_t, struct StoryPageIDTag, 64000, 0xFFFF > StoryPageID
ID of a story page.
PoolID< uint16_t, struct StoryPageElementIDTag, 64000, 0xFFFF > StoryPageElementID
ID of a story page element.
Types related to strings.
All airport-related information.
Struct about goals, current and completed.
Defines the internal data of a functional industry.
PoolItem(StoryPageElementID index)
const StoryPageElementID index
Base class for all pools.
Helper to construct packed "id" values for button-type StoryPageElement.
Colours GetColour() const
Get the button background colour.
VehicleType GetVehicleType() const
Get the type of vehicles that are accepted by the button.
void SetColour(Colours button_colour)
Set the button background colour.
bool ValidateVehicleType() const
Verity that the data stored a valid VehicleType value.
StoryPageButtonFlags GetFlags() const
Get the button flags.
bool ValidateFlags() const
Verify that valid flags were set.
bool ValidateColour() const
Verify that the data stored a valid Colour value.
void SetVehicleType(VehicleType vehtype)
Set the type of vehicles that are accepted by the button.
StoryPageButtonCursor GetCursor() const
Get the mouse cursor used while waiting for input for the button.
bool ValidateCursor() const
Verify that the data stores a valid StoryPageButtonCursor value.
void SetCursor(StoryPageButtonCursor cursor)
Set the mouse cursor used while waiting for input for the button.
void SetFlags(StoryPageButtonFlags flags)
Set the button flags.
Struct about story page elements.
uint32_t referenced_id
Id of referenced object (location, goal etc.).
EncodedString text
Static content text of page element.
uint32_t sort_value
A number that increases for every created story page element. Used for sorting. The id of a story pag...
StoryPageElementType type
Type of page element.
~StoryPageElement()
(Empty) destructor has to be defined else operator delete might be called with nullptr parameter
StoryPageID page
Id of the page which the page element belongs to.
Struct about stories, current and completed.
EncodedString title
Title of story page.
uint32_t sort_value
A number that increases for every created story page. Used for sorting. The id of a story page is the...
CompanyID company
StoryPage is for a specific company; CompanyID::Invalid() if it is global.
~StoryPage()
Delete all of our StoryPageElements.
TimerGameCalendar::Date date
Date when the page was created.
Representation of a waypoint.
Definition of the game-calendar-timer.
Types related to vehicles.
VehicleType
Available vehicle types.