ScummVM API documentation
navigationscene.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_NAVIGATIONSCENE_H
23#define NEVERHOOD_NAVIGATIONSCENE_H
24
25#include "neverhood/neverhood.h"
26#include "neverhood/resourceman.h"
27#include "neverhood/scene.h"
28#include "neverhood/smackerplayer.h"
29
30namespace Neverhood {
31
32class NavigationScene : public Scene {
33public:
34 NavigationScene(NeverhoodEngine *vm, Module *parentModule, uint32 navigationListId, int navigationIndex, const byte *itemsTypes);
35 ~NavigationScene() override;
36 int getNavigationAreaType();
37 int getNavigationIndex() const { return _navigationIndex; }
38 bool isWalkingForward() const { return _isWalkingForward; }
39 bool isTurning() const { return _isTurning; }
40 int getFrameNumber() const { return _smackerPlayer->getFrameNumber(); }
41 uint32 getNavigationListId() const { return _navigationListId; }
42protected:
43 SmackerPlayer *_smackerPlayer;
44 bool _smackerDone;
45 NavigationList *_navigationList;
46 uint32 _navigationListId; // used for debugging
47 int _navigationIndex;
48 uint32 _smackerFileHash;
49 bool _interactive;
50 bool _isWalkingForward;
51 bool _isTurning;
52 bool _leaveSceneAfter;
53 const byte *_itemsTypes;
54 void update();
55 uint32 handleMessage(int messageNum, const MessageParam &param, Entity *sender);
56 void createMouseCursor();
57 void handleNavigation(const NPoint &mousePos);
58};
59
60} // End of namespace Neverhood
61
62#endif /* NEVERHOOD_NAVIGATIONSCENE_H */
Definition: array.h:52
Definition: entity.h:77
Definition: module.h:45
Definition: navigationscene.h:32
Definition: neverhood.h:69
Definition: scene.h:41
Definition: smackerplayer.h:61
Definition: entity.h:42
Definition: graphics.h:32