ScummVM API documentation
scene.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 MYST3_SCENE_H
23 #define MYST3_SCENE_H
24 
25 #include "common/rect.h"
26 
27 #include "engines/myst3/gfx.h"
28 
29 namespace Myst3 {
30 
31 class Myst3Engine;
32 class SunSpot;
33 
34 class Scene : public Window {
35 private:
36  Myst3Engine *_vm;
37 
38  uint _mouseSpeed;
39 
40 public:
41  Scene(Myst3Engine *vm);
42 
43  // Window API
44  Common::Rect getPosition() const override;
45  Common::Rect getOriginalPosition() const override;
46 
47  void updateCamera(Common::Point &mouse);
48 
49  void updateMouseSpeed();
50 
51  void screenPosToDirection(const Common::Point &screen, float &pitch, float &heading) const;
52  static Math::Vector3d directionToVector(float pitch, float heading);
53 
54  void drawSunspotFlare(const SunSpot &s);
55  float distanceToZone(float spotHeading, float spotPitch, float spotRadius, float heading, float pitch);
56 };
57 
58 } // end of namespace Myst3
59 
60 #endif
Definition: node.h:120
Definition: ambient.h:27
Definition: scene.h:34
Definition: rect.h:144
Definition: gfx.h:65
Definition: rect.h:45
Common::Rect getPosition() const override
Common::Rect getOriginalPosition() const override
Definition: myst3.h:87