OpenTTD Source 20241224-master-gf74b0cf984
|
StoryPage base class. More...
#include "company_type.h"
#include "story_type.h"
#include "timer/timer_game_calendar.h"
#include "gfx_type.h"
#include "vehicle_type.h"
#include "core/pool_type.hpp"
Go to the source code of this file.
Data Structures | |
struct | StoryPageButtonData |
Helper to construct packed "id" values for button-type StoryPageElement. More... | |
struct | StoryPageElement |
Struct about story page elements. More... | |
struct | StoryPage |
Struct about stories, current and completed. More... | |
Typedefs | |
typedef Pool< StoryPageElement, StoryPageElementID, 64, 64000 > | StoryPageElementPool |
typedef Pool< StoryPage, StoryPageID, 64, 64000 > | StoryPagePool |
Enumerations | |
enum | StoryPageElementType : uint8_t { SPET_TEXT = 0 , SPET_LOCATION , SPET_GOAL , SPET_BUTTON_PUSH , SPET_BUTTON_TILE , SPET_BUTTON_VEHICLE , SPET_END , INVALID_SPET = 0xFF } |
enum | StoryPageButtonFlags : uint8_t { SPBF_NONE = 0 , SPBF_FLOAT_LEFT = 1 << 0 , SPBF_FLOAT_RIGHT = 1 << 1 } |
Flags available for buttons. More... | |
enum | StoryPageButtonCursor : uint8_t { SPBC_MOUSE , SPBC_ZZZ , SPBC_BUOY , SPBC_QUERY , SPBC_HQ , SPBC_SHIP_DEPOT , SPBC_SIGN , SPBC_TREE , SPBC_BUY_LAND , SPBC_LEVEL_LAND , SPBC_TOWN , SPBC_INDUSTRY , SPBC_ROCKY_AREA , SPBC_DESERT , SPBC_TRANSMITTER , SPBC_AIRPORT , SPBC_DOCK , SPBC_CANAL , SPBC_LOCK , SPBC_RIVER , SPBC_AQUEDUCT , SPBC_BRIDGE , SPBC_RAIL_STATION , SPBC_TUNNEL_RAIL , SPBC_TUNNEL_ELRAIL , SPBC_TUNNEL_MONO , SPBC_TUNNEL_MAGLEV , SPBC_AUTORAIL , SPBC_AUTOELRAIL , SPBC_AUTOMONO , SPBC_AUTOMAGLEV , SPBC_WAYPOINT , SPBC_RAIL_DEPOT , SPBC_ELRAIL_DEPOT , SPBC_MONO_DEPOT , SPBC_MAGLEV_DEPOT , SPBC_CONVERT_RAIL , SPBC_CONVERT_ELRAIL , SPBC_CONVERT_MONO , SPBC_CONVERT_MAGLEV , SPBC_AUTOROAD , SPBC_AUTOTRAM , SPBC_ROAD_DEPOT , SPBC_BUS_STATION , SPBC_TRUCK_STATION , SPBC_ROAD_TUNNEL , SPBC_CLONE_TRAIN , SPBC_CLONE_ROADVEH , SPBC_CLONE_SHIP , SPBC_CLONE_AIRPLANE , SPBC_DEMOLISH , SPBC_LOWERLAND , SPBC_RAISELAND , SPBC_PICKSTATION , SPBC_BUILDSIGNALS , SPBC_END , INVALID_SPBC = 0xFF } |
Mouse cursors usable by story page buttons. More... | |
Functions | |
bool | IsValidStoryPageButtonCursor (StoryPageButtonCursor cursor) |
Checks if a StoryPageButtonCursor value is valid. | |
Variables | |
StoryPageElementPool | _story_page_element_pool |
StoryPagePool | _story_page_pool |
uint32_t | _story_page_element_next_sort_value |
uint32_t | _story_page_next_sort_value |
StoryPage base class.
Definition in file story_base.h.
typedef Pool<StoryPageElement, StoryPageElementID, 64, 64000> StoryPageElementPool |
Definition at line 20 of file story_base.h.
typedef Pool<StoryPage, StoryPageID, 64, 64000> StoryPagePool |
Definition at line 21 of file story_base.h.
enum StoryPageButtonCursor : uint8_t |
Mouse cursors usable by story page buttons.
Definition at line 50 of file story_base.h.
enum StoryPageButtonFlags : uint8_t |
Flags available for buttons.
Definition at line 42 of file story_base.h.
enum StoryPageElementType : uint8_t |
Definition at line 30 of file story_base.h.
|
inline |
Checks if a StoryPageButtonCursor value is valid.
wc | The value to check |
Definition at line 116 of file story_base.h.
Referenced by StoryPageButtonData::GetCursor().