ScummVM API documentation
scenecore.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 GNAP_SCENECORE_H
23 #define GNAP_SCENECORE_H
24 
25 #include "gnap/debugger.h"
26 
27 namespace Gnap {
28 
29 class GnapEngine;
30 
31 class Scene {
32 public:
33  Scene(GnapEngine *vm) : _vm(vm) {};
34  virtual ~Scene() {};
35 
36  void playRandomSound(int timerIndex);
37  bool clearKeyStatus();
38 
39  virtual int init() = 0;
40  virtual void updateHotspots() = 0;
41  virtual void run() = 0;
42  virtual void updateAnimations() = 0;
43  virtual void updateAnimationsCb() = 0;
44 
45 protected:
46  GnapEngine *_vm;
47 };
48 
49 class CutScene : public Scene {
50 public:
51  CutScene(GnapEngine *vm);
52  ~CutScene() override {};
53 
54  int init() override = 0;
55  void updateHotspots() override {}
56  void run() override;
57  void updateAnimations() override {}
58  void updateAnimationsCb() override {}
59 
60 protected:
61  int _itemsCount;
62  int _resourceIdArr[16];
63  int _sequenceCountArr[16];
64  int _sequenceIdArr[50];
65  bool _canSkip[16];
66 };
67 } // End of namespace Gnap
68 
69 #endif // GNAP_SCENECORE_H
Definition: scenecore.h:49
Definition: character.h:25
Definition: gnap.h:222
Definition: scenecore.h:31