ScummVM API documentation
AGS3::Globals Class Reference

Classes

struct  Breakpoint
 
struct  DisplayVars
 
struct  RestrictUntil
 

Public Types

enum  SimdFlags : uint { SIMD_NONE = 0, SIMD_NEON = (1 << 0), SIMD_SSE2 = (1 << 1), SIMD_AVX2 = (1 << 2) }
 

Public Attributes

int _errnum = 0
 
int * _allegro_errno = &_errnum
 
int __color_depth = 0
 
int __rgb_r_shift_15 = DEFAULT_RGB_R_SHIFT_15
 
int __rgb_g_shift_15 = DEFAULT_RGB_G_SHIFT_15
 
int __rgb_b_shift_15 = DEFAULT_RGB_B_SHIFT_15
 
int __rgb_r_shift_16 = DEFAULT_RGB_R_SHIFT_16
 
int __rgb_g_shift_16 = DEFAULT_RGB_G_SHIFT_16
 
int __rgb_b_shift_16 = DEFAULT_RGB_B_SHIFT_16
 
int __rgb_r_shift_24 = DEFAULT_RGB_R_SHIFT_24
 
int __rgb_g_shift_24 = DEFAULT_RGB_G_SHIFT_24
 
int __rgb_b_shift_24 = DEFAULT_RGB_B_SHIFT_24
 
int __rgb_r_shift_32 = DEFAULT_RGB_R_SHIFT_32
 
int __rgb_g_shift_32 = DEFAULT_RGB_G_SHIFT_32
 
int __rgb_b_shift_32 = DEFAULT_RGB_B_SHIFT_32
 
int __rgb_a_shift_32 = DEFAULT_RGB_A_SHIFT_32
 
RGB_MAP_rgb_map = nullptr
 
COLOR_MAP_color_map = nullptr
 
int _trans_blend_alpha = 0
 
int _trans_blend_red = 0
 
int _trans_blend_green = 0
 
int _trans_blend_blue = 0
 
BlenderMode __blender_mode = kRgbToRgbBlender
 
uint _simd_flags = SIMD_NONE
 
int _utype = U_UTF8
 
PALETTE _black_palette
 
PALETTE _current_palette
 
PALETTE _prev_current_palette
 
volatile int _mouse_x = 0
 
volatile int _mouse_y = 0
 
volatile int _mouse_z = 0
 
volatile int _mouse_b = 0
 
volatile int _mouse_pos = 0
 
volatile int _sys_mouse_x = 0
 
volatile int _sys_mouse_y = 0
 
volatile int _sys_mouse_z = 0
 
volatile int _freeze_mouse_flag = 0
 
int _mouse_accum_relx = 0
 
int _mouse_accum_rely = 0
 
int _mouse_button_state = 0
 
int _mouse_accum_button_state = 0
 
uint32 _mouse_clear_at_time = 0
 
eAGSMouseButton _wasbutdown = kMouseNone
 
int _wasongui = 0
 
std::unique_ptr< Shared::AssetManager > * _AssetMgr
 
const std::chrono::milliseconds _MaximumDelayBetweenPolling = std::chrono::milliseconds(16)
 
AGS::Shared::Bitmap_glVirtualScreenWrap
 
std::vector< PluginObjectReader > * _pluginReaders
 
AGSCCStaticObject_GlobalStaticManager
 
CCScriptGame_GameStaticManager
 
std::array< SOUNDCLIP * > * _audioChannels
 
std::array< AmbientSound > * _ambient
 
ScriptAudioChannel_scrAudioChannel
 
int _reserved_channel_count = 0
 
int _current_music_type = 0
 
int _crossFading = 0
 
int _crossFadeVolumePerStep = 0
 
int _crossFadeStep = 0
 
int _crossFadeVolumeAtStart = 0
 
SOUNDCLIP_cachedQueuedMusic = nullptr
 
bool _music_update_scheduled = false
 
