31 #include "common/str.h" 32 #include "common/stack.h" 34 #include "gob/totfile.h" 47 uint32
read(byte *data, int32 size);
49 uint32
peek(byte *data, int32 size, int32 offset = 0)
const;
53 int32 getSize()
const;
56 bool seek(int32 offset,
int whence = SEEK_SET);
57 bool skip(int32 offset);
69 char *readString(int32 length = -1);
72 byte peekByte (int32 offset = 0);
73 char peekChar (int32 offset = 0);
74 uint8 peekUint8 (int32 offset = 0);
75 uint16 peekUint16(int32 offset = 0);
76 uint32 peekUint32(int32 offset = 0);
77 int8 peekInt8 (int32 offset = 0);
78 int16 peekInt16 (int32 offset = 0);
79 int32 peekInt32 (int32 offset = 0);
80 char *peekString(int32 offset = 0);
83 uint16 readVarIndex(uint16 *size = 0, uint16 *type = 0);
84 int16 readValExpr(byte stopToken = 99);
85 int16 readExpr(byte stopToken, byte *type);
86 void skipExpr(
char stopToken);
89 char evalExpr(int16 *pRes);
93 const char *evalString();
96 int32 getResultInt()
const;
97 char *getResultStr()
const;
102 byte *
getData(int32 offset)
const;
123 void pop(
bool ret =
true);
125 void call(uint32 offset);
131 uint8 getVersionMajor ()
const;
132 uint8 getVersionMinor ()
const;
133 uint32 getVariablesCount ()
const;
134 uint32 getTextsOffset ()
const;
135 uint32 getResourcesOffset()
const;
136 uint16 getAnimDataSize ()
const;
137 uint8 getImFileNumber ()
const;
138 uint8 getExFileNumber ()
const;
139 uint8 getCommunHandling ()
const;
141 uint16 getFunctionOffset (uint8
function)
const;
143 static uint32 getVariablesCount(
const char *fileName,
GobEngine *vm);
178 #endif // GOB_SCRIPT_H
int32 getOffset(byte *ptr) const
uint32 peek(byte *data, int32 size, int32 offset=0) const
Definition: expression.h:114
bool load(const Common::String &fileName)
void setFinished(bool finished)
void writeByte(int32 offset, byte v)
uint32 read(byte *data, int32 size)