Skip to content

Commit

Permalink
FULLPIPE: Implement lift_getButtonIdH()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 26, 2014
1 parent f7c7685 commit 704eca2
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 20 deletions.
28 changes: 19 additions & 9 deletions engines/fullpipe/constants.h
Expand Up @@ -219,25 +219,35 @@ namespace Fullpipe {
#define SND_INTR_019 5220
#define ST_EGTR_SLIMSORROW 340
#define ST_FLY_FLY 4918
#define ST_LBN_0H 2835
#define ST_LBN_1H 2791
#define ST_LBN_2H 2793
#define ST_LBN_3H 2795
#define ST_LBN_4H 2797
#define ST_LBN_5H 2799
#define ST_LBN_6H 2801
#define ST_LBN_7H 2803
#define ST_LBN_8H 2805
#define ST_LBN_9H 2807
#define ST_LBN_0N 2832
#define ST_LBN_0P 2833
#define ST_LBN_1N 2753
#define ST_LBN_1P 2754
#define ST_LBN_2N 2756
#define ST_LBN_2P 2757
#define ST_LBN_3N 2759
#define ST_LBN_3P 2760
#define ST_LBN_4N 2762
#define ST_LBN_4P 2763
#define ST_LBN_5N 2765
#define ST_LBN_5P 2766
#define ST_LBN_6N 2768
#define ST_LBN_6P 2769
#define ST_LBN_7N 2771
#define ST_LBN_7P 2772
#define ST_LBN_8N 2774
#define ST_LBN_8P 2775
#define ST_LBN_9N 2777
#define ST_LBN_0P 2833
#define ST_LBN_1P 2754
#define ST_LBN_2P 2757
#define ST_LBN_3P 2760
#define ST_LBN_4P 2763
#define ST_LBN_5P 2766
#define ST_LBN_6P 2769
#define ST_LBN_7P 2772
#define ST_LBN_8P 2775
#define ST_LBN_9P 2778
#define ST_MAN_EMPTY 476
#define ST_MAN_GOU 459
Expand Down
1 change: 1 addition & 0 deletions engines/fullpipe/fullpipe.h
Expand Up @@ -272,6 +272,7 @@ class FullpipeEngine : public ::Engine {
StaticANIObject *_lastLiftButton;

int lift_getButtonIdP(int objid);
int lift_getButtonIdH(int objid);
void lift_setButton(const char *name, int state);
void lift_sub5(Scene *sc, int qu1, int qu2);
void lift_sub7(Scene *sc, int buttonId);
Expand Down
58 changes: 47 additions & 11 deletions engines/fullpipe/lift.cpp
Expand Up @@ -32,37 +32,73 @@ int FullpipeEngine::lift_getButtonIdP(int objid) {
switch (objid) {
case ST_LBN_0N:
return ST_LBN_0P;
break;

case ST_LBN_1N:
return ST_LBN_1P;
break;

case ST_LBN_2N:
return ST_LBN_2P;
break;

case ST_LBN_3N:
return ST_LBN_3P;
break;

case ST_LBN_4N:
return ST_LBN_4P;
break;

case ST_LBN_5N:
return ST_LBN_5P;
break;

case ST_LBN_6N:
return ST_LBN_6P;
break;

case ST_LBN_7N:
return ST_LBN_7P;
break;

case ST_LBN_8N:
return ST_LBN_8P;
break;

case ST_LBN_9N:
return ST_LBN_9P;
break;

default:
return 0;
}
}

int FullpipeEngine::lift_getButtonIdH(int objid) {
switch (objid) {
case ST_LBN_0P:
return ST_LBN_0H;

case ST_LBN_1P:
return ST_LBN_1H;

case ST_LBN_2P:
return ST_LBN_2H;

case ST_LBN_3P:
return ST_LBN_3H;

case ST_LBN_4P:
return ST_LBN_4H;

case ST_LBN_5P:
return ST_LBN_5H;

case ST_LBN_6P:
return ST_LBN_6H;

case ST_LBN_7P:
return ST_LBN_7H;

case ST_LBN_8P:
return ST_LBN_8H;

case ST_LBN_9P:
return ST_LBN_9H;

default:
return 0;
break;
}
}

Expand Down

0 comments on commit 704eca2

Please sign in to comment.