uint32 _music_update_at = 0
 
std::vector< AnimatingGUIButton > * _animbuts
 
CCDynamicArray_globalDynamicArray
 
ICCStringClass * _stringClassImpl = nullptr
 
ScriptError_ccError
 
std::deque< ccInstance * > * _InstThreads
 
RuntimeScriptValue_GlobalReturnValue
 
Common::DumpFile_scriptDumpFile = nullptr
 
int _ccCompOptions
 
int _currentline = 0
 
const char * _scfilesig = "SCOM"
 
AGSDeSerializer_ccUnserializer
 
int _use_cdplayer = 0
 
bool _triedToUseCdAudioCommand = false
 
int _need_to_stop_cd = 0
 
CharacterInfo_playerchar = nullptr
 
int32_t _sc_PlayerCharPtr = 0
 
int _char_lowest_yp = 0
 
int _face_talking = -1
 
int _facetalkview = 0
 
int _facetalkwait = 0
 
int _facetalkframe = 0
 
int _facetalkloop = 0
 
int _facetalkrepeat = 0
 
int _facetalkAllowBlink = 1
 
int _facetalkBlinkLoop = 0
 
CharacterInfo_facetalkchar = nullptr
 
bool _facetalk_qfg4_override_placement_x = false
 
bool _facetalk_qfg4_override_placement_y = false
 
int _loops_per_character = 0
 
int _text_lips_offset = 0
 
int _char_speaking = -1
 
int _char_thinking = -1
 
const char * _text_lips_text = nullptr
 
std::vector< SpeechLipSyncLine > * _splipsync
 
int _numLipLines = 0
 
int _curLipLine = -1
 
int _curLipLinePhoneme = 0
 
int _windowbackgroundcolor
 
int _pushbuttondarkcolor
 
int _pushbuttonlightcolor
 
int _topwindowhandle = -1
 
int _cbuttfont = 0
 
int _acdialog_font = 0
 
int _smcode = 0
 
int _controlid = 0
 
NewControl ** _vobjs
 
OnScreenWindow_oswi
 
int _windowcount = 0
 
int _curswas = 0
 
int _win_x = 0
 
int _win_y = 0
 
int _win_width = 0
 
int _win_height = 0
 
int _editor_debugging_enabled = 0
 
int _editor_debugging_initialized = 0
 
char _editor_debugger_instance_token [100]
 
IAGSEditorDebugger_editor_debugger = nullptr
 
int _break_on_next_script_step = 0
 
volatile int _game_paused_in_debugger = 0
 
std::vector< Breakpoint_breakpoints
 
int _debug_flags = 0
 
int _display_fps
 
std::unique_ptr< AGS::Engine::MessageBuffer > * _DebugMsgBuff
 
std::unique_ptr< AGS::Engine::LogFile > * _DebugLogFile
 
AGS::Shared::DebugManager_DbgMgr
 
std::vector< DialogTopic_dialog
 
ScriptDialogOptionsRendering_ccDialogOptionsRendering
 
ScriptDrawingSurface_dialogOptionsRenderingSurface = nullptr
 
String _VoicePakName
 
String _VoiceAssetPath
 
int _said_speech_line = 0
 
int _said_text = 0
 
int _longestline = 0
 
std::vector< std::vector< uint8_t > > _old_dialog_scripts
 
std::vector< String_old_speech_lines
 
int _display_message_aschar = 0
 
int _source_text_length = -1
 
TopBarSettings_topBar
 
struct AGS3::Globals::DisplayVars _disp
 
std::vector< RoomCameraDrawData > * _CameraDrawData
 
std::vector< SpriteListEntry > * _thingsToDrawList
 
std::vector< SpriteListEntry > * _sprlist
 
AGS::Engine::IGraphicsDriver_gfxDriver = nullptr
 
AGS::Engine::IDriverDependantBitmap_blankImage = nullptr
 
