Limit access to the _bufSize, _scriptSize and _heapSize members of the Script class
svn-id: r49327
This commit is contained in:
parent
0276ec835e
commit
c32e88fe0b
10 changed files with 33 additions and 28 deletions
|
@ -323,10 +323,6 @@ class Script : public SegmentObj {
|
|||
public:
|
||||
int _nr; /**< Script number */
|
||||
byte *_buf; /**< Static data buffer, or NULL if not used */
|
||||
size_t _bufSize;
|
||||
size_t _scriptSize;
|
||||
size_t _heapSize;
|
||||
|
||||
byte *_heapStart; /**< Start of heap if SCI1.1, NULL otherwise */
|
||||
|
||||
const uint16 *_exportTable; /**< Abs. offset of the export table or 0 if not present */
|
||||
|
@ -335,9 +331,18 @@ public:
|
|||
const byte *_synonyms; /**< Synonyms block or 0 if not present*/
|
||||
int _numSynonyms; /**< Number of entries in the synonyms block */
|
||||
|
||||
uint32 getScriptSize() { return _scriptSize; }
|
||||
uint32 getHeapSize() { return _heapSize; }
|
||||
uint32 getBufSize() { return _bufSize; }
|
||||
|
||||
protected:
|
||||
int _lockers; /**< Number of classes and objects that require this script */
|
||||
|
||||
private:
|
||||
size_t _scriptSize;
|
||||
size_t _heapSize;
|
||||
size_t _bufSize;
|
||||
|
||||
public:
|
||||
/**
|
||||
* Table for objects, contains property variables.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue