ScummVM API documentation
tunnelpod.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  * Additional copyright for this file:
8  * Copyright (C) 1995-2013 Presto Studios, Inc.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19 
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef PEGASUS_NEIGHBORHOOD_MARS_TUNNELPOD_H
26 #define PEGASUS_NEIGHBORHOOD_MARS_TUNNELPOD_H
27 
28 #include "pegasus/chase.h"
29 #include "pegasus/movie.h"
30 
31 namespace Pegasus {
32 
33 class Mars;
34 
35 class TunnelPod : public ChaseInteraction {
36 friend class Mars;
37 friend struct MusicTimerEvent;
38 public:
39 
41  virtual ~TunnelPod() {}
42 
43  void setSoundFXLevel(const uint16);
44 
45 protected:
46 
47  void openInteraction();
48  void initInteraction();
49  void closeInteraction();
50 
51  void receiveNotification(Notification *, const NotificationFlags);
52 
53  void setUpBranch();
54  void branchLeft();
55  void branchRight();
56  void dontBranch();
57 
58  void switchTo(Movie &, NotificationCallBack &);
59 
60  Movie _tunnelMainMovie;
61  Movie _tunnelAltMovie;
62  Movie _deathMovie;
63  NotificationCallBack _tunnelCallBack;
64  NotificationCallBack _tunnelMainCallBack;
65  NotificationCallBack _tunnelAltCallBack;
66  NotificationCallBack _deathCallBack;
67 
68  Movie *_currentMovie;
69  NotificationCallBack *_currentCallBack;
70  short _tunnelState;
71 };
72 
73 } // End of namespace Pegasus
74 
75 #endif
Definition: neighborhood.h:111
Definition: movie.h:40
Definition: chase.h:45
Definition: mars.h:71
Definition: canyonchase.h:44
Definition: tunnelpod.h:35
Definition: notification.h:53
Definition: timers.h:191
Definition: ai_action.h:33