diff options
author | Joost Peters | 2004-08-01 23:47:19 +0000 |
---|---|---|
committer | Joost Peters | 2004-08-01 23:47:19 +0000 |
commit | 2a7f8854777318edab70ec00164424a79572f721 (patch) | |
tree | 86d2748b3d82ada8a88483a6a3e3fea39a830941 /saga/script.h | |
parent | 873c886910f43cce67cfaf25e671c4adc70ebb7b (diff) | |
download | scummvm-rg350-2a7f8854777318edab70ec00164424a79572f721.tar.gz scummvm-rg350-2a7f8854777318edab70ec00164424a79572f721.tar.bz2 scummvm-rg350-2a7f8854777318edab70ec00164424a79572f721.zip |
Clean up Script class a bit; add get/set functions
svn-id: r14428
Diffstat (limited to 'saga/script.h')
-rw-r--r-- | saga/script.h | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/saga/script.h b/saga/script.h index d318c2e08f..5df5f79587 100644 --- a/saga/script.h +++ b/saga/script.h @@ -104,18 +104,25 @@ public: R_VOICE_LUT *loadVoiceLUT(const byte *voicelut_p, size_t voicelut_len, R_SCRIPTDATA *script); int disassemble(R_SCRIPT_BYTECODE *script_list, R_DIALOGUE_LIST *diag_list); - -//protected: -//these are temporarily public, eventually get/set methods should be created for them - int _initialized; - R_RSCFILE_CONTEXT *_script_ctxt; - int _voice_lut_present; - R_SCRIPT_LUT_ENTRY *_script_lut; - int _script_lut_max; - uint16 _script_lut_entrylen; - R_SCRIPTDATA *_current_script; - YS_DL_LIST *_thread_list; - R_SCRIPT_DATABUF *_data_buf[R_SCRIPT_DATABUF_NUM]; + bool isInitialized() const { return _initialized; } + bool isVoiceLUTPresent() const { return _voiceLUTPresent; } + R_SCRIPTDATA *currentScript() { return _currentScript; } + void setBuffer(int idx, R_SCRIPT_DATABUF *ptr) { _dataBuf[idx] = ptr; } + R_SCRIPT_DATABUF *dataBuffer(int idx) { return _dataBuf[idx]; } + YS_DL_LIST *threadList() { return _threadList; } + +protected: + bool _initialized; + bool _voiceLUTPresent; + R_RSCFILE_CONTEXT *_scriptContext; + R_SCRIPT_LUT_ENTRY *_scriptLUT; + int _scriptLUTMax; + uint16 _scriptLUTEntryLen; + R_SCRIPTDATA *_currentScript; + R_SCRIPT_DATABUF *_dataBuf[R_SCRIPT_DATABUF_NUM]; + YS_DL_LIST *_threadList; + +public: int _dbg_singlestep; int _dbg_dostep; R_SCRIPT_THREAD *_dbg_thread; |