Skip to content

Commit

Permalink
DREAMWEB: 'eden' ported to C++
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Dec 1, 2011
1 parent 270eb87 commit ba12c02
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
1 change: 1 addition & 0 deletions devtools/tasmrecover/tasm-recover
Expand Up @@ -339,6 +339,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'othersmoker',
'barwoman',
'gamer',
'eden',
], skip_output = [
# These functions are processed but not output
'dreamweb',
Expand Down
9 changes: 0 additions & 9 deletions engines/dreamweb/dreamgen.cpp
Expand Up @@ -170,15 +170,6 @@ void DreamGenContext::manasleep() {
addtopeoplelist();
}

void DreamGenContext::eden() {
STACK_CHECK;
_cmp(data.byte(kGeneraldead), 0);
if (!flags.z())
return /* (notinbed) */;
showgamereel();
addtopeoplelist();
}

void DreamGenContext::edeninbath() {
STACK_CHECK;
_cmp(data.byte(kGeneraldead), 0);
Expand Down
2 changes: 0 additions & 2 deletions engines/dreamweb/dreamgen.h
Expand Up @@ -478,7 +478,6 @@ class DreamGenContext : public Context {
static const uint16 addr_femalefan = 0xc028;
static const uint16 addr_malefan = 0xc024;
static const uint16 addr_edeninbath = 0xc020;
static const uint16 addr_eden = 0xc01c;
static const uint16 addr_manasleep = 0xc018;
static const uint16 addr_attendant = 0xc014;
static const uint16 addr_smokebloke = 0xc010;
Expand Down Expand Up @@ -1173,7 +1172,6 @@ class DreamGenContext : public Context {
void fadedownmon();
void loadcart();
void bartender();
void eden();
void showdiary();
void outofopen();
void dircom();
Expand Down
11 changes: 9 additions & 2 deletions engines/dreamweb/sprite.cpp
Expand Up @@ -569,7 +569,7 @@ void DreamGenContext::showrain() {

static void (DreamGenContext::*reelCallbacks[57])() = {
NULL, NULL,
&DreamGenContext::eden, &DreamGenContext::edeninbath,
NULL, &DreamGenContext::edeninbath,
&DreamGenContext::sparky, &DreamGenContext::smokebloke,
&DreamGenContext::manasleep, &DreamGenContext::drunk,
&DreamGenContext::receptionist, &DreamGenContext::malefan,
Expand Down Expand Up @@ -601,7 +601,7 @@ static void (DreamGenContext::*reelCallbacks[57])() = {

static void (DreamGenContext::*reelCallbacksCPP[57])(ReelRoutine &) = {
&DreamGenContext::gamer, &DreamGenContext::sparkydrip,
/*&DreamGenContext::eden*/NULL, /*&DreamGenContext::edeninbath*/NULL,
&DreamGenContext::eden, /*&DreamGenContext::edeninbath*/NULL,
/*&DreamGenContext::sparky*/NULL, /*&DreamGenContext::smokebloke*/NULL,
/*&DreamGenContext::manasleep*/NULL, /*&DreamGenContext::drunk*/NULL,
/*&DreamGenContext::receptionist*/NULL, /*&DreamGenContext::malefan*/NULL,
Expand Down Expand Up @@ -1100,5 +1100,12 @@ void DreamGenContext::gamer(ReelRoutine &routine) {
addtopeoplelist(&routine);
}

void DreamGenContext::eden(ReelRoutine &routine) {
if (data.byte(kGeneraldead))
return;
showgamereel(&routine);
addtopeoplelist(&routine);
}

} /*namespace dreamgen */

1 change: 1 addition & 0 deletions engines/dreamweb/stubs.h
Expand Up @@ -380,4 +380,5 @@
void sparkydrip(ReelRoutine &routine);
void othersmoker(ReelRoutine &routine);
void gamer(ReelRoutine &routine);
void eden(ReelRoutine &routine);

0 comments on commit ba12c02

Please sign in to comment.