STARK: Stub opPlayAnimation

This commit is contained in:
Einar Johan Trøan Sømåen 2015-02-19 18:46:24 +01:00
parent 4291c0605e
commit c5d30e58cf
2 changed files with 12 additions and 0 deletions

View File

@ -67,6 +67,8 @@ Command *Command::execute(uint32 callMode, Script *script) {
return opItem3DPlaceOn(_arguments[1].referenceValue, _arguments[2].referenceValue);
case kItemEnable:
return opItemEnable(_arguments[1].referenceValue, _arguments[2].intValue);
case kPlayAnimation:
return opPlayAnimation(_arguments[1].referenceValue, _arguments[2].intValue);
case kScriptEnable:
return opScriptEnable(_arguments[1].referenceValue, _arguments[2].intValue);
case kSetBoolean:
@ -196,6 +198,14 @@ Command *Command::opItemEnable(const ResourceReference &itemRef, int32 enable) {
return nextCommand();
}
Command *Command::opPlayAnimation(const ResourceReference &animRef, int32 unknown) {
assert(_arguments.size() == 3);
Object *anim = animRef.resolve<Object>();
warning("(TODO: Implement) opPlayAnimation(%s, %d) : %s", anim->getName().c_str(), unknown, animRef.describe().c_str());
return nextCommand();
}
Command *Command::opScriptEnable(const ResourceReference &scriptRef, int32 enable) {
assert(_arguments.size() == 3);
Script *script = scriptRef.resolve<Script>();

View File

@ -69,6 +69,7 @@ public:
kItemEnable = 87,
kPlayAnimation = 93,
kScriptEnable = 94,
kSetBoolean = 96,
@ -137,6 +138,7 @@ protected:
Command *opPauseRandom(Script *script, const ResourceReference &itemRef);
Command *opItem3DPlaceOn(const ResourceReference &itemRef, const ResourceReference &targetRef);
Command *opItemEnable(const ResourceReference &itemRef, int32 enable);
Command *opPlayAnimation(const ResourceReference &animRef, int32 unknown);
Command *opScriptEnable(const ResourceReference &scriptRef, int32 enable);
Command *opSetBoolean(const ResourceReference &knowledgeRef, int32 value);
Command *opEnableFloorField(const ResourceReference &floorFieldRef, int32 value);