Skip to content

Commit

Permalink
LASTEXPRESS: Identify some Abbot Chapter 3 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Templier committed Aug 28, 2012
1 parent 17c051b commit 6f18ec2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions engines/lastexpress/entities/abbot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ Abbot::Abbot(LastExpressEngine *engine) : Entity(engine, kEntityAbbot) {
ADD_CALLBACK_FUNCTION(Abbot, chapter2);
ADD_CALLBACK_FUNCTION(Abbot, chapter3);
ADD_CALLBACK_FUNCTION(Abbot, chapter3Handler);
ADD_CALLBACK_FUNCTION(Abbot, function19);
ADD_CALLBACK_FUNCTION(Abbot, function20);
ADD_CALLBACK_FUNCTION(Abbot, function21);
ADD_CALLBACK_FUNCTION(Abbot, function22);
ADD_CALLBACK_FUNCTION(Abbot, conversationWithBoutarel);
ADD_CALLBACK_FUNCTION(Abbot, readPaper);
ADD_CALLBACK_FUNCTION(Abbot, goToLunch);
ADD_CALLBACK_FUNCTION(Abbot, haveLunch);
ADD_CALLBACK_FUNCTION(Abbot, function23);
ADD_CALLBACK_FUNCTION(Abbot, function24);
ADD_CALLBACK_FUNCTION(Abbot, function25);
Expand Down Expand Up @@ -259,7 +259,7 @@ IMPLEMENT_FUNCTION(18, Abbot, chapter3Handler)
getData()->entityPosition = kPosition_6470;
getData()->location = kLocationInsideCompartment;

setup_function19();
setup_conversationWithBoutarel();
break;
}
break;
Expand All @@ -272,7 +272,7 @@ IMPLEMENT_FUNCTION(18, Abbot, chapter3Handler)
IMPLEMENT_FUNCTION_END

//////////////////////////////////////////////////////////////////////////
IMPLEMENT_FUNCTION(19, Abbot, function19)
IMPLEMENT_FUNCTION(19, Abbot, conversationWithBoutarel)
switch (savepoint.action) {
default:
break;
Expand Down Expand Up @@ -311,21 +311,21 @@ IMPLEMENT_FUNCTION(19, Abbot, function19)

case 3:
getSavePoints()->push(kEntityAbbot, kEntityBoutarel, kAction122288808);
setup_function20();
setup_readPaper();
break;
}
}
IMPLEMENT_FUNCTION_END

//////////////////////////////////////////////////////////////////////////
IMPLEMENT_FUNCTION(20, Abbot, function20)
IMPLEMENT_FUNCTION(20, Abbot, readPaper)
switch (savepoint.action) {
default:
break;

case kActionNone:
if (getState()->time > kTime1966500 && getEntities()->isInRestaurant(kEntityBoutarel))
setup_function21();
setup_goToLunch();
break;

case kActionDefault:
Expand All @@ -335,7 +335,7 @@ IMPLEMENT_FUNCTION(20, Abbot, function20)
IMPLEMENT_FUNCTION_END

//////////////////////////////////////////////////////////////////////////
IMPLEMENT_FUNCTION(21, Abbot, function21)
IMPLEMENT_FUNCTION(21, Abbot, goToLunch)
switch (savepoint.action) {
default:
break;
Expand Down Expand Up @@ -393,7 +393,7 @@ IMPLEMENT_FUNCTION(21, Abbot, function21)
break;

case 7:
setup_function22();
setup_haveLunch();
break;
}
break;
Expand All @@ -409,7 +409,7 @@ IMPLEMENT_FUNCTION(21, Abbot, function21)
IMPLEMENT_FUNCTION_END

//////////////////////////////////////////////////////////////////////////
IMPLEMENT_FUNCTION(22, Abbot, function22)
IMPLEMENT_FUNCTION(22, Abbot, haveLunch)
switch (savepoint.action) {
default:
break;
Expand Down
8 changes: 4 additions & 4 deletions engines/lastexpress/entities/abbot.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ class Abbot : public Entity {
* Handle Chapter 3 events
*/
DECLARE_FUNCTION(chapter3Handler)
DECLARE_FUNCTION(function19)
DECLARE_FUNCTION(function20)
DECLARE_FUNCTION(function21)
DECLARE_FUNCTION(function22)
DECLARE_FUNCTION(conversationWithBoutarel)
DECLARE_FUNCTION(readPaper)
DECLARE_FUNCTION(goToLunch)
DECLARE_FUNCTION(haveLunch)
DECLARE_FUNCTION(function23)
DECLARE_FUNCTION(function24)
DECLARE_FUNCTION(function25)
Expand Down

0 comments on commit 6f18ec2

Please sign in to comment.