ScummVM API documentation
camera.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 MADS_CAMERA_H
23
#define MADS_CAMERA_H
24
25
#include "mads/nebular/core/scene.h"
26
#include "mads/nebular/core/player.h"
27
#include "mads/nebular/core/camera.h"
28
29
namespace
MADS
{
30
namespace
Nebular {
31
32
class
RexNebularEngine;
33
34
class
Camera
{
35
private
:
36
RexNebularEngine
*_vm;
37
38
public
:
39
bool
_panAllowedFl;
40
bool
_activeFl;
41
bool
_currentFrameFl;
42
bool
_manualFl;
43
44
int
_speed;
45
int
_rate;
46
int
_target;
47
int
_distOffCenter;
48
int
_startTolerance;
49
int
_endTolerance;
50
int
_direction;
51
uint32 _timer;
52
53
Camera
(
RexNebularEngine
*vm);
54
55
void
camPanTo(
int
target);
56
bool
camPan(int16 *picture_view, int16 *player_loc,
int
display_size,
int
picture_size);
57
void
setDefaultPanX();
58
void
setDefaultPanY();
59
};
60
61
}
// namespace Nebular
62
}
// namespace MADS
63
64
#endif
MADS::Nebular::RexNebularEngine
Definition:
nebular.h:51
MADS::Nebular::Camera
Definition:
camera.h:34
MADS
Definition:
sound_manager.h:38
engines
mads
nebular
core
camera.h
Generated on Wed Apr 29 2026 09:08:10 for ScummVM API documentation by
1.8.13