24 extern uint32 _story_page_element_next_sort_value;
25 extern uint32 _story_page_next_sort_value;
66 #define FOR_ALL_STORY_PAGE_ELEMENTS_FROM(var, start) FOR_ALL_ITEMS_FROM(StoryPageElement, story_page_element_index, var, start) 67 #define FOR_ALL_STORY_PAGE_ELEMENTS(var) FOR_ALL_STORY_PAGE_ELEMENTS_FROM(var, 0) 87 if (!this->CleaningPool()) {
89 FOR_ALL_STORY_PAGE_ELEMENTS(spe) {
90 if (spe->
page == this->index)
delete spe;
97 #define FOR_ALL_STORY_PAGES_FROM(var, start) FOR_ALL_ITEMS_FROM(StoryPage, story_page_index, var, start) 98 #define FOR_ALL_STORY_PAGES(var) FOR_ALL_STORY_PAGES_FROM(var, 0) StoryPageElement()
We need an (empty) constructor so struct isn't zeroed (as C++ standard states)
Helper template class that makes basic properties of given enumeration type visible from outsize...
StoryPageID page
Id of the page which the page element belongs to.
~StoryPageElement()
(Empty) destructor has to be defined else operator delete might be called with NULL parameter ...
uint32 sort_value
A number that increases for every created story page element. Used for sorting. The id of a story pag...
Date date
Date when the page was created.
~StoryPage()
(Empty) destructor has to be defined else operator delete might be called with NULL parameter ...
char * title
Title of story page.
Defintion of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle...
basic types related to story pages
Struct about story page elements.
uint32 referenced_id
Id of referenced object (location, goal etc.)
Struct about stories, current and completed.
Informative template class exposing basic enumeration properties used by several other templates belo...
uint32 sort_value
A number that increases for every created story page. Used for sorting. The id of a story page is the...
CompanyByte company
StoryPage is for a specific company; INVALID_COMPANY if it is global.
Base class for all PoolItems.
Base class for all pools.
TinyEnumT< StoryPageElementType > StoryPageElementTypeByte
typedefing-enumification of Direction
An element that references a goal.
Types related to companies.
Types related to the dates in OpenTTD.
int32 Date
The type to store our dates in.
static void free(const void *ptr)
Version of the standard free that accepts const pointers.
An element that references a tile along with a one-line text.
char * text
Static content text of page element.
StoryPageElementTypeByte type
Type of page element.
StoryPage()
We need an (empty) constructor so struct isn't zeroed (as C++ standard states)
uint16 StoryPageID
ID of a story page.