ScummVM API documentation
base_access_mgr.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 /*
23  * This file is based on WME.
24  * http://dead-code.org/redir.php?target=wme
25  * Copyright (c) 2003-2013 Jan Nedoma and contributors
26  */
27 
28 #ifndef WINTERMUTE_BASE_ACCESS_MGR_H
29 #define WINTERMUTE_BASE_ACCESS_MGR_H
30 
31 #include "engines/wintermute/base/base.h"
32 #include "engines/wintermute/dctypes.h"
33 
34 #include "common/rect.h"
35 #include "common/text-to-speech.h"
36 
37 namespace Wintermute {
38 
39 class BaseObject;
40 
41 class BaseAccessMgr : public BaseClass {
42 public:
43  BaseAccessMgr(BaseGame *inGame);
44  virtual ~BaseAccessMgr();
45 
46  bool _ttsAvailable;
47  bool initialize();
48  bool speak(const char *str, TTTSType type);
49  bool stop();
50  BaseObject *getNextObject();
51  BaseObject *getPrevObject();
52 
53  bool initLoop();
54  bool displayBeforeGUI();
55  bool displayAfterGUI();
56  bool setHintRect(Common::Rect32 *hintRect = nullptr, bool afterGUI = false);
57  bool setActiveObject(BaseObject *activeObj = nullptr);
58  BaseObject *getActiveObject();
59  bool _ctrlPressed;
60 
61 private:
62  TTTSType _playingType;
63  bool displayInternal();
65  BaseObject *_activeObject;
66  BaseObject *_prevActiveObject;
67  Common::Rect32 _hintRect;
68  bool _hintAfterGUI;
69 };
70 
71 #endif
72 
73 } // End of namespace Wintermute
Definition: base_game.h:79
Definition: rect.h:526
Definition: base_access_mgr.h:41
Definition: text-to-speech.h:150
Definition: base.h:43
Definition: base_object.h:49
Definition: achievements_tables.h:27