ScummVM API documentation
smackerscene.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 NEVERHOOD_SMACKERSCENE_H
23#define NEVERHOOD_SMACKERSCENE_H
24
25#include "neverhood/neverhood.h"
26#include "neverhood/resourceman.h"
27#include "neverhood/scene.h"
28
29namespace Neverhood {
30
31class SmackerScene : public Scene {
32public:
33 SmackerScene(NeverhoodEngine *vm, Module *parentModule, bool doubleSurface, bool canSkip, bool canAbort);
34 ~SmackerScene() override;
35 void setFileHash(uint32 fileHash);
36 void setFileHashList(const uint32 *fileHashList);
37 void nextVideo();
38 uint32 getSmackerFileHash() const { return _fileHash[0]; }
39protected:
40 bool _doubleSurface;
41 bool _canSkip;
42 bool _canAbort;
43 bool _videoPlayedBefore;
44 bool _playNextVideoFlag;
45 int _fileHashListIndex;
46 const uint32 *_fileHashList;
47 uint32 _fileHash[2];
48 void update();
49 uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
50};
51
52} // End of namespace Neverhood
53
54#endif /* NEVERHOOD_SMACKERSCENE_H */
Definition: entity.h:77
Definition: module.h:45
Definition: neverhood.h:69
Definition: scene.h:41
Definition: smackerscene.h:31
Definition: entity.h:42