24 extern uint32_t _story_page_element_next_sort_value;
25 extern uint32_t _story_page_next_sort_value;
44 SPBF_FLOAT_LEFT = 1 << 0,
45 SPBF_FLOAT_RIGHT = 1 << 1,
118 return cursor < SPBC_END;
123 uint32_t referenced_id;
134 bool ValidateFlags()
const;
183 if (spe->page == this->index)
delete spe;
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
Types related to companies.
Owner
Enum for all companies/owners.
Types related to the graphics and/or input devices.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
StoryPageButtonFlags
Flags available for buttons.
@ SPET_LOCATION
An element that references a tile along with a one-line text.
@ SPET_GOAL
An element that references a goal.
@ SPET_BUTTON_PUSH
A push button that triggers an immediate event.
@ SPET_BUTTON_TILE
A button that allows the player to select a tile, and triggers an event with the tile.
@ SPET_TEXT
A text element.
@ SPET_BUTTON_VEHICLE
A button that allows the player to select a vehicle, and triggers an event wih the vehicle.
StoryPageButtonCursor
Mouse cursors usable by story page buttons.
bool IsValidStoryPageButtonCursor(StoryPageButtonCursor cursor)
Checks if a StoryPageButtonCursor value is valid.
basic types related to story pages
uint16_t StoryPageID
ID of a story page.
Base class for all PoolItems.
static bool CleaningPool()
Returns current state of pool cleaning - yes or no.
static Pool::IterateWrapper< Titem > Iterate(size_t from=0)
Returns an iterable ensemble of all valid Titem.
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.
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.
Struct about story page elements.
uint32_t referenced_id
Id of referenced object (location, goal etc.)
std::string 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
StoryPageElement()
We need an (empty) constructor so struct isn't zeroed (as C++ standard states)
StoryPageID page
Id of the page which the page element belongs to.
Struct about stories, current and completed.
uint32_t sort_value
A number that increases for every created story page. Used for sorting. The id of a story page is the...
StoryPage()
We need an (empty) constructor so struct isn't zeroed (as C++ standard states)
CompanyID company
StoryPage is for a specific company; INVALID_COMPANY if it is global.
std::string title
Title of story page.
~StoryPage()
(Empty) destructor has to be defined else operator delete might be called with nullptr parameter
TimerGameCalendar::Date date
Date when the page was created.
Templated helper to make a type-safe 'typedef' representing a single POD value.
Definition of the game-calendar-timer.
Types related to vehicles.
VehicleType
Available vehicle types.