|
enum | { kMemorySegmentMax = 256
} |
|
◆ initGlobals()
void Sci::EngineState::initGlobals |
( |
| ) |
|
Sets global variables from script 0
◆ shrinkStackToBase()
void Sci::EngineState::shrinkStackToBase |
( |
| ) |
|
Shrink execution stack to size. Contains an assert if it is not already smaller.
◆ reset()
void Sci::EngineState::reset |
( |
bool |
isRestoring | ) |
|
◆ getCurrentCallOrigin()
Finds and returns the origin of the current call.
◆ callInStack()
bool Sci::EngineState::callInStack |
( |
const reg_t |
object, |
|
|
const Selector |
selector |
|
) |
| const |
Determines whether the given object method is in the current stack.
◆ getGameVersionFromGlobal()
Returns the game's version string from its global variable. Most games initialize this to a string embedded in a script resource, or the contents of the VERSION file in the game directory.
◆ _segMan
◆ lastWaitTime
uint32 Sci::EngineState::lastWaitTime |
The last time the game invoked Wait()
◆ _screenUpdateTime
uint32 Sci::EngineState::_screenUpdateTime |
The last time the game updated the screen
◆ _eventCounter
uint32 Sci::EngineState::_eventCounter |
total times kGetEvent was invoked since the last call to kGameIsRestarting(0) or kWait or kFrameOut
◆ _paletteSetIntensityCounter
uint32 Sci::EngineState::_paletteSetIntensityCounter |
total times kPaletteSetIntensity was invoked since the last call to kGameIsRestarting(0) or kWait
◆ _throttleLastTime
uint32 Sci::EngineState::_throttleLastTime |
last time kAnimate was invoked
◆ _fileHandles
Array of file handles. Dynamically increased if required.
◆ _executionStack
◆ executionStackBase
int Sci::EngineState::executionStackBase |
When called from kernel functions, the vm is re-started recursively on the same stack. This variable contains the stack base for the current vm.
◆ _executionStackPosChanged
bool Sci::EngineState::_executionStackPosChanged |
Set to true if the execution stack position should be re-evaluated by the vm
◆ r_acc
reg_t Sci::EngineState::r_acc |
◆ r_prev
reg_t Sci::EngineState::r_prev |
previous comparison result
◆ r_rest
int16 Sci::EngineState::r_rest |
◆ stack_base
Pointer to the least stack element
◆ stack_top
First invalid stack element
◆ gcCountDown
int Sci::EngineState::gcCountDown |
Number of kernel calls until next gc
The documentation for this struct was generated from the following file: