ScummVM API documentation
group5.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_GROUP5_H
23#define GNAP_GROUP5_H
24
25#include "gnap/debugger.h"
26#include "gnap/scenes/scenecore.h"
27
28namespace Gnap {
29
30enum {
31 kHS53Platypus = 0,
32 kHS53Device = 1,
33 kHS53PhoneKey1 = 2,
34 kHS53PhoneKey2 = 3,
35 kHS53PhoneKey3 = 4,
36 kHS53PhoneKey4 = 5,
37 kHS53PhoneKey5 = 6,
38 kHS53PhoneKey6 = 7,
39 kHS53PhoneKey7 = 8,
40 kHS53PhoneKey8 = 9,
41 kHS53PhoneKey9 = 10,
42 kHS53PhoneKey0 = 11,
43 kHS53PhoneKeySharp = 12,
44 kHS53PhoneKeyStar = 13,
45 kHS53PhoneExit = 14
46};
47
48/*****************************************************************************/
49
50class GnapEngine;
51
52class Scene53: public Scene {
53public:
55 ~Scene53() override {}
56
57 int init() override;
58 void updateHotspots() override;
59 void run() override;
60 void updateAnimations() override {};
61 void updateAnimationsCb() override {};
62
63private:
64 bool _isGnapPhoning;
65 int _currHandSequenceId;
66 int _callsMadeCtr;
67 uint _callsRndUsed;
68
69 int pressPhoneNumberButton(int phoneNumber, int buttonNum);
70 int getRandomCallIndex();
71 void runRandomCall();
72 void runChitChatLine();
73};
74
75} // End of namespace Gnap
76#endif // GNAP_GROUP5_H
Definition: gnap.h:222
Definition: group5.h:52
Definition: scenecore.h:31