ScummVM API documentation
spacebar.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 BAGEL_SPACEBAR_H
23 #define BAGEL_SPACEBAR_H
24 
25 #include "bagel/bagel.h"
26 #include "bagel/baglib/bagel.h"
27 #include "bagel/spacebar/bibble_window.h"
28 
29 namespace Bagel {
30 namespace SpaceBar {
31 
32 class SpaceBarEngine : public BagelEngine, public CBagel {
33 private:
34  ErrorCode InitializeSoundSystem(uint16 nChannels = 1, uint32 nFreq = 11025, uint16 nBitsPerSample = 8);
35  ErrorCode ShutDownSoundSystem();
36 
37 protected:
38  // Engine APIs
39  Common::Error run() override;
40 
41  ErrorCode initialize() override;
42  ErrorCode shutdown() override;
43  bool shouldQuit() const override {
44  return BagelEngine::shouldQuit();
45  }
46 
47 public:
48  CBetArea g_cBetAreas[BIBBLE_NUM_BET_AREAS];
49  const CBofRect viewPortRect = CBofRect(80, 10, 559, 369);
50  CBofRect viewRect;
51 
52 public:
53  SpaceBarEngine(OSystem *syst, const ADGameDescription *gameDesc);
54  ~SpaceBarEngine() override;
55  void initializePath(const Common::FSNode &gamePath) override;
56 };
57 
58 extern SpaceBarEngine *g_engine;
59 
60 } // namespace SpaceBar
61 } // namespace Bagel
62 
63 #endif
ErrorCode initialize() override
Definition: error.h:84
Definition: advancedDetector.h:163
Common::Error run() override
Definition: bibble_window.h:58
Definition: rect.h:36
Engine * g_engine
Definition: spacebar.h:32
static bool shouldQuit()
Definition: bagel.h:35
Definition: fs.h:69
Definition: bagel.h:31
ErrorCode shutdown() override
Definition: system.h:161
Definition: bagel.h:73
void initializePath(const Common::FSNode &gamePath) override