AGS::Engine::IDriverDependantBitmap_blankSidebarImage = nullptr
 
std::vector< ObjTexture > * _actsps
 
std::vector< ObjTexture > * _walkbehindobj
 
std::vector< ObjTexture > * _guibg
 
std::vector< ObjTexture > * _guiobjbg
 
std::vector< int > * _guiobjddbref
 
std::vector< ObjTexture > * _overtxs
 
ObjTexture_debugRoomMaskObj
 
ObjTexture_debugMoveListObj
 
RoomAreaMask _debugRoomMask = kRoomAreaNone
 
int _debugMoveListChar = -1
 
AGS::Shared::Bitmap_debugConsoleBuffer
 
bool _current_background_is_dirty = false
 
AGS::Engine::IDriverDependantBitmap_roomBackgroundBmp = nullptr
 
bool _screen_is_dirty = false
 
std::unique_ptr< Shared::Bitmap_raw_saved_screen
 
std::unique_ptr< Shared::Bitmap > * _dynamicallyCreatedSurfaces
 
color_palette
 
COLOR_MAP_maincoltable
 
std::vector< Engine::IDriverDependantBitmap * > * _guiobjddb
 
std::vector< Point > * _guiobjoff
 
DrawState _drawstate
 
DrawFPS _gl_DrawFPS
 
DirtyRects_BlackRects
 
Point_GlobalOffs
 
std::vector< DirtyRects > * _RoomCamRects
 
std::vector< std::pair< int, int > > * _RoomCamPositions
 
bool _check_dynamic_sprites_at_exit = true
 
ResourcePaths_ResPaths
 
t_engine_pre_init_callback _engine_pre_init_callback = nullptr
 
int _convert_16bit_bgr = 0
 
int _in_enters_screen = 0
 
int _done_es_error = 0
 
int _in_leaves_screen = -1
 
std::vector< EventHappened > * _events
 
int _inside_processevent = 0
 
int _eventClaimed = 0
 
const char * _tsnames [kTS_Num] = { nullptr, REP_EXEC_NAME, "on_key_press", "on_mouse_click", "on_text_input" }
 
String _installDirectory
 
String _installAudioDirectory
 
String _installVoiceDirectory
 
ScriptFileHandle _valid_handles [MAX_OPEN_SCRIPT_FILES+1]
 
int _num_open_script_files = 0
 
std::vector< AGS::Shared::Font > * _fonts
 
TTFFontRenderer_ttfRenderer
 
WFNFontRenderer_wfnRenderer
 
SplitLines_Lines
 
const WFNChar _emptyChar
 
Shared::Bitmap _wputblock_wrapper
 
GameSetupStruct_game
 
GameState_play
 
AGS::Shared::SpriteCache_spriteset
 
AGS::Shared::RoomStruct_thisroom
 
RoomStatus_troom
 
std::vector< AGS::Shared::GUIMain > * _guis
 
CCGUIObject_ccDynamicGUIObject
 
CCCharacter_ccDynamicCharacter
 
CCHotspot_ccDynamicHotspot
 
CCRegion_ccDynamicRegion
 
CCInventory_ccDynamicInv
 
CCGUI_ccDynamicGUI
 
CCObject_ccDynamicObject
 
CCDialog_ccDynamicDialog
 
CCAudioClip_ccDynamicAudioClip
 
CCAudioChannel_ccDynamicAudio
 
ScriptObject_scrObj
 
std::vector< ScriptGUI > * _scrGui
 
ScriptHotspot_scrHotspot
 
ScriptRegion_scrRegion
 
ScriptInvItem_scrInv
 
std::vector< ScriptDialog > * _scrDialog
 
std::vector< ViewStruct > * _views
 
std::vector< ObjectCache > * _charcache
 
ObjectCache_objcache
 
std::vector< Point > * _overcache
 
std::vector< CharacterExtras > * _charextra
 
std::vector< MoveList > * _mls
 
GameSetup_usetup
 
AGS::Shared::String _saveGameDirectory
 
AGS::Shared::String _saveGameSuffix
 
bool _want_exit = false
 
bool _abort_engine = false
 
AGSPlatformDriver_platform = nullptr
 
RoomObject_objs = nullptr
 
RoomStatus_croom = nullptr
 
volatile int _switching_away_from_game = 0
 
volatile bool _switched_away = false
 
int _frames_per_second = 40
 
int _displayed_room = -10
 
int _starting_room = -1
 
int _in_new_room = 0
 
int _new_room_was = 0
 
int _new_room_pos = 0
 
int _new_room_x = SCR_NO_VALUE
 
int _new_room_y = SCR_NO_VALUE
 
int _new_room_loop = SCR_NO_VALUE
 
bool _proper_exit = true
 
int _our_eip = 0
 
int _oldmouse = 0
 
GameDataVersion _loaded_game_file_version = kGameVersion_Undefined
 
Version _game_compiled_version
 
int _game_paused = 0
 
unsigned int _load_new_game = 0
 
int _load_new_game_restore = -1
 
int _getloctype_index = 0
 
int _getloctype_throughgui = 0
 
char _gamefilenamebuf [200] = { 0 }
 
int _gameHasBeenRestored = 0
 
int _oldeip = 0
 
int _game_update_suspend = 0
 
bool _new_room_placeonwalkable = false
 
CCStaticArray_StaticCharacterArray
 
CCStaticArray_StaticObjectArray
 
CCStaticArray_StaticGUIArray
 
CCStaticArray_StaticHotspotArray
 
CCStaticArray_StaticRegionArray
 
CCStaticArray_StaticInventoryArray
 
CCStaticArray_StaticDialogArray
 
struct AGS3::Globals::RestrictUntil _restrict_until
 
float _fps
 
unsigned int _loopcounter = 0
 
unsigned int _lastcounter = 0
 
int _numEventsAtStartOfFunction = 0
 
uint32 _t1 = 0
 
int _old_key_shifts = 0
 
const AGS::Engine::GfxFilterInfo_aad3dFilterInfo
 
const AGS::Engine::GfxFilterInfo_allegroFilterInfo
 
AGS::Engine::GfxFilterInfo_scummvmGfxFilter
 
const AGS::Engine::GfxFilterInfo_hqxFilterInfo
 
const AGS::Engine::GfxFilterInfo_d3dFilterInfo
 
ScriptPosition_last_in_dialog_request_script_pos
 
ScriptPosition_last_cutscene_script_pos
 
int _obj_lowest_yp = 0
 
AGS::Engine::IGfxDriverFactory_GfxFactory = nullptr
 
ActiveDisplaySetting_SavedFullscreenSetting
 
ActiveDisplaySetting_SavedWindowedSetting
 
FrameScaleDef _CurFrameSetup = kFrame_Undefined
 
AGS::Shared::PlaneScaling_GameScaling
 
int _ifacepopped = -1
 
int _mouse_on_iface = -1
 
int _mouse_ifacebut_xoffs = -1
 
int _mouse_ifacebut_yoffs = -1
 
int _eip_guinum = 0
 
int _eip_guiobj = 0
 
std::vector< AGS::Shared::GUIButton > * _guibuts
 
int _windowPosX = 0
 
int _windowPosY = 0
 
int _windowPosWidth = 0
 
int _windowPosHeight = 0
 
AGS::Shared::Bitmap_windowBuffer = nullptr
 
AGS::Engine::IDriverDependantBitmap_dialogDDB = nullptr
 
int _myscrnwid = 320
 
int _myscrnhit = 200
 
char * _lpTemp = nullptr
 
char * _lpTemp2 = nullptr
 
int _numsaves = 0
 
int _toomanygames = 0
 
int _filenumbers [20]
 
unsigned long _filedates [20]
 
char _bufTemp [260]
 
char _buffer2 [260]
 
