OpenTTD

story_type.h
Go to the documentation of this file.
1 /* $Id: story_type.h 25371 2013-06-09 13:18:37Z rubidium $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
9
12 #ifndef STORY_TYPE_H
13 #define STORY_TYPE_H
14
15 #include "core/enum_type.hpp"
16
17 typedef uint16 StoryPageElementID;
18 typedef uint16 StoryPageID;
19 struct StoryPageElement;
20 struct StoryPage;
21
22 extern StoryPageElementID _new_story_page_element_id;
23 extern StoryPageID _new_story_page_id;
24 static const StoryPageElementID INVALID_STORY_PAGE_ELEMENT = 0xFFFF;
25 static const StoryPageID INVALID_STORY_PAGE = 0xFFFF;
26
27 #endif /* STORY_TYPE_H */
28
enum_type.hpp
Type (helpers) for enums.
StoryPageElement
Struct about story page elements.
Definition: story_base.h:47
StoryPage
Struct about stories, current and completed.
Definition: story_base.h:70
StoryPageElementID
uint16 StoryPageElementID
ID of a story page element.
Definition: story_type.h:17
INVALID_STORY_PAGE_ELEMENT
static const StoryPageElementID INVALID_STORY_PAGE_ELEMENT
Constant representing a non-existing story page element.
Definition: story_type.h:24
INVALID_STORY_PAGE
static const StoryPageID INVALID_STORY_PAGE
Constant representing a non-existing story page.
Definition: story_type.h:25
StoryPageID
uint16 StoryPageID
ID of a story page.
Definition: story_type.h:18