diff options
author | Kamil Zbróg | 2013-11-04 11:28:10 +0000 |
---|---|---|
committer | Kamil Zbróg | 2013-11-04 11:28:10 +0000 |
commit | 8c85eff622e3bcec7685b6daf44aef094b6bdb09 (patch) | |
tree | 4f95371499c7c0a144f3fa41889ccc3b57b427e5 /engines/prince/script.h | |
parent | 5d8e664b003b4d06f52500e530e0f566b3dc7139 (diff) | |
download | scummvm-rg350-8c85eff622e3bcec7685b6daf44aef094b6bdb09.tar.gz scummvm-rg350-8c85eff622e3bcec7685b6daf44aef094b6bdb09.tar.bz2 scummvm-rg350-8c85eff622e3bcec7685b6daf44aef094b6bdb09.zip |
PRINCE: code formating fixed
Diffstat (limited to 'engines/prince/script.h')
-rw-r--r-- | engines/prince/script.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/prince/script.h b/engines/prince/script.h index 1343051fc9..984b2d93e9 100644 --- a/engines/prince/script.h +++ b/engines/prince/script.h @@ -27,6 +27,8 @@ #include "audio/mixer.h" +#include "prince/flags.h" + namespace Common { class SeekableReadStream; } @@ -43,6 +45,7 @@ public: bool loadFromStream(Common::SeekableReadStream &stream); void step(); + void setFlag(Flags::Id flag, uint16 value); private: PrinceEngine *_vm; @@ -50,12 +53,17 @@ private: byte *_code; uint32 _codeSize; uint32 _currentInstruction; + + uint32 _bgOpcodePC; + uint32 _fgOpcodePC; + uint16 _lastOpcode; uint32 _lastInstruction; byte _result; int16 _flags[2000]; bool _opcodeNF; + // Stack static const uint32 _STACK_SIZE = 500; uint32 _stack[_STACK_SIZE]; @@ -69,6 +77,7 @@ private: Common::SeekableReadStream *_voiceStream; // Helper functions + uint32 step(uint32 opcodePC); void checkPC(uint32 address); uint8 getCodeByte(uint32 address); uint8 readScript8bits(); @@ -81,6 +90,8 @@ private: typedef void (Script::*OpcodeFunc)(); static OpcodeFunc _opcodes[]; + // Keep opcode handlers names as they are in original code + // it easier to switch back and forth void O_WAITFOREVER(); void O_BLACKPALETTE(); void O_SETUPPALETTE(); |