aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/drascula/animation.cpp50
-rw-r--r--engines/drascula/drascula.cpp26
-rw-r--r--engines/drascula/drascula.h20
-rw-r--r--engines/drascula/rooms.cpp34
-rw-r--r--engines/drascula/talk.cpp6
5 files changed, 68 insertions, 68 deletions
diff --git a/engines/drascula/animation.cpp b/engines/drascula/animation.cpp
index f06a777bbd..476376ab9b 100644
--- a/engines/drascula/animation.cpp
+++ b/engines/drascula/animation.cpp
@@ -403,7 +403,7 @@ void DrasculaEngine::animation_2_1() {
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
break;
- talk_tabernero(22);
+ talk_bartender(22);
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE))
break;
@@ -597,22 +597,22 @@ void DrasculaEngine::animation_3_1() {
loadAndDecompressPic("an11y13.alg", extraSurface, 1);
talk(192);
- talk_tabernero(1);
+ talk_bartender(1);
talk(193);
- talk_tabernero(2);
+ talk_bartender(2);
talk(194);
- talk_tabernero(3);
+ talk_bartender(3);
talk(195);
- talk_tabernero(4);
+ talk_bartender(4);
talk(196);
- talk_tabernero(5);
- talk_tabernero(6);
+ talk_bartender(5);
+ talk_bartender(6);
talk(197);
- talk_tabernero(7);
+ talk_bartender(7);
talk(198);
- talk_tabernero(8);
+ talk_bartender(8);
talk(199);
- talk_tabernero(9);
+ talk_bartender(9);
talk(200);
talk(201);
talk(202);
@@ -1079,9 +1079,9 @@ void DrasculaEngine::animation_23_2() {
talk_vb(18);
if (flags[29] == 0)
- animation_23_anexo();
+ animation_23_joined();
else
- animation_23_anexo2();
+ animation_23_joined2();
sentido_vb = 2;
animation_25_2();
@@ -1106,7 +1106,7 @@ void DrasculaEngine::animation_23_2() {
rompo_y_salgo = 1;
}
-void DrasculaEngine::animation_23_anexo() {
+void DrasculaEngine::animation_23_joined() {
int n, p_x = hare_x + 2, p_y = hare_y - 3;
int x[] = {1, 38, 75, 112, 75, 112, 75, 112, 149, 112, 149, 112, 149, 186, 223, 260,
1, 38, 75, 112, 149, 112, 149, 112, 149, 112, 149, 186, 223, 260, 260, 260, 260, 223};
@@ -1126,7 +1126,7 @@ void DrasculaEngine::animation_23_anexo() {
loadAndDecompressPic("99.alg", backSurface, 1);
}
-void DrasculaEngine::animation_23_anexo2() {
+void DrasculaEngine::animation_23_joined2() {
int n, p_x = hare_x + 4, p_y = hare_y;
int x[] = {1, 35, 69, 103, 137, 171, 205, 239, 273, 1, 35, 69, 103, 137};
int y[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 73, 73, 73, 73, 73};
@@ -1711,19 +1711,19 @@ void DrasculaEngine::animation_12_5() {
for (fundido = 1; fundido >= 0; fundido--) {
for (color = 0; color < 128; color++)
for (component = 0; component < 3; component++)
- bgPalette1[color][component] = LimitaVGA(bgPalette1[color][component] - 8 + fundido);
+ bgPalette1[color][component] = adjustToVGA(bgPalette1[color][component] - 8 + fundido);
}
for (fundido = 2; fundido >= 0; fundido--) {
for (color = 0; color < 128; color++)
for (component = 0; component < 3; component++)
- bgPalette2[color][component] = LimitaVGA(bgPalette2[color][component] - 8 + fundido);
+ bgPalette2[color][component] = adjustToVGA(bgPalette2[color][component] - 8 + fundido);
}
for (fundido = 3; fundido >= 0; fundido--) {
for (color = 0; color < 128; color++)
for (component = 0; component < 3; component++)
- bgPalette3[color][component] = LimitaVGA(bgPalette3[color][component] - 8 + fundido);
+ bgPalette3[color][component] = adjustToVGA(bgPalette3[color][component] - 8 + fundido);
}
loadAndDecompressPic("3an11_1.alg", backSurface, 1);
@@ -2255,14 +2255,14 @@ void DrasculaEngine::animation_11_2() {
loadAndDecompressPic("an11y13.alg", extraSurface, 1);
talk(352);
- talk_tabernero(1);
+ talk_bartender(1);
talk(353);
- talk_tabernero(17);
+ talk_bartender(17);
talk(354);
- talk_tabernero(18);
+ talk_bartender(18);
talk(355);
pause(40);
- talk_tabernero("No, nada", "d82.als");
+ talk_bartender("No, nada", "d82.als");
if (_lang == kSpanish)
textSurface = extraSurface;
@@ -2400,12 +2400,12 @@ void DrasculaEngine::animation_36_2() {
loadAndDecompressPic("an11y13.alg", extraSurface, 1);
talk(404);
- talk_tabernero(19);
- talk_tabernero(20);
- talk_tabernero(21);
+ talk_bartender(19);
+ talk_bartender(20);
+ talk_bartender(21);
talk(355);
pause(40);
- talk_tabernero("No, nada", "d82.als");
+ talk_bartender("No, nada", "d82.als");
if (_lang == kSpanish)
textSurface = extraSurface;
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index c6da2913e0..49d64cfd63 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -137,7 +137,7 @@ int DrasculaEngine::go() {
vb_x = 120; sentido_vb = 1; vb_se_mueve = 0; frame_vb = 1;
frame_piano = 0;
frame_drunk = 0;
- frame_velas = 0;
+ frame_candles = 0;
cont_sv = 0;
term_int = 0;
musicStopped = 0;
@@ -1782,7 +1782,7 @@ void DrasculaEngine::fliplay(const char *filefli, int vel) {
EndSSN();
}
-void DrasculaEngine::fadeFromBlack(int VelocidadDeFundido) {
+void DrasculaEngine::fadeFromBlack(int fadeSpeed) {
char fundido;
unsigned int color, component;
@@ -1791,10 +1791,10 @@ void DrasculaEngine::fadeFromBlack(int VelocidadDeFundido) {
for (fundido = 0; fundido < 64; fundido++) {
for (color = 0; color < 256; color++) {
for (component = 0; component < 3; component++) {
- palFundido[color][component] = LimitaVGA(gamePalette[color][component] - 63 + fundido);
+ palFundido[color][component] = adjustToVGA(gamePalette[color][component] - 63 + fundido);
}
}
- pause(VelocidadDeFundido);
+ pause(fadeSpeed);
setPalette((byte *)&palFundido);
}
@@ -1820,7 +1820,7 @@ void DrasculaEngine::color_abc(int cl) {
setPalette((byte *)&gamePalette);
}
-char DrasculaEngine::LimitaVGA(char value) {
+char DrasculaEngine::adjustToVGA(char value) {
return (value & 0x3F) * (value > 0);
}
@@ -1971,7 +1971,7 @@ void DrasculaEngine::animastopSound_corte() {
}
}
-void DrasculaEngine::fadeToBlack(int VelocidadDeFundido) {
+void DrasculaEngine::fadeToBlack(int fadeSpeed) {
char fundido;
unsigned int color, component;
@@ -1980,10 +1980,10 @@ void DrasculaEngine::fadeToBlack(int VelocidadDeFundido) {
for (fundido = 63; fundido >= 0; fundido--) {
for (color = 0; color < 256; color++) {
for (component = 0; component < 3; component++) {
- palFundido[color][component] = LimitaVGA(gamePalette[color][component] - 63 + fundido);
+ palFundido[color][component] = adjustToVGA(gamePalette[color][component] - 63 + fundido);
}
}
- pause(VelocidadDeFundido);
+ pause(fadeSpeed);
setPalette((byte *)&palFundido);
}
@@ -2228,7 +2228,7 @@ void DrasculaEngine::funde_hare(int oscuridad) {
for (fundido = oscuridad; fundido >= 0; fundido--) {
for (color = 235; color < 253; color++) {
for (component = 0; component < 3; component++)
- gamePalette[color][component] = LimitaVGA(gamePalette[color][component] - 8 + fundido);
+ gamePalette[color][component] = adjustToVGA(gamePalette[color][component] - 8 + fundido);
}
}
@@ -2280,9 +2280,9 @@ void DrasculaEngine::startWalking() {
else if ((sitio_x > hare_x + ancho_hare) && (sitio_y > (hare_y + alto_hare)))
quadrant_4();
else if (sitio_y < hare_y + alto_hare)
- anda_parriba();
+ walkUp();
else if (sitio_y > hare_y + alto_hare)
- anda_pabajo();
+ walkDown();
} else {
if ((sitio_x < hare_x + ancho_hare / 2 ) && (sitio_y <= (hare_y + alto_hare)))
quadrant_1();
@@ -3606,13 +3606,13 @@ void DrasculaEngine::updateData() {
}
}
-void DrasculaEngine::anda_pabajo() {
+void DrasculaEngine::walkDown() {
direccion_hare = 4;
sentido_hare = 3;
stepX = 0;
}
-void DrasculaEngine::anda_parriba() {
+void DrasculaEngine::walkUp() {
direccion_hare = 0;
sentido_hare = 2;
stepX = 0;
diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h
index 3614099167..55db43c348 100644
--- a/engines/drascula/drascula.h
+++ b/engines/drascula/drascula.h
@@ -267,7 +267,7 @@ public:
int factor_red[202];
int frame_piano;
int frame_drunk;
- int frame_velas;
+ int frame_candles;
int color_solo;
int blinking;
int x_igor, y_igor, sentido_igor;
@@ -291,8 +291,8 @@ public:
bool escoba();
void black();
void pickObject(int);
- void anda_parriba();
- void anda_pabajo();
+ void walkUp();
+ void walkDown();
void pon_vb();
void lleva_vb(int pointX);
void hipo_sin_nadie(int counter);
@@ -325,8 +325,8 @@ public:
void animation_21_2();
void animation_22_2();
void animation_23_2();
- void animation_23_anexo();
- void animation_23_anexo2();
+ void animation_23_joined();
+ void animation_23_joined2();
void animation_24_2();
void animation_25_2();
void animation_26_2();
@@ -401,14 +401,14 @@ public:
void addObject(int);
int removeObject(int osj);
void fliplay(const char *filefli, int vel);
- void fadeFromBlack(int VelocidadDeFundido);
- char LimitaVGA(char value);
+ void fadeFromBlack(int fadeSpeed);
+ char adjustToVGA(char value);
void color_abc(int cl);
void centerText(const char *,int,int);
void playSound(int soundNum);
bool animate(const char *animation, int FPS);
void stopSound_corte();
- void fadeToBlack(int VelocidadDeFundido);
+ void fadeToBlack(int fadeSpeed);
void pause(int);
void placeIgor();
void placeBJ();
@@ -425,8 +425,8 @@ public:
void talk_solo(const char *, const char *);
void talk_igor_front(int);
void talk_igor_front(const char *, const char *);
- void talk_tabernero(int);
- void talk_tabernero(const char *said, const char *filename);
+ void talk_bartender(int);
+ void talk_bartender(const char *said, const char *filename);
void talk_igor_door(int);
void talk_igor_door(const char *said, const char *filename);
void talk_igor_wig(int);
diff --git a/engines/drascula/rooms.cpp b/engines/drascula/rooms.cpp
index 44f1d76615..deaff84c53 100644
--- a/engines/drascula/rooms.cpp
+++ b/engines/drascula/rooms.cpp
@@ -1371,14 +1371,14 @@ void DrasculaEngine::update_13() {
}
void DrasculaEngine::update_14_pre() {
- int velas_y[] = {158, 172, 186};
+ int candles_y[] = {158, 172, 186};
int cirio_x[] = {14, 19, 24};
int pianista_x[] = {1, 91, 61, 31, 91, 31, 1, 61, 31};
int drunk_x[] = {1, 42, 83, 124, 165, 206, 247, 1};
int difference;
- copyBackground(123, velas_y[frame_velas], 142, 14, 39, 13, drawSurface3, screenSurface);
- copyBackground(cirio_x[frame_velas], 146, 311, 80, 4, 8, drawSurface3, screenSurface);
+ copyBackground(123, candles_y[frame_candles], 142, 14, 39, 13, drawSurface3, screenSurface);
+ copyBackground(cirio_x[frame_candles], 146, 311, 80, 4, 8, drawSurface3, screenSurface);
if (blinking == 5)
copyBackground(1, 149, 127, 52, 9, 5, drawSurface3, screenSurface);
@@ -1404,9 +1404,9 @@ void DrasculaEngine::update_14_pre() {
} else if ((_rnd->getRandomNumber(94) == 15) && (flags[13] == 0))
flags[12] = 1;
- frame_velas++;
- if (frame_velas == 3)
- frame_velas = 0;
+ frame_candles++;
+ if (frame_candles == 3)
+ frame_candles = 0;
frame_piano++;
if (frame_piano == 9)
frame_piano = 0;
@@ -1675,13 +1675,13 @@ void DrasculaEngine::update_59_pre() {
}
void DrasculaEngine::update_60_pre() {
- int velas_y[] = {158, 172, 186};
+ int candles_y[] = {158, 172, 186};
int difference;
if (flags[5] == 0)
placeDrascula();
- copyBackground(123, velas_y[frame_velas], 142, 14, 39, 13, drawSurface3, screenSurface);
+ copyBackground(123, candles_y[frame_candles], 142, 14, 39, 13, drawSurface3, screenSurface);
if (flag_tv == 1)
copyBackground(114, 158, 8, 30, 8, 23, drawSurface3, screenSurface);
@@ -1693,9 +1693,9 @@ void DrasculaEngine::update_60_pre() {
else if (blinking == 5 && flag_tv == 1)
flag_tv = 0;
if (difference > 6) {
- frame_velas++;
- if (frame_velas == 3)
- frame_velas = 0;
+ frame_candles++;
+ if (frame_candles == 3)
+ frame_candles = 0;
conta_blind_vez = getTime();
}
}
@@ -1710,14 +1710,14 @@ void DrasculaEngine::update_61() {
}
void DrasculaEngine::update_62_pre() {
- int velas_y[] = { 158, 172, 186 };
+ int candles_y[] = { 158, 172, 186 };
int cirio_x[] = { 14, 19, 24 };
int pianista_x[] = {1, 91, 61, 31, 91, 31, 1, 61, 31 };
int drunk_x[] = {1, 42, 83, 124, 165, 206, 247, 1 };
int difference;
- copyBackground(123, velas_y[frame_velas], 142, 14, 39, 13, drawSurface3, screenSurface);
- copyBackground(cirio_x[frame_velas], 146, 311, 80, 4, 8, drawSurface3, screenSurface);
+ copyBackground(123, candles_y[frame_candles], 142, 14, 39, 13, drawSurface3, screenSurface);
+ copyBackground(cirio_x[frame_candles], 146, 311, 80, 4, 8, drawSurface3, screenSurface);
if (blinking == 5)
copyBackground(1, 149, 127, 52, 9, 5, drawSurface3, screenSurface);
@@ -1746,9 +1746,9 @@ void DrasculaEngine::update_62_pre() {
} else if ((_rnd->getRandomNumber(94) == 15) && (flags[13] == 0))
flags[12] = 1;
- frame_velas++;
- if (frame_velas == 3)
- frame_velas = 0;
+ frame_candles++;
+ if (frame_candles == 3)
+ frame_candles = 0;
frame_piano++;
if (frame_piano == 9)
frame_piano = 0;
diff --git a/engines/drascula/talk.cpp b/engines/drascula/talk.cpp
index a37b8179df..1f139c11c6 100644
--- a/engines/drascula/talk.cpp
+++ b/engines/drascula/talk.cpp
@@ -304,13 +304,13 @@ bucless:
updateScreen(0, 0, 0, 0, 320, 200, screenSurface);
}
-void DrasculaEngine::talk_tabernero(int index) {
+void DrasculaEngine::talk_bartender(int index) {
char name[20];
sprintf(name, "t%i.als", index);
- talk_tabernero(_textt[_lang][index], name);
+ talk_bartender(_textt[_lang][index], name);
}
-void DrasculaEngine::talk_tabernero(const char *said, const char *filename) {
+void DrasculaEngine::talk_bartender(const char *said, const char *filename) {
int x_talk[9] = { 1, 23, 45, 67, 89, 111, 133, 155, 177 };
int face;
int length = strlen(said);