mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 19:08:15 +00:00
FULLPIPE: Consolidate lift-related functions in one file
This commit is contained in:
parent
82ddda825d
commit
39f4a502e2
@ -234,6 +234,7 @@ public:
|
||||
void getAllInventory();
|
||||
|
||||
int lift_getButtonIdP(int objid);
|
||||
void lift_setButton(const char *name, int state);
|
||||
void lift_sub5(Scene *sc, int qu1, int qu2);
|
||||
void lift_exitSeq(ExCommand *ex);
|
||||
void lift_closedoorSeq();
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
#include "fullpipe/fullpipe.h"
|
||||
|
||||
#include "fullpipe/objects.h"
|
||||
#include "fullpipe/objectnames.h"
|
||||
#include "fullpipe/constants.h"
|
||||
|
||||
namespace Fullpipe {
|
||||
@ -64,6 +66,13 @@ int FullpipeEngine::lift_getButtonIdP(int objid) {
|
||||
}
|
||||
}
|
||||
|
||||
void FullpipeEngine::lift_setButton(const char *name, int state) {
|
||||
GameVar *var = g_fullpipe->getGameLoaderGameVar()->getSubVarByName("OBJSTATES")->getSubVarByName(sO_LiftButtons);
|
||||
|
||||
if (var)
|
||||
var->setSubVarAsInt(name, state);
|
||||
}
|
||||
|
||||
void FullpipeEngine::lift_sub5(Scene *sc, int qu1, int qu2) {
|
||||
warning("STUB: FullpipeEngine::lift_sub5()");
|
||||
}
|
||||
|
@ -44,7 +44,6 @@
|
||||
namespace Fullpipe {
|
||||
|
||||
int defaultUpdateCursor();
|
||||
void setElevatorButton(const char *name, int state);
|
||||
|
||||
int sceneIntro_updateCursor();
|
||||
void sceneIntro_initScene(Scene *sc);
|
||||
@ -685,13 +684,6 @@ bool FullpipeEngine::sceneSwitcher(EntranceInfo *entrance) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void setElevatorButton(const char *name, int state) {
|
||||
GameVar *var = g_fullpipe->getGameLoaderGameVar()->getSubVarByName("OBJSTATES")->getSubVarByName(sO_LiftButtons);
|
||||
|
||||
if (var)
|
||||
var->setSubVarAsInt(name, state);
|
||||
}
|
||||
|
||||
void global_messageHandler_KickStucco() {
|
||||
warning("STUB: global_messageHandler_KickStucco()");
|
||||
}
|
||||
@ -1518,7 +1510,7 @@ void scene01_initScene(Scene *sc, int entrance) {
|
||||
bootAnim->_flags &= ~0x04;
|
||||
}
|
||||
|
||||
setElevatorButton(sO_Level2, ST_LBN_2N);
|
||||
g_fullpipe->lift_setButton(sO_Level2, ST_LBN_2N);
|
||||
}
|
||||
|
||||
int sceneHandler01(ExCommand *cmd) {
|
||||
@ -1680,7 +1672,7 @@ void scene03_initScene(Scene *sc) {
|
||||
g_vars->swallowedEgg2 = v->getSubVarByName(sO_Egg2);
|
||||
g_vars->swallowedEgg3 = v->getSubVarByName(sO_Egg3);
|
||||
|
||||
setElevatorButton(sO_Level2, ST_LBN_2N);
|
||||
g_fullpipe->lift_setButton(sO_Level2, ST_LBN_2N);
|
||||
|
||||
g_fullpipe->lift_sub5(sc, QU_SC3_ENTERLIFT, QU_SC3_EXITLIFT);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user