asigna_rgb -> setRGB
ActualizaPaleta -> updatePalette elige_objeto -> chooseObject datos_actuales -> currentData nombre_obj -> objName nombre_icono -> iconName agarra_objeto -> pickObject abre_puerta -> openDoor con_voces -> with_voices carga_pcx -> loadPCX graba_partida -> saveGame sin_verbo -> withoutVerb actualiza_datos -> updateData svn-id: r32014
This commit is contained in:
parent
4cd801e26b
commit
7da27cf28c
5 changed files with 180 additions and 186 deletions
|
@ -424,7 +424,7 @@ bucless:
|
|||
if (l == 7)
|
||||
l = 0;
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 191, 69);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -890,7 +890,7 @@ void DrasculaEngine::animation_4_2() {
|
|||
decompressPic(dir_hare_dch, 1);
|
||||
loadPic("99.alg");
|
||||
decompressPic(dir_hare_fondo, 1);
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
|
||||
flags[9] = 0;
|
||||
flags[4] = 1;
|
||||
|
@ -1155,7 +1155,7 @@ void DrasculaEngine::animation_20_2() {
|
|||
talk_vbpuerta(_textvb[_lang][12], "VB12.als");
|
||||
flags[18] = 0;
|
||||
flags[14] = 1;
|
||||
abre_puerta(15, 1);
|
||||
openDoor(15, 1);
|
||||
sal_de_la_habitacion(1);
|
||||
animation_23_2();
|
||||
sal_de_la_habitacion(0);
|
||||
|
@ -1315,7 +1315,7 @@ void DrasculaEngine::animation_25_2() {
|
|||
void DrasculaEngine::animation_27_2() {
|
||||
flags[22] = 1;
|
||||
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
resta_objeto(23);
|
||||
suma_objeto(11);
|
||||
|
||||
|
@ -1413,7 +1413,7 @@ void DrasculaEngine::animation_31_2() {
|
|||
|
||||
flags[38] = 0;
|
||||
flags[36] = 1;
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
resta_objeto(8);
|
||||
resta_objeto(13);
|
||||
resta_objeto(15);
|
||||
|
@ -1891,7 +1891,7 @@ void DrasculaEngine::animation_2_5() {
|
|||
|
||||
void DrasculaEngine::animation_3_5() {
|
||||
talk_bj(_textbj[_lang][23], "BJ23.als");
|
||||
agarra_objeto(10);
|
||||
pickObject(10);
|
||||
rompo_y_salgo = 1;
|
||||
}
|
||||
|
||||
|
@ -1924,7 +1924,7 @@ void DrasculaEngine::animation_5_5(){
|
|||
int vuela_x[] = {1, 63, 125, 187, 249};
|
||||
int pixel_x = hare_x - 53, pixel_y = hare_y - 9;
|
||||
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
resta_objeto(8);
|
||||
|
||||
lleva_al_hare(hare_x - 19, hare_y + alto_hare);
|
||||
|
@ -1955,7 +1955,7 @@ void DrasculaEngine::animation_5_5(){
|
|||
}
|
||||
|
||||
flags[6] = 1;
|
||||
actualiza_datos();
|
||||
updateData();
|
||||
pause(12);
|
||||
|
||||
loadPic("96.alg");
|
||||
|
@ -2024,14 +2024,14 @@ void DrasculaEngine::animation_8_5() {
|
|||
void DrasculaEngine::animation_9_5() {
|
||||
flags[4] = 1;
|
||||
talk(_text[_lang][401], "401.als");
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
resta_objeto(15);
|
||||
}
|
||||
|
||||
void DrasculaEngine::animation_10_5() {
|
||||
flags[3] = 1;
|
||||
talk(_text[_lang][401], "401.als");
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
resta_objeto(12);
|
||||
}
|
||||
|
||||
|
@ -2133,7 +2133,7 @@ void DrasculaEngine::animation_12_5() {
|
|||
anima("frel.bin", 16);
|
||||
clearRoom();
|
||||
hare_claro();
|
||||
ActualizaPaleta();
|
||||
updatePalette();
|
||||
|
||||
flags[1] = 1;
|
||||
|
||||
|
@ -2156,7 +2156,7 @@ void DrasculaEngine::animation_12_5() {
|
|||
hare_se_mueve = 0;
|
||||
hare_x = -1;
|
||||
obj_saliendo = 104;
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
carga_escoba("57.ald");
|
||||
}
|
||||
|
||||
|
@ -2360,7 +2360,7 @@ void DrasculaEngine::animation_5_6() {
|
|||
void DrasculaEngine::animation_6_6() {
|
||||
anima("rct.bin", 11);
|
||||
clearRoom();
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
resta_objeto(20);
|
||||
loadPic("96.alg");
|
||||
decompressPic(dir_hare_frente, 1);
|
||||
|
@ -2373,7 +2373,7 @@ void DrasculaEngine::animation_6_6() {
|
|||
rompo = 1;
|
||||
obj_saliendo = 104;
|
||||
hare_x = -1;
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
carga_escoba("58.ald");
|
||||
hare_se_ve = 1;
|
||||
sentido_hare = 1;
|
||||
|
@ -2387,7 +2387,7 @@ void DrasculaEngine::animation_6_6() {
|
|||
|
||||
void DrasculaEngine::animation_7_6() {
|
||||
flags[8] = 1;
|
||||
actualiza_datos();
|
||||
updateData();
|
||||
}
|
||||
|
||||
void DrasculaEngine::animation_9_6() {
|
||||
|
@ -2505,7 +2505,7 @@ void DrasculaEngine::animation_15_6() {
|
|||
|
||||
void DrasculaEngine::animation_18_6() {
|
||||
flags[6] = 1;
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
resta_objeto(21);
|
||||
anima("beb.bin", 10);
|
||||
}
|
||||
|
@ -2620,7 +2620,7 @@ void DrasculaEngine::animation_26_2() {
|
|||
pause(3);
|
||||
}
|
||||
|
||||
agarra_objeto(11);
|
||||
pickObject(11);
|
||||
resta_objeto(12);
|
||||
|
||||
flags[11] = 0;
|
||||
|
@ -3200,7 +3200,7 @@ void DrasculaEngine::animation_5_2() {
|
|||
flags[8] = 1;
|
||||
hare_x = hare_x - 4;
|
||||
talk_sinc(_text[_lang][46], "46.als", "4442444244244");
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
}
|
||||
|
||||
void DrasculaEngine::animation_6_2() {
|
||||
|
@ -3249,7 +3249,7 @@ void DrasculaEngine::animation_6_2() {
|
|||
decompressPic(dir_hare_dch, 1);
|
||||
loadPic("99.alg");
|
||||
decompressPic(dir_hare_fondo, 1);
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
|
||||
flags[9] = 0;
|
||||
}
|
||||
|
@ -3305,7 +3305,7 @@ void DrasculaEngine::animation_33_2() {
|
|||
decompressPic(dir_hare_dch, 1);
|
||||
loadPic("99.alg");
|
||||
decompressPic(dir_hare_fondo, 1);
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
|
||||
flags[33] = 1;
|
||||
flags[9] = 0;
|
||||
|
@ -3313,7 +3313,7 @@ void DrasculaEngine::animation_33_2() {
|
|||
|
||||
void DrasculaEngine::animation_1_4() {
|
||||
if (flags[21] == 0) {
|
||||
strcpy(nombre_obj[2], "igor");
|
||||
strcpy(objName[2], "igor");
|
||||
talk(_text[_lang][275], "275.als");
|
||||
|
||||
updateRefresh_pre();
|
||||
|
@ -3383,7 +3383,7 @@ void DrasculaEngine::animation_5_4(){
|
|||
hare_y = 82;
|
||||
updateRoom();
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
abre_puerta(2, 0);
|
||||
openDoor(2, 0);
|
||||
loadPic("auxigor.alg");
|
||||
decompressPic(dir_hare_frente, 1);
|
||||
x_igor = 100;
|
||||
|
@ -3427,7 +3427,7 @@ void DrasculaEngine::animation_6_4() {
|
|||
decompressPic(dir_dibujo3, 1);
|
||||
loadPic(num_room);
|
||||
decompressPic(dir_dibujo1, MEDIA);
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
updateRoom();
|
||||
}
|
||||
|
||||
|
@ -3447,7 +3447,7 @@ void DrasculaEngine::animation_8_4() {
|
|||
|
||||
loadPic("96.alg");
|
||||
decompressPic(dir_hare_frente, 1);
|
||||
abre_puerta(7, 2);
|
||||
openDoor(7, 2);
|
||||
}
|
||||
|
||||
void DrasculaEngine::animation_9_4() {
|
||||
|
|
|
@ -163,7 +163,7 @@ int DrasculaEngine::go() {
|
|||
allocMemory();
|
||||
|
||||
hay_sb = 1;
|
||||
con_voces = 0;
|
||||
withVoices = 0;
|
||||
hay_seleccion = 0;
|
||||
|
||||
if (num_ejec != 6) {
|
||||
|
@ -229,10 +229,10 @@ int DrasculaEngine::go() {
|
|||
loadPic("95.alg");
|
||||
decompressPic(dir_mesa, 1);
|
||||
}
|
||||
memset(nombre_icono, 0, sizeof(nombre_icono));
|
||||
memset(iconName, 0, sizeof(iconName));
|
||||
|
||||
for (i = 0; i < 6; i++)
|
||||
strcpy(nombre_icono[i + 1], _textverbs[_lang][i]);
|
||||
strcpy(iconName[i + 1], _textverbs[_lang][i]);
|
||||
|
||||
paleta_hare();
|
||||
if (!escoba()) {
|
||||
|
@ -326,9 +326,7 @@ void DrasculaEngine::loadPic(const char *NamePcc) {
|
|||
void DrasculaEngine::decompressPic(byte *dir_escritura, int plt) {
|
||||
memcpy(dir_escritura, Buffer_pcx, 64000);
|
||||
free(Buffer_pcx);
|
||||
asigna_rgb((byte *)cPal, plt);
|
||||
if (plt > 1)
|
||||
funde_rgb(plt);
|
||||
setRGB((byte *)cPal, plt);
|
||||
}
|
||||
|
||||
void DrasculaEngine::paleta_hare() {
|
||||
|
@ -337,7 +335,6 @@ void DrasculaEngine::paleta_hare() {
|
|||
for (color = 235; color < 253; color++)
|
||||
for (componente = 0; componente < 3; componente++)
|
||||
palHare[color][componente] = palJuego[color][componente];
|
||||
|
||||
}
|
||||
|
||||
void DrasculaEngine::hare_oscuro() {
|
||||
|
@ -347,10 +344,10 @@ void DrasculaEngine::hare_oscuro() {
|
|||
for (componente = 0; componente < 3; componente++)
|
||||
palJuego[color][componente] = palHareOscuro[color][componente];
|
||||
|
||||
ActualizaPaleta();
|
||||
updatePalette();
|
||||
}
|
||||
|
||||
void DrasculaEngine::asigna_rgb(byte *dir_lectura, int plt) {
|
||||
void DrasculaEngine::setRGB(byte *dir_lectura, int plt) {
|
||||
int x, cnt = 0;
|
||||
|
||||
for (x = 0; x < plt; x++) {
|
||||
|
@ -358,11 +355,9 @@ void DrasculaEngine::asigna_rgb(byte *dir_lectura, int plt) {
|
|||
palJuego[x][1] = dir_lectura[cnt++] / 4;
|
||||
palJuego[x][2] = dir_lectura[cnt++] / 4;
|
||||
}
|
||||
ActualizaPaleta();
|
||||
updatePalette();
|
||||
}
|
||||
|
||||
void DrasculaEngine::funde_rgb(int plt) {}
|
||||
|
||||
void DrasculaEngine::Negro() {
|
||||
int color, componente;
|
||||
DacPalette256 palNegra;
|
||||
|
@ -378,7 +373,7 @@ void DrasculaEngine::Negro() {
|
|||
setvgapalette256((byte *)&palNegra);
|
||||
}
|
||||
|
||||
void DrasculaEngine::ActualizaPaleta() {
|
||||
void DrasculaEngine::updatePalette() {
|
||||
setvgapalette256((byte *)&palJuego);
|
||||
}
|
||||
|
||||
|
@ -501,12 +496,12 @@ bool DrasculaEngine::escoba() {
|
|||
objetos_que_tengo[n] = n;
|
||||
|
||||
if (num_ejec == 1) {
|
||||
agarra_objeto(28);
|
||||
pickObject(28);
|
||||
|
||||
if (hay_que_load == 0)
|
||||
animation_1_1();
|
||||
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
loadPic("2aux62.alg");
|
||||
decompressPic(dir_dibujo2, 1);
|
||||
sentido_hare = 1;
|
||||
|
@ -667,7 +662,7 @@ bucles:
|
|||
decompressPic(dir_hare_fondo, 1);
|
||||
menu_scr = 1;
|
||||
espera_soltar();
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
if (num_ejec != 3)
|
||||
cont_sv = 0;
|
||||
}
|
||||
|
@ -729,18 +724,18 @@ bucles:
|
|||
if (num_ejec != 3)
|
||||
cont_sv = 0;
|
||||
} else if (key == Common::KEYCODE_F8) {
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
if (num_ejec != 3)
|
||||
cont_sv = 0;
|
||||
} else if (key == Common::KEYCODE_v) {
|
||||
con_voces = 1;
|
||||
withVoices = 1;
|
||||
print_abc(_textsys[_lang][2], 96, 86);
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
delay(1410);
|
||||
if (num_ejec != 3)
|
||||
cont_sv = 0;
|
||||
} else if (key == Common::KEYCODE_t) {
|
||||
con_voces = 0;
|
||||
withVoices = 0;
|
||||
print_abc(_textsys[_lang][3], 94, 86);
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
delay(1460);
|
||||
|
@ -765,7 +760,7 @@ bucles:
|
|||
goto bucles;
|
||||
}
|
||||
|
||||
void DrasculaEngine::agarra_objeto(int objeto) {
|
||||
void DrasculaEngine::pickObject(int objeto) {
|
||||
if (num_ejec == 6)
|
||||
loadPic("iconsp.alg");
|
||||
else if (num_ejec == 4)
|
||||
|
@ -775,7 +770,7 @@ void DrasculaEngine::agarra_objeto(int objeto) {
|
|||
else
|
||||
loadPic("icons.alg");
|
||||
decompressPic(dir_hare_fondo, 1);
|
||||
elige_objeto(objeto);
|
||||
chooseObject(objeto);
|
||||
if (num_ejec == 2)
|
||||
loadPic(fondo_y_menu);
|
||||
else
|
||||
|
@ -783,7 +778,7 @@ void DrasculaEngine::agarra_objeto(int objeto) {
|
|||
decompressPic(dir_hare_fondo, 1);
|
||||
}
|
||||
|
||||
void DrasculaEngine::elige_objeto(int objeto) {
|
||||
void DrasculaEngine::chooseObject(int objeto) {
|
||||
if (num_ejec == 5) {
|
||||
if (lleva_objeto == 1 && menu_scr == 0 && objeto_que_lleva != 16)
|
||||
suma_objeto(objeto_que_lleva);
|
||||
|
@ -813,7 +808,7 @@ int DrasculaEngine::resta_objeto(int osj) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
void DrasculaEngine::sin_verbo() {
|
||||
void DrasculaEngine::withoutVerb() {
|
||||
int c = 171;
|
||||
if (menu_scr == 1)
|
||||
c = 0;
|
||||
|
@ -841,8 +836,8 @@ bool DrasculaEngine::para_cargar(char nom_game[]) {
|
|||
delete ald;
|
||||
ald = NULL;
|
||||
}
|
||||
carga_escoba(datos_actuales);
|
||||
sin_verbo();
|
||||
carga_escoba(currentData);
|
||||
withoutVerb();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -882,7 +877,7 @@ void DrasculaEngine::carga_escoba(const char *nom_fich) {
|
|||
hay_nombre = 0;
|
||||
|
||||
strcpy(para_codificar, nom_fich);
|
||||
strcpy(datos_actuales, nom_fich);
|
||||
strcpy(currentData, nom_fich);
|
||||
|
||||
ald = new Common::File;
|
||||
ald->open(nom_fich);
|
||||
|
@ -944,7 +939,7 @@ martini:
|
|||
getLine(ald, buffer, size);
|
||||
sscanf(buffer, "%d", &num_obj[l]);
|
||||
getLine(ald, buffer, size);
|
||||
sscanf(buffer, "%s", nombre_obj[l]);
|
||||
sscanf(buffer, "%s", objName[l]);
|
||||
getLine(ald, buffer, size);
|
||||
sscanf(buffer, "%d", &x1[l]);
|
||||
getLine(ald, buffer, size);
|
||||
|
@ -1100,7 +1095,7 @@ martini:
|
|||
if (num_ejec == 5)
|
||||
hare_se_ve = 1;
|
||||
|
||||
actualiza_datos();
|
||||
updateData();
|
||||
|
||||
if (num_ejec == 1)
|
||||
espuerta[7] = 0;
|
||||
|
@ -1217,7 +1212,7 @@ void DrasculaEngine::comprueba_objetos() {
|
|||
if (x_raton > x1[l] && y_raton > y1[l]
|
||||
&& x_raton < x2[l] && y_raton < y2[l]
|
||||
&& visible[l] == 1 && espuerta[l] == 0) {
|
||||
strcpy(texto_nombre, nombre_obj[l]);
|
||||
strcpy(texto_nombre, objName[l]);
|
||||
hay_nombre = 1;
|
||||
veo = 1;
|
||||
}
|
||||
|
@ -1259,7 +1254,7 @@ void DrasculaEngine::elige_en_barra() {
|
|||
num_verbo = n;
|
||||
|
||||
if (num_verbo < 1)
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
else
|
||||
elige_verbo(num_verbo);
|
||||
}
|
||||
|
@ -1991,7 +1986,7 @@ void DrasculaEngine::anima(const char *animation, int FPS) {
|
|||
AuxBuffOrg = (byte *)malloc(Leng);
|
||||
FileIn.read(AuxBuffOrg, Leng);
|
||||
FileIn.read(cPal, 768);
|
||||
carga_pcx(AuxBuffOrg);
|
||||
loadPCX(AuxBuffOrg);
|
||||
free(AuxBuffOrg);
|
||||
memcpy(VGA, AuxBuffDes, 64000);
|
||||
_system->copyRectToScreen((const byte *)VGA, 320, 0, 0, 320, 200);
|
||||
|
@ -2004,7 +1999,7 @@ void DrasculaEngine::anima(const char *animation, int FPS) {
|
|||
AuxBuffOrg = (byte *)malloc(Leng);
|
||||
FileIn.read(AuxBuffOrg, Leng);
|
||||
FileIn.read(cPal, 768);
|
||||
carga_pcx(AuxBuffOrg);
|
||||
loadPCX(AuxBuffOrg);
|
||||
free(AuxBuffOrg);
|
||||
for (j = 0;j < 64000; j++) {
|
||||
VGA[j] = AuxBuffLast[j] = AuxBuffDes[j] ^ AuxBuffLast[j];
|
||||
|
@ -2201,7 +2196,7 @@ bool DrasculaEngine::carga_partida(const char *nom_game) {
|
|||
hay_que_load = 1;
|
||||
return false;
|
||||
}
|
||||
sav->read(datos_actuales, 20);
|
||||
sav->read(currentData, 20);
|
||||
hare_x = sav->readSint32LE();
|
||||
hare_y = sav->readSint32LE();
|
||||
sentido_hare = sav->readSint32LE();
|
||||
|
@ -2317,7 +2312,7 @@ void DrasculaEngine::color_hare() {
|
|||
palJuego[color][componente] = palHare[color][componente];
|
||||
}
|
||||
}
|
||||
ActualizaPaleta();
|
||||
updatePalette();
|
||||
}
|
||||
|
||||
void DrasculaEngine::funde_hare(int oscuridad) {
|
||||
|
@ -2331,7 +2326,7 @@ void DrasculaEngine::funde_hare(int oscuridad) {
|
|||
}
|
||||
}
|
||||
|
||||
ActualizaPaleta();
|
||||
updatePalette();
|
||||
}
|
||||
|
||||
void DrasculaEngine::paleta_hare_claro() {
|
||||
|
@ -2360,7 +2355,7 @@ void DrasculaEngine::hare_claro() {
|
|||
palJuego[color][componente] = palHareClaro[color][componente];
|
||||
}
|
||||
|
||||
ActualizaPaleta();
|
||||
updatePalette();
|
||||
}
|
||||
|
||||
void DrasculaEngine::empieza_andar() {
|
||||
|
@ -2540,7 +2535,7 @@ void DrasculaEngine::menu_sin_volcar() {
|
|||
char texto_icono[13];
|
||||
|
||||
x = sobre_que_objeto();
|
||||
strcpy(texto_icono, nombre_icono[x]);
|
||||
strcpy(texto_icono, iconName[x]);
|
||||
|
||||
for (n = 1; n < 43; n++) {
|
||||
h = objetos_que_tengo[n];
|
||||
|
@ -2590,7 +2585,7 @@ void DrasculaEngine::saca_objeto() {
|
|||
espera_soltar();
|
||||
|
||||
if (lleva_objeto == 1)
|
||||
elige_objeto(h);
|
||||
chooseObject(h);
|
||||
}
|
||||
|
||||
bool DrasculaEngine::sal_de_la_habitacion(int l) {
|
||||
|
@ -2768,7 +2763,7 @@ usando_verbos:
|
|||
}
|
||||
espera_soltar();
|
||||
if (lleva_objeto == 0)
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -2789,7 +2784,7 @@ bool DrasculaEngine::banderas(int fl) {
|
|||
|| (objeto_que_lleva == OPEN && fl == 22 && flags[23] == 0)) {
|
||||
talk(_text[_lang][164], "164.als");
|
||||
flags[23] = 1;
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
suma_objeto(7);
|
||||
suma_objeto(18);
|
||||
} else if (objeto_que_lleva == LOOK && fl == 22 && flags[23] == 1)
|
||||
|
@ -2883,8 +2878,8 @@ bool DrasculaEngine::banderas(int fl) {
|
|||
hay_respuesta = 0;
|
||||
} else if (num_ejec == 4) {
|
||||
if ((objeto_que_lleva == 18 && fl == 19) || (objeto_que_lleva == 19 && fl == 18)) {
|
||||
sin_verbo();
|
||||
elige_objeto(21);
|
||||
withoutVerb();
|
||||
chooseObject(21);
|
||||
resta_objeto(18);
|
||||
resta_objeto(19);
|
||||
} else if ((objeto_que_lleva == 14 && fl == 19) || (objeto_que_lleva == 19 && fl == 14))
|
||||
|
@ -3307,7 +3302,7 @@ void DrasculaEngine::introduce_nombre() {
|
|||
}
|
||||
|
||||
void DrasculaEngine::para_grabar(char nom_game[]) {
|
||||
graba_partida(nom_game);
|
||||
saveGame(nom_game);
|
||||
comienza_sound("99.als");
|
||||
fin_sound();
|
||||
}
|
||||
|
@ -3496,7 +3491,7 @@ void DrasculaEngine::WaitFrameSSN() {
|
|||
LastFrame = LastFrame + GlobalSpeed;
|
||||
}
|
||||
|
||||
byte *DrasculaEngine::carga_pcx(byte *NamePcc) {
|
||||
byte *DrasculaEngine::loadPCX(byte *NamePcc) {
|
||||
signed int con = 0;
|
||||
unsigned int X = 0;
|
||||
unsigned int fExit = 0;
|
||||
|
@ -3655,7 +3650,7 @@ void DrasculaEngine::cuadrante_4() {
|
|||
}
|
||||
}
|
||||
|
||||
void DrasculaEngine::graba_partida(char nom_game[]) {
|
||||
void DrasculaEngine::saveGame(char nom_game[]) {
|
||||
Common::OutSaveFile *out;
|
||||
int l;
|
||||
|
||||
|
@ -3663,7 +3658,7 @@ void DrasculaEngine::graba_partida(char nom_game[]) {
|
|||
error("no puedo abrir el archivo");
|
||||
}
|
||||
out->writeSint32LE(num_ejec);
|
||||
out->write(datos_actuales, 20);
|
||||
out->write(currentData, 20);
|
||||
out->writeSint32LE(hare_x);
|
||||
out->writeSint32LE(hare_y);
|
||||
out->writeSint32LE(sentido_hare);
|
||||
|
@ -3785,7 +3780,7 @@ void DrasculaEngine::conversa(const char *nom_fich) {
|
|||
strcpy(para_codificar, nom_fich);
|
||||
|
||||
if (num_ejec == 5)
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
|
||||
ald = new Common::File;
|
||||
ald->open(nom_fich);
|
||||
|
@ -3974,7 +3969,7 @@ bucle_opc:
|
|||
loadPic("99.alg");
|
||||
decompressPic(dir_hare_fondo, 1);
|
||||
if (num_ejec != 5)
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
}
|
||||
|
||||
void DrasculaEngine::print_abc_opc(const char *dicho, int x_pantalla, int y_pantalla, int juego) {
|
||||
|
@ -4285,7 +4280,7 @@ int DrasculaEngine::LookForFree() {
|
|||
return _mixer->isSoundHandleActive(_soundHandle);
|
||||
}
|
||||
|
||||
void DrasculaEngine::actualiza_datos() {
|
||||
void DrasculaEngine::updateData() {
|
||||
if (num_ejec == 1) {
|
||||
// nothing
|
||||
} else if (num_ejec == 2) {
|
||||
|
@ -4318,7 +4313,7 @@ void DrasculaEngine::actualiza_datos() {
|
|||
if (!strcmp(num_room, "22.alg") && flags[27] == 1)
|
||||
visible[3] = 0;
|
||||
if (!strcmp(num_room, "26.alg") && flags[21] == 0)
|
||||
strcpy(nombre_obj[2], _textmisc[_lang][0]);
|
||||
strcpy(objName[2], _textmisc[_lang][0]);
|
||||
if (!strcmp(num_room, "26.alg") && flags[18] == 1)
|
||||
visible[2] = 0;
|
||||
if (!strcmp(num_room, "26.alg") && flags[12] == 1)
|
||||
|
@ -4470,7 +4465,7 @@ comienza:
|
|||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
}
|
||||
|
||||
void DrasculaEngine::abre_puerta(int nflag, int n_puerta) {
|
||||
void DrasculaEngine::openDoor(int nflag, int n_puerta) {
|
||||
if (flags[nflag] == 0) {
|
||||
if (num_ejec == 1 /*|| num_ejec == 4*/) {
|
||||
if (nflag != 7) {
|
||||
|
@ -4487,7 +4482,7 @@ void DrasculaEngine::abre_puerta(int nflag, int n_puerta) {
|
|||
updateRoom();
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
fin_sound();
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4498,7 +4493,7 @@ void DrasculaEngine::mapa() {
|
|||
if (x_raton > x1[l] && y_raton > y1[l]
|
||||
&& x_raton < x2[l] && y_raton < y2[l]
|
||||
&& visible[l] == 1) {
|
||||
strcpy(texto_nombre, nombre_obj[l]);
|
||||
strcpy(texto_nombre, objName[l]);
|
||||
hay_nombre = 1;
|
||||
veo = 1;
|
||||
}
|
||||
|
@ -4528,7 +4523,7 @@ void DrasculaEngine::grr() {
|
|||
updateRoom();
|
||||
copyBackground(253, 110, 150, 65, 20, 30, dir_dibujo3, dir_zona_pantalla);
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(".groaaarrrrgghhh!", 153, 65);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -4580,7 +4575,7 @@ void DrasculaEngine::cierra_puerta(int nflag, int n_puerta) {
|
|||
updateRoom();
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
fin_sound();
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -372,10 +372,9 @@ public:
|
|||
|
||||
typedef char DacPalette256[256][3];
|
||||
|
||||
void asigna_rgb(byte *dir_lectura, int plt);
|
||||
void funde_rgb(int plt);
|
||||
void setRGB(byte *dir_lectura, int plt);
|
||||
void paleta_hare();
|
||||
void ActualizaPaleta();
|
||||
void updatePalette();
|
||||
void setvgapalette256(byte *PalBuf);
|
||||
void copyBackground(int xorg, int yorg, int xdes, int ydes, int Ancho,
|
||||
int Alto, byte *Origen, byte *Destino);
|
||||
|
@ -411,12 +410,12 @@ public:
|
|||
int hay_sb;
|
||||
int nivel_osc, musica_antes, musica_room;
|
||||
char num_room[20], roomDisk[20];
|
||||
char datos_actuales[20];
|
||||
char currentData[20];
|
||||
int objs_room;
|
||||
char fondo_y_menu[20];
|
||||
|
||||
char nombre_obj[30][20];
|
||||
char nombre_icono[44][13];
|
||||
char objName[30][20];
|
||||
char iconName[44][13];
|
||||
|
||||
int num_obj[40], visible[40], espuerta[40];
|
||||
int sitiobj_x[40], sitiobj_y[40], sentidobj[40];
|
||||
|
@ -425,7 +424,7 @@ public:
|
|||
int x_alakeva[40], y_alakeva[40], sentido_alkeva[40], alapuertakeva[40];
|
||||
int x1[40], y1[40], x2[40], y2[40];
|
||||
int lleva_objeto, objeto_que_lleva;
|
||||
int con_voces;
|
||||
int withVoices;
|
||||
int menu_bar, menu_scr, hay_nombre;
|
||||
char texto_nombre[20];
|
||||
int frame_ciego;
|
||||
|
@ -485,13 +484,13 @@ public:
|
|||
void talk_vbpuerta(const char *dicho, const char *filename);
|
||||
void talk_ciego(const char *, const char *, const char *);
|
||||
void talk_hacker(const char *, const char *);
|
||||
void agarra_objeto(int);
|
||||
void pickObject(int);
|
||||
void anda_parriba();
|
||||
void anda_pabajo();
|
||||
void pon_vb();
|
||||
void lleva_vb(int punto_x);
|
||||
void hipo_sin_nadie(int contador);
|
||||
void abre_puerta(int nflag, int n_puerta);
|
||||
void openDoor(int nflag, int n_puerta);
|
||||
void mapa();
|
||||
void animation_1_1();
|
||||
void animation_2_1();
|
||||
|
@ -574,7 +573,7 @@ public:
|
|||
void hare_oscuro();
|
||||
|
||||
|
||||
void sin_verbo();
|
||||
void withoutVerb();
|
||||
bool para_cargar(char[]);
|
||||
void carga_escoba(const char *);
|
||||
void clearRoom();
|
||||
|
@ -594,7 +593,7 @@ public:
|
|||
void delay(int ms);
|
||||
bool confirma_salir();
|
||||
void salva_pantallas();
|
||||
void elige_objeto(int objeto);
|
||||
void chooseObject(int objeto);
|
||||
void suma_objeto(int);
|
||||
int resta_objeto(int osj);
|
||||
void fliplay(const char *filefli, int vel);
|
||||
|
@ -638,7 +637,7 @@ public:
|
|||
void paleta_hare_claro();
|
||||
void paleta_hare_oscuro();
|
||||
void hare_claro();
|
||||
void actualiza_datos();
|
||||
void updateData();
|
||||
void empieza_andar();
|
||||
void updateRefresh();
|
||||
void updateRefresh_pre();
|
||||
|
@ -682,7 +681,7 @@ public:
|
|||
int frame_pen;
|
||||
int flag_tv;
|
||||
|
||||
byte *carga_pcx(byte *NamePcc);
|
||||
byte *loadPCX(byte *NamePcc);
|
||||
void set_dac(byte *dac);
|
||||
void WaitForNext(int FPS);
|
||||
int vez();
|
||||
|
@ -695,7 +694,7 @@ public:
|
|||
void update_62();
|
||||
void update_62_pre();
|
||||
void update_63();
|
||||
void graba_partida(char[]);
|
||||
void saveGame(char[]);
|
||||
void aumenta_num_frame();
|
||||
int sobre_que_objeto();
|
||||
bool comprueba_banderas_menu();
|
||||
|
|
|
@ -264,7 +264,7 @@ void DrasculaEngine::room_3(int fl) {
|
|||
updateRefresh();
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
pause(4);
|
||||
agarra_objeto(10);
|
||||
pickObject(10);
|
||||
flags[3] = 1;
|
||||
visible[8] = 0;
|
||||
} else if (objeto_que_lleva == LOOK && fl == 166)
|
||||
|
@ -273,7 +273,7 @@ void DrasculaEngine::room_3(int fl) {
|
|||
talk(_text[_lang][7], "7.als");
|
||||
else if (objeto_que_lleva == 14 && fl == 166 && flags[37] == 0) {
|
||||
animation_7_2();
|
||||
agarra_objeto(8);
|
||||
pickObject(8);
|
||||
} else if (objeto_que_lleva == 14 && fl == 166 && flags[37] == 1)
|
||||
talk(_text[_lang][323], "323.als");
|
||||
else if (objeto_que_lleva == LOOK && fl == 211)
|
||||
|
@ -288,7 +288,7 @@ void DrasculaEngine::room_3(int fl) {
|
|||
void DrasculaEngine::room_4(int fl) {
|
||||
if (objeto_que_lleva == MOVE && fl == 189 && flags[34] == 0) {
|
||||
talk(_text[_lang][327], "327.als");
|
||||
agarra_objeto(13);
|
||||
pickObject(13);
|
||||
flags[34] = 1;
|
||||
if (flags[7] == 1 && flags[26] == 1 && flags[34] == 1 && flags[35] == 1 && flags[37] == 1)
|
||||
flags[38] = 1;
|
||||
|
@ -342,7 +342,7 @@ void DrasculaEngine::room_6(int fl){
|
|||
else if (objeto_que_lleva == LOOK && fl == 138)
|
||||
talk(_text[_lang][35], "35.als");
|
||||
else if (objeto_que_lleva == OPEN && fl == 138)
|
||||
abre_puerta(0, 1);
|
||||
openDoor(0, 1);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 138)
|
||||
cierra_puerta(0, 1);
|
||||
else if (objeto_que_lleva == TALK && fl == 138)
|
||||
|
@ -400,7 +400,7 @@ void DrasculaEngine::room_6(int fl){
|
|||
copyRect(267, 1, hare_x - 14, hare_y - 2, 52, 73, dir_dibujo3, dir_zona_pantalla);
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
pause(19);
|
||||
agarra_objeto(9);
|
||||
pickObject(9);
|
||||
visible[4] = 0;
|
||||
flags[10] = 1;
|
||||
} else if (objeto_que_lleva == OPEN && fl == 140)
|
||||
|
@ -415,7 +415,7 @@ void DrasculaEngine::room_7(int fl){
|
|||
else if (objeto_que_lleva == LOOK && fl == 164)
|
||||
talk(_text[_lang][35], "35.als" );
|
||||
else if (objeto_que_lleva == PICK && fl == 190) {
|
||||
agarra_objeto(17);
|
||||
pickObject(17);
|
||||
flags[35] = 1;
|
||||
visible[3] = 0;
|
||||
if (flags[7] == 1 && flags[26] == 1 && flags[34] == 1 && flags[35] == 1 && flags[37] == 1)
|
||||
|
@ -427,7 +427,7 @@ void DrasculaEngine::room_7(int fl){
|
|||
void DrasculaEngine::room_8(int fl) {
|
||||
if (objeto_que_lleva == LOOK && fl == 147 && flags[7] == 0) {
|
||||
talk(_text[_lang][58], "58.als");
|
||||
agarra_objeto(15);
|
||||
pickObject(15);
|
||||
flags[7] = 1;
|
||||
if (flags[7] == 1 && flags[26] == 1 && flags[34] == 1 && flags[35] == 1 && flags[37] == 1)
|
||||
flags[38] = 1;
|
||||
|
@ -451,7 +451,7 @@ void DrasculaEngine::room_9(int fl){
|
|||
else if (objeto_que_lleva == 7 && fl == 51) {
|
||||
animation_6_2();
|
||||
resta_objeto(7);
|
||||
agarra_objeto(14);}
|
||||
pickObject(14);}
|
||||
else
|
||||
hay_respuesta = 0;
|
||||
}
|
||||
|
@ -472,7 +472,7 @@ void DrasculaEngine::room_12(int fl){
|
|||
else if (objeto_que_lleva == TALK && fl == 156)
|
||||
talk(_text[_lang][50], "50.als");
|
||||
else if (objeto_que_lleva == OPEN && fl == 156)
|
||||
abre_puerta(16, 4);
|
||||
openDoor(16, 4);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 156)
|
||||
cierra_puerta(16, 4);
|
||||
else
|
||||
|
@ -484,7 +484,7 @@ bool DrasculaEngine::room_13(int fl) {
|
|||
talk(_text[_lang][411], "411.als");
|
||||
sentido_hare = 3;
|
||||
talk(_text[_lang][412], "412.als");
|
||||
strcpy(nombre_obj[1], "yoda");
|
||||
strcpy(objName[1], "yoda");
|
||||
} else if (objeto_que_lleva == TALK && fl == 51)
|
||||
conversa("op_7.cal");
|
||||
else if (objeto_que_lleva == 19 && fl == 51)
|
||||
|
@ -551,12 +551,12 @@ void DrasculaEngine::room_15(int fl) {
|
|||
fin_sound();
|
||||
talk(_text[_lang][338], "338.als");
|
||||
flags[27] = 0;
|
||||
agarra_objeto(19);
|
||||
pickObject(19);
|
||||
resta_objeto(18);
|
||||
} else if (objeto_que_lleva == MOVE && fl == 188 && flags[27] == 0) {
|
||||
animation_34_2();
|
||||
talk(_text[_lang][339], "339.als");
|
||||
agarra_objeto(16);
|
||||
pickObject(16);
|
||||
flags[26] = 1;
|
||||
flags[27] = 1;
|
||||
if (flags[7] == 1 && flags[26] == 1 && flags[34] == 1 && flags[35] == 1 && flags[37] == 1)
|
||||
|
@ -577,7 +577,7 @@ void DrasculaEngine::room_16(int fl) {
|
|||
if (objeto_que_lleva == TALK && fl == 163)
|
||||
talk(_text[_lang][6], "6.als");
|
||||
else if (objeto_que_lleva == OPEN && fl == 163)
|
||||
abre_puerta(17, 0);
|
||||
openDoor(17, 0);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 163)
|
||||
cierra_puerta(17, 0);
|
||||
else if (objeto_que_lleva == LOOK && fl == 183)
|
||||
|
@ -589,14 +589,14 @@ void DrasculaEngine::room_16(int fl) {
|
|||
pause(3);
|
||||
talk_baul(_text[_lang][83], "d83.als");
|
||||
} else if (objeto_que_lleva == OPEN && fl == 183) {
|
||||
abre_puerta(19, NO_DOOR);
|
||||
openDoor(19, NO_DOOR);
|
||||
if (flags[20] == 0) {
|
||||
flags[20] = 1;
|
||||
sentido_hare = 3;
|
||||
updateRoom();
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
talk(_text[_lang][342], "342.als");
|
||||
agarra_objeto(22);
|
||||
pickObject(22);
|
||||
}
|
||||
} else if (objeto_que_lleva == CLOSE && fl == 183)
|
||||
cierra_puerta(19, NO_DOOR);
|
||||
|
@ -632,13 +632,13 @@ void DrasculaEngine::room_17(int fl) {
|
|||
else if (objeto_que_lleva == OPEN && fl == 177 && flags[14] == 0 && flags[18] == 0)
|
||||
animation_22_2();
|
||||
else if (objeto_que_lleva == OPEN && fl == 177 && flags[14] == 1)
|
||||
abre_puerta(15, 1);
|
||||
openDoor(15, 1);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 177 && flags[14] == 1)
|
||||
cierra_puerta(15, 1);
|
||||
else if (objeto_que_lleva == 11 && fl == 50 && flags[22] == 0) {
|
||||
talk(_text[_lang][347], "347.als");
|
||||
flags[29] = 1;
|
||||
agarra_objeto(23);
|
||||
pickObject(23);
|
||||
resta_objeto(11);
|
||||
} else
|
||||
hay_respuesta = 0;
|
||||
|
@ -658,7 +658,7 @@ void DrasculaEngine::room_18(int fl) {
|
|||
updateRefresh();
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
pause(4);
|
||||
agarra_objeto(12);
|
||||
pickObject(12);
|
||||
visible[2] = 0;
|
||||
flags[28] = 1;
|
||||
} else if (objeto_que_lleva == LOOK && fl == 182)
|
||||
|
@ -695,7 +695,7 @@ void DrasculaEngine::room_18(int fl) {
|
|||
pause(6);
|
||||
talk(_text[_lang][347], "347.als");
|
||||
flags[29] = 1;
|
||||
agarra_objeto(23);
|
||||
pickObject(23);
|
||||
resta_objeto(11);
|
||||
} else
|
||||
hay_respuesta = 0;
|
||||
|
@ -712,17 +712,17 @@ bool DrasculaEngine::room_21(int fl) {
|
|||
if (objeto_que_lleva == OPEN && fl == 101 && flags[28] == 0)
|
||||
talk(_text[_lang][419], "419.als");
|
||||
else if (objeto_que_lleva == OPEN && fl == 101 && flags[28] == 1)
|
||||
abre_puerta(0, 1);
|
||||
openDoor(0, 1);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 101)
|
||||
cierra_puerta(0, 1);
|
||||
else if(objeto_que_lleva == PICK && fl == 141) {
|
||||
agarra_objeto(19);
|
||||
pickObject(19);
|
||||
visible[2] = 0;
|
||||
flags[10] = 1;
|
||||
} else if(objeto_que_lleva == 7 && fl == 101) {
|
||||
flags[28] = 1;
|
||||
abre_puerta(0, 1);
|
||||
sin_verbo();
|
||||
openDoor(0, 1);
|
||||
withoutVerb();
|
||||
} else if (objeto_que_lleva == 21 && fl == 179) {
|
||||
animation_9_4();
|
||||
return true;
|
||||
|
@ -736,7 +736,7 @@ void DrasculaEngine::room_22(int fl) {
|
|||
if (objeto_que_lleva == PICK && fl == 140)
|
||||
talk(_text[_lang][7], "7.als");
|
||||
else if (objeto_que_lleva == 11 && fl == 140) {
|
||||
agarra_objeto(18);
|
||||
pickObject(18);
|
||||
visible[1] = 0;
|
||||
flags[24] = 1;
|
||||
} else if (objeto_que_lleva == 22 && fl == 52) {
|
||||
|
@ -745,9 +745,9 @@ void DrasculaEngine::room_22(int fl) {
|
|||
comienza_sound("s1.als");
|
||||
hipo(14);
|
||||
fin_sound();
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
resta_objeto(22);
|
||||
actualiza_datos();
|
||||
updateData();
|
||||
sentido_hare = 3;
|
||||
talk(_text[_lang][499], "499.als");
|
||||
talk(_text[_lang][500], "500.als");
|
||||
|
@ -758,7 +758,7 @@ void DrasculaEngine::room_22(int fl) {
|
|||
else if (objeto_que_lleva == PICK && fl == 180 && flags[26] == 0)
|
||||
talk(_text[_lang][420], "420.als");
|
||||
else if (objeto_que_lleva == PICK && fl == 180 && flags[26] == 1) {
|
||||
agarra_objeto(7);
|
||||
pickObject(7);
|
||||
visible[3] = 0;
|
||||
flags[27] = 1;
|
||||
} else
|
||||
|
@ -767,17 +767,17 @@ void DrasculaEngine::room_22(int fl) {
|
|||
|
||||
void DrasculaEngine::room_23(int fl) {
|
||||
if (objeto_que_lleva == OPEN && fl == 103) {
|
||||
abre_puerta(0, 0);
|
||||
actualiza_datos();
|
||||
openDoor(0, 0);
|
||||
updateData();
|
||||
} else if(objeto_que_lleva == CLOSE && fl == 103) {
|
||||
cierra_puerta(0, 0);
|
||||
actualiza_datos();
|
||||
updateData();
|
||||
} else if(objeto_que_lleva == OPEN && fl == 104)
|
||||
abre_puerta(1, 1);
|
||||
openDoor(1, 1);
|
||||
else if(objeto_que_lleva == CLOSE && fl == 104)
|
||||
cierra_puerta(1, 1);
|
||||
else if(objeto_que_lleva == PICK && fl == 142) {
|
||||
agarra_objeto(8);
|
||||
pickObject(8);
|
||||
visible[2] = 0;
|
||||
flags[11] = 1;
|
||||
if (flags[22] == 1 && flags[14] == 1)
|
||||
|
@ -790,11 +790,11 @@ void DrasculaEngine::room_23(int fl) {
|
|||
|
||||
void DrasculaEngine::room_24(int fl) {
|
||||
if (objeto_que_lleva == OPEN && fl == 105)
|
||||
abre_puerta(1, 0);
|
||||
openDoor(1, 0);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 105)
|
||||
cierra_puerta(1, 0);
|
||||
else if (objeto_que_lleva == OPEN && fl == 106)
|
||||
abre_puerta(2, 1);
|
||||
openDoor(2, 1);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 106)
|
||||
cierra_puerta(2, 1);
|
||||
else if (objeto_que_lleva == LOOK && fl == 151)
|
||||
|
@ -805,7 +805,7 @@ void DrasculaEngine::room_24(int fl) {
|
|||
|
||||
void DrasculaEngine::room_26(int fl) {
|
||||
if (objeto_que_lleva == OPEN && fl == 107 && flags[30] == 0)
|
||||
abre_puerta(2, 0);
|
||||
openDoor(2, 0);
|
||||
else if (objeto_que_lleva == OPEN && fl == 107 && flags[30] == 1)
|
||||
talk(_text[_lang][421], "421.als");
|
||||
else if (objeto_que_lleva == CLOSE && fl == 107)
|
||||
|
@ -820,7 +820,7 @@ void DrasculaEngine::room_26(int fl) {
|
|||
animation_5_4();
|
||||
else if (objeto_que_lleva == PICK && fl == 143 && flags[18] == 1) {
|
||||
lleva_al_hare(260, 180);
|
||||
agarra_objeto(10);
|
||||
pickObject(10);
|
||||
visible[1] = 0;
|
||||
flags[12] = 1;
|
||||
cierra_puerta(2, 0);
|
||||
|
@ -860,17 +860,17 @@ void DrasculaEngine::room_26(int fl) {
|
|||
|
||||
void DrasculaEngine::room_27(int fl) {
|
||||
if (objeto_que_lleva == OPEN && fl == 110)
|
||||
abre_puerta(6, 1);
|
||||
openDoor(6, 1);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 110)
|
||||
cierra_puerta(6, 1);
|
||||
else if (objeto_que_lleva == OPEN && fl == 116 && flags[23] == 0)
|
||||
talk(_text[_lang][419], "419.als");
|
||||
else if (objeto_que_lleva == OPEN && fl == 116 && flags[23] == 1)
|
||||
abre_puerta(5, 3);
|
||||
openDoor(5, 3);
|
||||
else if (objeto_que_lleva == 17 && fl == 116) {
|
||||
flags[23] = 1;
|
||||
abre_puerta(5,3);
|
||||
sin_verbo();
|
||||
openDoor(5,3);
|
||||
withoutVerb();
|
||||
} else if (objeto_que_lleva == LOOK && fl == 175)
|
||||
talk(_text[_lang][429], "429.als");
|
||||
else if (fl == 150)
|
||||
|
@ -881,7 +881,7 @@ void DrasculaEngine::room_27(int fl) {
|
|||
|
||||
void DrasculaEngine::room_29(int fl) {
|
||||
if (objeto_que_lleva == OPEN && fl == 114)
|
||||
abre_puerta(4, 1);
|
||||
openDoor(4, 1);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 114)
|
||||
cierra_puerta(4, 1);
|
||||
else if (objeto_que_lleva == LOOK && fl == 152)
|
||||
|
@ -900,18 +900,18 @@ void DrasculaEngine::room_29(int fl) {
|
|||
|
||||
void DrasculaEngine::room_30(int fl) {
|
||||
if (objeto_que_lleva == OPEN && fl == 115)
|
||||
abre_puerta(4, 0);
|
||||
openDoor(4, 0);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 115)
|
||||
cierra_puerta(4, 0);
|
||||
else if (objeto_que_lleva == OPEN && fl == 144 && flags[19] == 0)
|
||||
talk(_text[_lang][422], "422.als");
|
||||
else if (objeto_que_lleva == OPEN && fl == 144 && flags[19] == 1 && flags[22] == 1)
|
||||
abre_puerta(16, 1);
|
||||
openDoor(16, 1);
|
||||
else if (objeto_que_lleva == OPEN && fl == 144 && flags[19] == 1 && flags[22] == 0) {
|
||||
abre_puerta(16, 1);
|
||||
openDoor(16, 1);
|
||||
talk(_text[_lang][423], "423.als");
|
||||
flags[22] = 1;
|
||||
agarra_objeto(12);
|
||||
pickObject(12);
|
||||
if (flags[11] == 1 && flags[14] == 1)
|
||||
flags[18] = 1;
|
||||
if (flags[18] == 1)
|
||||
|
@ -931,11 +931,11 @@ void DrasculaEngine::room_30(int fl) {
|
|||
|
||||
void DrasculaEngine::room_31(int fl) {
|
||||
if (objeto_que_lleva == PICK && fl == 145) {
|
||||
agarra_objeto(11);
|
||||
pickObject(11);
|
||||
visible[1] = 0;
|
||||
flags[13] = 1;
|
||||
} else if (objeto_que_lleva == OPEN && fl == 117)
|
||||
abre_puerta(5, 0);
|
||||
openDoor(5, 0);
|
||||
else if (objeto_que_lleva == CLOSE && fl == 117)
|
||||
cierra_puerta(5, 0);
|
||||
else if (objeto_que_lleva == LOOK && fl == 161)
|
||||
|
@ -954,12 +954,12 @@ void DrasculaEngine::room_34(int fl) {
|
|||
else if (objeto_que_lleva == PICK && fl == 146)
|
||||
talk(_text[_lang][459], "459.als");
|
||||
else if (objeto_que_lleva == OPEN && fl == 120 && flags[25] == 1)
|
||||
abre_puerta(8, 2);
|
||||
openDoor(8, 2);
|
||||
else if (objeto_que_lleva == OPEN && fl == 120 && flags[25] == 0) {
|
||||
abre_puerta(8, 2);
|
||||
openDoor(8, 2);
|
||||
sentido_hare = 3;
|
||||
talk(_text[_lang][425], "425.als");
|
||||
agarra_objeto(14);
|
||||
pickObject(14);
|
||||
flags[25] = 1;
|
||||
} else if (objeto_que_lleva == CLOSE && fl == 120)
|
||||
cierra_puerta(8, 2);
|
||||
|
@ -969,7 +969,7 @@ void DrasculaEngine::room_34(int fl) {
|
|||
|
||||
void DrasculaEngine::room_35(int fl) {
|
||||
if (objeto_que_lleva == PICK && fl == 148) {
|
||||
agarra_objeto(16);
|
||||
pickObject(16);
|
||||
visible[2] = 0;
|
||||
flags[14] = 1;
|
||||
if (flags[11] == 1 && flags[22] == 1)
|
||||
|
@ -978,13 +978,13 @@ void DrasculaEngine::room_35(int fl) {
|
|||
animation_6_4();
|
||||
} else if (objeto_que_lleva == PICK && fl == 147) {
|
||||
talk(_text[_lang][426], "426.als");
|
||||
agarra_objeto(15);
|
||||
pickObject(15);
|
||||
visible[1] = 0;
|
||||
flags[15] = 1;
|
||||
flags[17] = 1;
|
||||
actualiza_datos();
|
||||
updateData();
|
||||
} else if (objeto_que_lleva == PICK && fl == 149) {
|
||||
agarra_objeto(13);
|
||||
pickObject(13);
|
||||
visible[3] = 0;
|
||||
flags[17] = 0;
|
||||
} else
|
||||
|
@ -1019,7 +1019,7 @@ void DrasculaEngine::room_49(int fl){
|
|||
|
||||
void DrasculaEngine::room_53(int fl) {
|
||||
if (objeto_que_lleva == PICK && fl == 120) {
|
||||
agarra_objeto(16);
|
||||
pickObject(16);
|
||||
visible[3] = 0;
|
||||
} else if (objeto_que_lleva == LOOK && fl == 121)
|
||||
talk(_text[_lang][128], "128.als");
|
||||
|
@ -1037,11 +1037,11 @@ void DrasculaEngine::room_53(int fl) {
|
|||
animation_9_5();
|
||||
else if (objeto_que_lleva == 16 && fl == 121) {
|
||||
flags[2] = 1;
|
||||
sin_verbo();
|
||||
actualiza_datos();
|
||||
withoutVerb();
|
||||
updateData();
|
||||
} else if (objeto_que_lleva == 16) {
|
||||
talk(_text[_lang][439], "439.als");
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
visible[3] = 1;
|
||||
} else
|
||||
hay_respuesta = 0;
|
||||
|
@ -1068,10 +1068,10 @@ void DrasculaEngine::room_54(int fl) {
|
|||
} else if (objeto_que_lleva == TALK && fl == 53 && flags[14] == 1)
|
||||
talk(_text[_lang][109], "109.als");
|
||||
else if (objeto_que_lleva == PICK && fl == 9999 && flags[13] == 0) {
|
||||
agarra_objeto(8);
|
||||
pickObject(8);
|
||||
flags[13] = 1;
|
||||
talk_mus(_texte[_lang][10], "e10.als");
|
||||
actualiza_datos();
|
||||
updateData();
|
||||
} else if (objeto_que_lleva == OPEN && fl == 119)
|
||||
talk(_text[_lang][125], "125.als");
|
||||
else if (objeto_que_lleva == LOOK && fl == 119)
|
||||
|
@ -1079,7 +1079,7 @@ void DrasculaEngine::room_54(int fl) {
|
|||
else if (objeto_que_lleva == 10 && fl == 119) {
|
||||
pause(4);
|
||||
talk(_text[_lang][436], "436.als");
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
resta_objeto(10);
|
||||
} else
|
||||
hay_respuesta = 0;
|
||||
|
@ -1087,9 +1087,9 @@ void DrasculaEngine::room_54(int fl) {
|
|||
|
||||
void DrasculaEngine::room_55(int fl) {
|
||||
if (objeto_que_lleva == PICK && fl == 122) {
|
||||
agarra_objeto(12);
|
||||
pickObject(12);
|
||||
flags[8] = 1;
|
||||
actualiza_datos();
|
||||
updateData();
|
||||
} else if (objeto_que_lleva == LOOK && fl == 122)
|
||||
talk(_text[_lang][138], "138.als");
|
||||
else if (objeto_que_lleva == LOOK && fl == 204)
|
||||
|
@ -1197,7 +1197,7 @@ void DrasculaEngine::room_59(int fl) {
|
|||
decompressPic(dir_dibujo1, MEDIA);
|
||||
sentido_hare = 3;
|
||||
talk(_text[_lang][245], "245.als");
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
flags[11] = 1;
|
||||
}
|
||||
} else
|
||||
|
@ -1213,7 +1213,7 @@ bool DrasculaEngine::room_60(int fl) {
|
|||
talk(_text[_lang][266], "266.als");
|
||||
talk_taber2(_textt[_lang][1], "t1.als");
|
||||
conversa("op_12.cal");
|
||||
sin_verbo();
|
||||
withoutVerb();
|
||||
objeto_que_lleva = 0;
|
||||
} else if (objeto_que_lleva == TALK && fl == 115)
|
||||
talk(_text[_lang][455], "455.als");
|
||||
|
@ -1301,7 +1301,7 @@ void DrasculaEngine::room_pendulo(int fl) {
|
|||
else if (objeto_que_lleva == LOOK && fl == 101)
|
||||
talk (_text[_lang][123], "123.als");
|
||||
else if (objeto_que_lleva == PICK && fl == 101)
|
||||
agarra_objeto(20);
|
||||
pickObject(20);
|
||||
else if (objeto_que_lleva == 20 && fl == 100)
|
||||
animation_6_6();
|
||||
else if (objeto_que_lleva == PICK || objeto_que_lleva == OPEN)
|
||||
|
|
|
@ -70,7 +70,7 @@ bucless:
|
|||
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, x_igor + 26, y_igor);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -147,7 +147,7 @@ bucless:
|
|||
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, x_dr + 19, y_dr);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -224,7 +224,7 @@ bucless:
|
|||
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, x_dr + 19, y_dr);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -290,7 +290,7 @@ void DrasculaEngine::talk_solo(const char *dicho, const char *filename) {
|
|||
|
||||
bucless:
|
||||
|
||||
if (con_voces == 0) {
|
||||
if (withVoices == 0) {
|
||||
if (num_ejec == 1)
|
||||
centra_texto(dicho, 156, 90);
|
||||
else if (num_ejec == 6)
|
||||
|
@ -367,7 +367,7 @@ bucless:
|
|||
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, x_igor + 26, y_igor);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -450,7 +450,7 @@ bucless:
|
|||
pon_hare();
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 132, 45);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -518,7 +518,7 @@ bucless:
|
|||
pon_hare();
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, x_bj + 7, y_bj);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -527,7 +527,7 @@ bucless:
|
|||
} else {
|
||||
updateRoom();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 93, 80);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -673,7 +673,7 @@ bucless:
|
|||
updateRefresh();
|
||||
}
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, hare_x, hare_y);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -744,7 +744,7 @@ bucless:
|
|||
pon_hare();
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 221, 128);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -823,7 +823,7 @@ bucless:
|
|||
pon_hare();
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 181, 54);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -906,7 +906,7 @@ bucless:
|
|||
updateRefresh();
|
||||
}
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, vb_x, 66);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -961,7 +961,7 @@ void DrasculaEngine::talk_vbpuerta(const char *dicho, const char *filename) {
|
|||
bucless:
|
||||
|
||||
updateRoom();
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 150, 80);
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
||||
|
@ -1062,7 +1062,7 @@ bucless:
|
|||
|
||||
copyRectClip( pos_ciego, num_cara, dir_zona_pantalla);
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 310, 71);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1113,7 +1113,7 @@ void DrasculaEngine::talk_hacker(const char *dicho, const char *filename) {
|
|||
}
|
||||
|
||||
bucless:
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 156, 170);
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
||||
|
@ -1174,7 +1174,7 @@ bucless:
|
|||
pon_hare();
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 203, 78);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1239,7 +1239,7 @@ bucless:
|
|||
pon_hare();
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 197, 64);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1310,7 +1310,7 @@ bucless:
|
|||
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 160, 105);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1379,7 +1379,7 @@ bucless:
|
|||
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 195, 107);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1446,7 +1446,7 @@ bucless:
|
|||
pon_hare();
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 132, 45);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1512,7 +1512,7 @@ bucless:
|
|||
pon_hare();
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 104, 102);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1581,7 +1581,7 @@ bucless:
|
|||
|
||||
copyBackground(x_talk[cara], 1, 45, 24, 92, 108, (byte *)num_cara, dir_zona_pantalla);
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 90, 50);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1703,7 +1703,7 @@ bucless:
|
|||
updateRefresh();
|
||||
}
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, hare_x, hare_y);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1769,7 +1769,7 @@ bucless:
|
|||
flags[19] = cara;
|
||||
updateRoom();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 263, 69);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1823,7 +1823,7 @@ void DrasculaEngine::talk_igorpuerta(const char *dicho, const char *filename) {
|
|||
bucless:
|
||||
|
||||
updateRoom();
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 87, 66);
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
||||
|
@ -1885,7 +1885,7 @@ bucless:
|
|||
pon_hare();
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 221, 102);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
@ -1950,7 +1950,7 @@ bucless:
|
|||
pon_hare();
|
||||
updateRefresh();
|
||||
|
||||
if (con_voces == 0)
|
||||
if (withVoices == 0)
|
||||
centra_texto(dicho, 221, 102);
|
||||
|
||||
updateScreen(0, 0, 0, 0, 320, 200, dir_zona_pantalla);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue