aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorjohndoe1232012-10-02 07:52:15 +0000
committerWillem Jan Palenstijn2013-05-08 20:43:46 +0200
commit3ef691f1afe733e21371eca11e170b8d71783f5c (patch)
tree505647b38bb7b5112f87b5a701725cbb8060a315 /engines
parent4fef1ac9f21ba3f86dc453d1b11d9233ecd11bc0 (diff)
downloadscummvm-rg350-3ef691f1afe733e21371eca11e170b8d71783f5c.tar.gz
scummvm-rg350-3ef691f1afe733e21371eca11e170b8d71783f5c.tar.bz2
scummvm-rg350-3ef691f1afe733e21371eca11e170b8d71783f5c.zip
NEVERHOOD: Rename
- Also fix compilation (oops)
Diffstat (limited to 'engines')
-rw-r--r--engines/neverhood/klayman.cpp6
-rw-r--r--engines/neverhood/klayman.h28
2 files changed, 17 insertions, 17 deletions
diff --git a/engines/neverhood/klayman.cpp b/engines/neverhood/klayman.cpp
index 76a2ebf5ef..1036478932 100644
--- a/engines/neverhood/klayman.cpp
+++ b/engines/neverhood/klayman.cpp
@@ -502,13 +502,13 @@ void Klayman::stTryStandIdle() {
_idleCounter = 0;
_blinkCounter = 0;
_blinkCounterMax = _vm->_rnd->getRandomNumber(64) + 24;
- SetUpdateHandler(&Klayman::upIdle);
+ SetUpdateHandler(&Klayman::upStandIdle);
SetMessageHandler(&Klayman::hmLowLevel);
SetSpriteUpdate(NULL);
}
}
-void Klayman::upIdle() {
+void Klayman::upStandIdle() {
update();
if (++_idleCounter >= 720) {
_idleCounter = 0;
@@ -588,7 +588,7 @@ void Klayman::stStandAround() {
_status2 = 1;
_acceptInput = true;
startAnimation(0x5420E254, 0, -1);
- SetUpdateHandler(&Klayman::upIdle);
+ SetUpdateHandler(&Klayman::upStandIdle);
SetMessageHandler(&Klayman::hmLowLevel);
SetSpriteUpdate(NULL);
}
diff --git a/engines/neverhood/klayman.h b/engines/neverhood/klayman.h
index 4d0c969a10..a7ea670658 100644
--- a/engines/neverhood/klayman.h
+++ b/engines/neverhood/klayman.h
@@ -318,6 +318,19 @@ protected:
// TODO Check if this can be turned into a void result
virtual uint32 xHandleMessage(int messageNum, const MessageParam &param);
+ void startWalkToX(int16 x, bool flag);
+ void startWalkToXExt(int16 x);
+ void startWalkToXSmall(int16 x);
+ void startSpecialWalkLeft(int16 x);
+ void startSpecialWalkRight(int16 x);
+ void sub41CC40(int16 x1, int16 x2);
+ void sub41CCE0(int16 x);
+
+ bool stStartActionFromIdle(AnimationCb callback);
+ void gotoNextStateExt();
+ void sub41C770();
+ void sub41C790();
+
void stIdlePickEar();
void evIdlePickEarDone();
uint32 hmIdlePickEar(int messageNum, const MessageParam &param, Entity *sender);
@@ -338,20 +351,13 @@ protected:
void startIdleAnimation(uint32 fileHash, AnimationCb callback);
void upIdleAnimation();
- bool stStartActionFromIdle(AnimationCb callback);
- void gotoNextStateExt();
- void sub41C770();
- void sub41C790();
-
- void upIdle();
+ void upStandIdle();
void stIdleBlink();
void stStandAround();
uint32 hmStartAction(int messageNum, const MessageParam &param, Entity *sender);
- void startWalkToX(int16 x, bool flag);
-
uint32 hmSleeping(int messageNum, const MessageParam &param, Entity *sender);
bool stStartAction(AnimationCb callback3);
@@ -359,7 +365,6 @@ protected:
void stSneak();
void stWalkingDone();
uint32 hmSneaking(int messageNum, const MessageParam &param, Entity *sender);
- void startSpecialWalkLeft(int16 x);
void stStartWalking();
uint32 hmStartWalking(int messageNum, const MessageParam &param, Entity *sender);
@@ -367,10 +372,6 @@ protected:
uint32 hmPressButton(int messageNum, const MessageParam &param, Entity *sender);
- void startSpecialWalkRight(int16 x);
- void sub41CC40(int16 x1, int16 x2);
- void startWalkToXExt(int16 x);
- void sub41CCE0(int16 x);
void stLargeStepDone();
uint32 hmLargeStep(int messageNum, const MessageParam &param, Entity *sender);
@@ -393,7 +394,6 @@ protected:
uint32 hmInsertDisk(int messageNum, const MessageParam &param, Entity *sender);
- void startWalkToXSmall(int16 x);
void stStartWalkingSmall();
uint32 hmWalkingSmall(int messageNum, const MessageParam &param, Entity *sender);
uint32 hmWalkFrontBackSmall(int messageNum, const MessageParam &param, Entity *sender);