ScummVM API documentation
qd_game_end.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef QDENGINE_QDCORE_QD_GAME_END_H
23#define QDENGINE_QDCORE_QD_GAME_END_H
24
25#include "qdengine/parser/xml_fwd.h"
26#include "qdengine/qdcore/qd_conditional_object.h"
27
28namespace QDEngine {
29
32public:
33 qdGameEnd();
34 qdGameEnd(const qdGameEnd &end);
35
36 qdGameEnd &operator = (const qdGameEnd &end);
37
38 ~qdGameEnd();
39
40 const char *interface_screen() const {
41 return _interface_screen.c_str();
42 }
43 bool has_interface_screen() const {
44 return !_interface_screen.empty();
45 }
46 void set_interface_screen(const char *name) {
47 if (name) _interface_screen = name;
48 else _interface_screen.clear();
49 }
50
52
53 int named_object_type() const {
54 return QD_NAMED_OBJECT_GAME_END;
55 };
56
57 bool load_script(const xml::tag *p);
58 bool save_script(Common::WriteStream &fh, int indent = 0) const;
59
60private:
61
63
66 Common::String _interface_screen;
67};
68
69} // namespace QDEngine
70
71#endif // QDENGINE_QDCORE_QD_GAME_END_H
Definition: str.h:59
Definition: stream.h:77
Объект с условиями.
Definition: qd_conditional_object.h:37
trigger_start_mode
Варианты старта триггера.
Definition: qd_conditional_object.h:122
Концовка игры.
Definition: qd_game_end.h:31
int named_object_type() const
Возвращает тип объекта.
Definition: qd_game_end.h:53
qdConditionalObject::trigger_start_mode trigger_start()
Активация триггера.
const char * name() const
Возвращает имя объекта.
Definition: qd_named_object_base.h:40
XML тег.
Definition: xml_tag.h:33
Базовый класс для игровых ресурсов.
Definition: console.h:28