ScummVM API documentation
object_bg.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 PETKA_OBJECT_BG_H
23 #define PETKA_OBJECT_BG_H
24 
25 #include "petka/objects/object.h"
26 
27 namespace Petka {
28 
29 // Linear Interpolation
30 struct Perspective {
31  double f0;
32  double k; // seems to be (f1 - f0) always in files
33  int y0;
34  int y1;
35  double f1;
36 
37  Perspective() { f0 = f1 = 1.0; k = 0.0; y0 = 0; y1 = 480; }
38 };
39 
40 class QObjectBG : public QMessageObject {
41 public:
42  QObjectBG();
43  void processMessage(const QMessage &msg) override;
44  void draw() override;
45  void goTo();
46  void setEntrance(const Common::String &name);
47  void play(int id, int type) override {}
48 
49  void readInisData(Common::INIFile &names, Common::INIFile &cast, Common::INIFile *bgs) override;
50 
51 public:
52  bool _showMap;
53  int _fxId;
54  int _musicId;
55  Perspective _persp;
56 };
57 
58 } // End of namespace Petka
59 
60 #endif
Definition: str.h:59
Definition: base.h:98
Definition: object_bg.h:40
Definition: object.h:58
Definition: ini-file.h:58
Definition: object_bg.h:30
Definition: base.h:27