char _buff [200]
 
CSCIMessage_smes
 
std::vector< AGS::Shared::GUIInvWindow > * _guiinv
 
std::vector< AGS::Shared::GUILabel > * _guilabels
 
std::vector< AGS::Shared::GUIListBox > * _guilist
 
int _guis_need_update = 1
 
AGS::Shared::GuiDisableStyle _all_buttons_disabled = AGS::Shared::kGuiDis_Undefined
 
int _gui_inv_pic = -1
 
std::vector< AGS::Shared::GUISlider > * _guislider
 
std::vector< AGS::Shared::GUITextBox > * _guitext
 
AGS::Shared::InteractionVariable_globalvars
 
int _numGlobalVars = 1
 
int _in_inv_screen = 0
 
int _inv_screen_newroom = -1
 
uint8_t * _lzbuffer = nullptr
 
int * _node = nullptr
 
int _pos = 0
 
size_t _outbytes = 0
 
String _appPath
 
String _appDirectory
 
String _cmdGameDataPath
 
int _override_start_room = 0
 
bool _justDisplayHelp = false
 
bool _justDisplayVersion = false
 
bool _justRunSetup = false
 
bool _justTellInfo = false
 
std::set< String_tellInfoKeys
 
int _loadSaveGameOnStartup = -1
 
bool _saveThumbnail = true
 
bool _noScummAutosave = false
 
bool _noScummSaveLoad = false
 
Version _EngineVersion
 
ManagedObjectPool_pool
 
int8 _currentcursor = 0
 
int _mousex = 0
 
int _mousey = 0
 
int _numcurso = -1
 
int _hotx = 0
 
int _hoty = 0
 
int _real_mouse_x = 0
 
int _real_mouse_y = 0
 
int _boundx1 = 0
 
int _boundx2 = 99999
 
int _boundy1 = 0
 
int _boundy2 = 99999
 
int8 _ignore_bounds = 0
 
AGS::Shared::Bitmap_mousecurs [20]
 
ScriptMouse_scmouse
 
int _cur_mode = 0
 
int _cur_cursor = 0
 
int _mouse_frame = 0
 
int _mouse_delay = 0
 
int _lastmx = -1
 
int _lastmy = -1
 
int8 _alpha_blend_cursor = 0
 
AGS::Shared::Bitmap_dotted_mouse_cursor = nullptr
 
AGS::Engine::IDriverDependantBitmap_mouseCursor = nullptr
 
AGS::Shared::Bitmap_blank_mouse_cursor = nullptr
 
int _butwas = 0
 
int _hotxwas = 0
 
int _hotywas = 0
 
Mouse_mouse
 
std::vector< ScreenOverlay > * _screenover
 
std::queue< int32_t > * _over_free_ids
 
int _is_complete_overlay = 0
 
bool _handledErrorInEditor = false
 
char _return_to_roomedit [30] = { '\0' }
 
char _return_to_room [150] = { '\0' }
 
char _quit_message [256] = { '\0' }
 
RGB_MAP_rgb_table
 
int _new_room_flags = 0
 
int _gs_to_newroom = -1
 
int _bg_just_changed = 0
 
std::unique_ptr< RoomStatus_room_statuses [MAX_ROOMS]
 
Point_navpoints
 
Navigation_nav
 
int _num_navpoints = 0
 
AGS::Shared::Bitmap_wallscreen = nullptr
 
fixed _move_speed_x
 
fixed _move_speed_y
 
int _lastcx = 0
 
int _lastcy = 0
 
std::unique_ptr< IRouteFinder > * _route_finder_impl
 
AGS::Shared::Bitmap_saved_viewport_bitmap = nullptr
 
color_old_palette
 
ExecutingScript_scripts
 
ExecutingScript_curscript = nullptr
 
PScript_gamescript
 
PScript_dialogScriptsScript
 
UInstance _gameinst
 
UInstance _roominst
 
