ScummVM API documentation
cryo.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 CRYO_CRYO_H
23#define CRYO_CRYO_H
24
25#include "common/scummsys.h"
26#include "common/config-manager.h"
27#include "common/debug.h"
28#include "common/debug-channels.h"
29#include "common/error.h"
30#include "common/random.h"
31#include "engines/engine.h"
32#include "gui/debugger.h"
33#include "graphics/surface.h"
34#include "graphics/screen.h"
35
36#include "cryo/eden.h"
37#include "cryo/debugger.h"
38
40
41namespace Cryo {
42
43class Console;
44
45// our engine debug channels
46enum {
47 kCryoDebugExample = 1 << 0,
48 kCryoDebugExample2 = 1 << 1
49 // next new channel must be 1 << 2 (4)
50 // the current limitation is 32 debug channels (1 << 31 is the last one)
51};
52
53class CryoEngine : public Engine {
54public:
55 CryoEngine(OSystem *syst, const ADGameDescription *gameDesc);
56 ~CryoEngine() override;
57
58 Common::Error run() override;
59 bool hasFeature(EngineFeature f) const override;
60
61 // Detection related functions
62 const ADGameDescription *_gameDescription;
63 const char *getGameId() const;
64 Common::Platform getPlatform() const;
65 bool isDemo() const;
66
67 // We need random numbers
69
70 Graphics::Surface _screen;
71 EdenGame *_game;
72
73 View *_screenView;
74 volatile int32 _timerTicks;
75
76 bool _showHotspots;
77
78 void pollEvents();
79
80 void hideMouse();
81 void showMouse();
82 void getMousePosition(int16 *x, int16 *y);
83 void setMousePosition(int16 x, int16 y);
84 bool isMouseButtonDown();
85
86private:
87 int _mouseButton;
88};
89
90extern CryoEngine *g_ed;
91
92} // End of namespace Cryo
93
94#endif
Definition: error.h:81
Definition: random.h:44
Definition: cryo.h:53
Common::Error run() override
bool hasFeature(EngineFeature f) const override
Definition: eden.h:44
Definition: cryolib.h:47
Definition: engine.h:149
EngineFeature
Definition: engine.h:282
Definition: system.h:166
Platform
Definition: platform.h:93
Definition: advancedDetector.h:164
Definition: surface.h:67