ScummVM API documentation
console.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 BURIED_CONSOLE_H
23#define BURIED_CONSOLE_H
24
25#include "gui/debugger.h"
26
27#include "buried/navdata.h"
28
29namespace Buried {
30
31class BuriedEngine;
32class FrameWindow;
33
35public:
38
39 bool cmdGiveItem(int argc, const char **argv);
40 bool cmdRemoveItem(int argc, const char **argv);
41 bool cmdJumpEntry(int argc, const char **argv);
42 bool cmdCurLocation(int argc, const char **argv);
43 bool cmdAiCommentInfo(int argc, const char **argv);
44
45protected:
46 void postEnter();
47
48private:
49 BuriedEngine *_vm;
50
51 struct JumpEntry {
52 Common::String timeZoneName;
53 Common::String locationName;
54 Location location;
55 };
56
57 typedef Common::Array<JumpEntry> JumpEntryList;
58 JumpEntryList _jumpEntryList;
59 void loadJumpEntryList();
60
61 FrameWindow *getFrameWindow();
62 bool isPlaying() { return getFrameWindow() != 0; }
63
64 Location _jump;
65};
66
67} // End of namespace Buried
68
69#endif
Definition: console.h:34
Definition: buried.h:96
Definition: frame_window.h:35
Definition: str.h:59
Definition: debugger.h:41
Definition: navdata.h:32