UInstance _dialogScriptsInst
 
UInstance _gameinstFork
 
UInstance _roominstFork
 
int _num_scripts = 0
 
int _post_script_cleanup_stack = 0
 
int _inside_script = 0
 
int _in_graph_script = 0
 
int _no_blocking_functions = 0
 
NonBlockingScriptFunction_repExecAlways
 
NonBlockingScriptFunction_lateRepExecAlways
 
NonBlockingScriptFunction_getDialogOptionsDimensionsFunc
 
NonBlockingScriptFunction_renderDialogOptionsFunc
 
NonBlockingScriptFunction_getDialogOptionUnderCursorFunc
 
NonBlockingScriptFunction_runDialogOptionMouseClickHandlerFunc
 
NonBlockingScriptFunction_runDialogOptionKeyPressHandlerFunc
 
NonBlockingScriptFunction_runDialogOptionTextInputHandlerFunc
 
NonBlockingScriptFunction_runDialogOptionRepExecFunc
 
NonBlockingScriptFunction_runDialogOptionCloseFunc
 
ScriptSystem_scsystem
 
std::vector< PScript > * _scriptModules
 
std::vector< UInstance > * _moduleInst
 
std::vector< UInstance > * _moduleInstFork
 
std::vector< RuntimeScriptValue > * _moduleRepExecAddr
 
size_t _numScriptModules = 0
 
new_line_hook_type _new_line_hook = nullptr
 
unsigned _timeoutCheckMs = 60u
 
unsigned _timeoutAbortMs = 0u
 
unsigned _maxWhileLoops = 0u
 
ccInstance_loadedInstances [MAX_LOADED_INSTANCES]
 
ScriptString_myScriptStringImpl
 
ScriptUserObject _globalDynamicStruct
 
SystemImports_simp
 
SystemImports_simp_for_plugin
 
Plugins::Core::EngineExports_engineExports
 
Common::Array< EnginePlugin > * _plugins
 
int _pluginsWantingDebugHooks = 0
 
long _pl_file_handle = -1
 
AGS::Shared::Stream_pl_file_stream = nullptr
 
eAGSMouseButton _simulatedClick = kMouseNone
 
int _mouse_z_was = 0
 
std::chrono::microseconds _tick_duration = std::chrono::microseconds(1000000LL / 40)
 
bool _framerate_maxed = false
 
int _framerate = 0
 
uint32 _last_tick_time = 0
 
uint32 _next_frame_timestamp = 0
 
AGS::Shared::Translation_trans
 
AGS::Shared::StringMap_transtree = nullptr
 
String _trans_name
 
String _trans_filename
 
long _lang_offs_start = 0
 
char _transFileName [MAX_PATH_SZ] = { 0 }
 
std::vector< uint16 > _wcsbuf
 
std::vector< char > _mbbuf
 
AGS::Shared::Bitmap_walkareabackup = nullptr
 
AGS::Shared::Bitmap_walkable_areas_temp = nullptr
 
char * _walkBehindExists = nullptr
 
int * _walkBehindStartY = nullptr
 
int * _walkBehindEndY = nullptr
 
int8 _noWalkBehindsAtAll = 0
 
int _walkBehindLeft [MAX_WALK_BEHINDS]
 
int _walkBehindTop [MAX_WALK_BEHINDS]
 
int _walkBehindRight [MAX_WALK_BEHINDS]
 
int _walkBehindBottom [MAX_WALK_BEHINDS]
 
AGS::Engine::IDriverDependantBitmap_walkBehindBitmap [MAX_WALK_BEHINDS]
 
int _walkBehindsCachedForBgNum = -1
 
int _walk_behind_baselines_changed = 0
 
Rect _walkBehindAABB [MAX_WALK_BEHINDS]
 
std::vector< WalkBehindColumn_walkBehindCols
 
const char * _passwencstring = "Avis Durgan"
 

The documentation for this class was generated from the following file: