diff options
author | Filippos Karapetis | 2010-05-14 15:23:42 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-05-14 15:23:42 +0000 |
commit | 6d38cf8b8f164b6d8e03715540b1d9bcfdad1ce7 (patch) | |
tree | 679b329a60bcc829246220aaba338cc9cd00c7ca /engines/sci/engine/segment.h | |
parent | 25bac3bef494aede6167734b7837c9308c9d9445 (diff) | |
download | scummvm-rg350-6d38cf8b8f164b6d8e03715540b1d9bcfdad1ce7.tar.gz scummvm-rg350-6d38cf8b8f164b6d8e03715540b1d9bcfdad1ce7.tar.bz2 scummvm-rg350-6d38cf8b8f164b6d8e03715540b1d9bcfdad1ce7.zip |
Made locateVarSelector() a method of the Object class
svn-id: r49031
Diffstat (limited to 'engines/sci/engine/segment.h')
-rw-r--r-- | engines/sci/engine/segment.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/engine/segment.h b/engines/sci/engine/segment.h index 5651e2ef21..0b60675a6b 100644 --- a/engines/sci/engine/segment.h +++ b/engines/sci/engine/segment.h @@ -254,7 +254,14 @@ public: return -1; } + /** + * Determines if the object explicitly defines slc as a varselector + * Returns -1 if not found + */ + int locateVarSelector(SegManager *segMan, Selector slc); + bool isClass() { return (getInfoSelector().offset & SCRIPT_INFO_CLASS); } + Object *getClass(SegManager *segMan); void markAsFreed() { _flags |= OBJECT_FLAG_FREED; } bool isFreed() { return _flags & OBJECT_FLAG_FREED; } |