22 #ifndef TWINE_SCRIPTLIFE_H 23 #define TWINE_SCRIPTLIFE_H 25 #include "common/scummsys.h" 26 #include "twine/scene/actor.h" 36 LifeScriptContext(int32 _actorIdx,
ActorStruct *_actor) : actorIdx(_actorIdx), actor(_actor), stream(_actor->_lifeScript, _actor->_lifeScriptSize) {
37 assert(actor->_offsetLife >= 0);
38 stream.
skip(_actor->_offsetLife);
42 void setOpcode(uint8 opcode) {
46 void updateOpcodePos() {
47 opcodePtr = actor->_lifeScript + stream.
pos();
58 ScriptLifeFunc *
function;
62 enum LifeScriptOperators {
66 kGreaterThanOrEqualTo = 3,
67 kLessThanOrEqualTo = 4,kNotEqualTo = 5
75 size_t _functionMapSize;
185 void doLife(int32 actorIdx);
Definition: script_life.h:56
Definition: memstream.h:394
Definition: script_life.h:30
int64 pos() const override
Definition: memstream.h:427
Definition: script_life.h:71
Definition: achievements_tables.h:27
virtual bool skip(uint32 offset)
Definition: stream.h:793