ScummVM API documentation
icb.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  * Additional copyright for this file:
8  * Copyright (C) 1999-2000 Revolution Software Ltd.
9  * This code is based on source code created by Revolution Software,
10  * used with permission.
11  *
12  * This program is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation, either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program. If not, see <http://www.gnu.org/licenses/>.
24  *
25  */
26 
27 #ifndef ICB_H
28 #define ICB_H
29 
30 #include "engines/advancedDetector.h"
31 #include "engines/engine.h"
32 
33 #include "engines/icb/detection.h"
34 
35 #include "common/random.h"
36 
37 namespace ICB {
38 
39 class IcbEngine : public Engine {
40 public:
41  IcbEngine(OSystem *syst, const IcbGameDescription *gameDescIcb);
42  virtual ~IcbEngine();
43 
44  Common::RandomSource *getRandomSource() { return _randomSource; }
45  static Common::Array<Common::Keymap *> initKeymapsIcb(const char *target);
46  static Common::Array<Common::Keymap *> initKeymapsEldorado(const char *target);
47  bool hasFeature(EngineFeature f) const override;
48  IcbGameType getGameType() { return _gameType; }
49 
50 protected:
51  // Engine APIs
52  Common::Error run() override;
53 
54 private:
55  IcbGameType _gameType;
56 
57  void initGfx(bool hwAccel, bool fullscreen);
58  void mainLoop();
59  Common::RandomSource *_randomSource;
60  const ADGameDescription *_gameDescription;
61 };
62 
63 extern IcbEngine *g_icb;
64 
65 } // End of namespace ICB
66 
67 #endif // ICB_H
Definition: detection.h:34
EngineFeature
Definition: engine.h:250
Definition: error.h:84
Definition: array.h:52
Definition: advancedDetector.h:120
Definition: random.h:44
Definition: actor.h:32
bool hasFeature(EngineFeature f) const override
Definition: icb.h:39
Definition: system.h:175
Definition: engine.h:143
Common::Error run() override