aboutsummaryrefslogtreecommitdiff
path: root/scumm/camera.cpp
diff options
context:
space:
mode:
authorMax Horn2003-10-02 22:42:03 +0000
committerMax Horn2003-10-02 22:42:03 +0000
commit3f55f2669d560489ee017d64f5bdd0f785cf796e (patch)
treebd8b3bc560b347a0ef58c7b23431e92142aeea50 /scumm/camera.cpp
parent68810ac106ba538e7fb697e0f7fa6eb699a4c927 (diff)
downloadscummvm-rg350-3f55f2669d560489ee017d64f5bdd0f785cf796e.tar.gz
scummvm-rg350-3f55f2669d560489ee017d64f5bdd0f785cf796e.tar.bz2
scummvm-rg350-3f55f2669d560489ee017d64f5bdd0f785cf796e.zip
renamed class Scumm to ScummEngine (consisten with other engine names; also makes room for a potential 'Scumm' namespace)
svn-id: r10549
Diffstat (limited to 'scumm/camera.cpp')
-rw-r--r--scumm/camera.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/scumm/camera.cpp b/scumm/camera.cpp
index ffa5a20389..50990528fc 100644
--- a/scumm/camera.cpp
+++ b/scumm/camera.cpp
@@ -25,7 +25,7 @@
#include "actor.h"
#include "charset.h"
-void Scumm::setCameraAtEx(int at) {
+void ScummEngine::setCameraAtEx(int at) {
if (!(_features & GF_NEW_CAMERA)) {
camera._mode = CM_NORMAL;
camera._cur.x = at;
@@ -34,7 +34,7 @@ void Scumm::setCameraAtEx(int at) {
}
}
-void Scumm::setCameraAt(int pos_x, int pos_y) {
+void ScummEngine::setCameraAt(int pos_x, int pos_y) {
if (camera._mode != CM_FOLLOW_ACTOR || abs(pos_x - camera._cur.x) > (_screenWidth / 2)) {
camera._cur.x = pos_x;
}
@@ -59,7 +59,7 @@ void Scumm::setCameraAt(int pos_x, int pos_y) {
stopTalk();
}
-void Scumm_v7::setCameraAt(int pos_x, int pos_y) {
+void ScummEngine_v7::setCameraAt(int pos_x, int pos_y) {
Common::Point old;
old = camera._cur;
@@ -83,7 +83,7 @@ void Scumm_v7::setCameraAt(int pos_x, int pos_y) {
}
}
-void Scumm::setCameraFollows(Actor *a) {
+void ScummEngine::setCameraFollows(Actor *a) {
int t, i;
@@ -109,7 +109,7 @@ void Scumm::setCameraFollows(Actor *a) {
runInventoryScript(0);
}
-void Scumm_v7::setCameraFollows(Actor *a) {
+void ScummEngine_v7::setCameraFollows(Actor *a) {
byte oldfollow = camera._follows;
int ax, ay;
@@ -133,7 +133,7 @@ void Scumm_v7::setCameraFollows(Actor *a) {
}
-void Scumm::clampCameraPos(Common::Point *pt) {
+void ScummEngine::clampCameraPos(Common::Point *pt) {
if (pt->x < VAR(VAR_CAMERA_MIN_X))
pt->x = (short) VAR(VAR_CAMERA_MIN_X);
@@ -147,7 +147,7 @@ void Scumm::clampCameraPos(Common::Point *pt) {
pt->y = (short) VAR(VAR_CAMERA_MAX_Y);
}
-void Scumm::moveCamera() {
+void ScummEngine::moveCamera() {
int pos = camera._cur.x;
int actorx, t;
Actor *a = NULL;
@@ -225,7 +225,7 @@ void Scumm::moveCamera() {
}
}
-void Scumm_v7::moveCamera() {
+void ScummEngine_v7::moveCamera() {
Common::Point old = camera._cur;
Actor *a = NULL;
@@ -310,7 +310,7 @@ void Scumm_v7::moveCamera() {
}
-void Scumm::cameraMoved() {
+void ScummEngine::cameraMoved() {
if (_features & GF_NEW_CAMERA) {
assert(camera._cur.x >= (_screenWidth / 2) && camera._cur.y >= (_screenHeight / 2));
} else {
@@ -349,19 +349,19 @@ void Scumm::cameraMoved() {
}
}
-void Scumm::panCameraTo(int x, int y) {
+void ScummEngine::panCameraTo(int x, int y) {
camera._dest.x = x;
camera._mode = CM_PANNING;
camera._movingToActor = false;
}
-void Scumm_v7::panCameraTo(int x, int y) {
+void ScummEngine_v7::panCameraTo(int x, int y) {
VAR(VAR_CAMERA_FOLLOWED_ACTOR) = camera._follows = 0;
VAR(VAR_CAMERA_DEST_X) = camera._dest.x = x;
VAR(VAR_CAMERA_DEST_Y) = camera._dest.y = y;
}
-void Scumm::actorFollowCamera(int act) {
+void ScummEngine::actorFollowCamera(int act) {
if (!(_features & GF_NEW_CAMERA)) {
int old;