ScummVM API documentation
Wintermute::AdGame Class Reference
Inheritance diagram for Wintermute::AdGame:
Wintermute::BaseGame Wintermute::BaseObject Wintermute::BaseScriptHolder Wintermute::BaseScriptable Wintermute::BaseNamedObject Wintermute::BaseClass

Public Member Functions

bool onScriptShutdown (ScScript *script) override
 
bool onMouseLeftDown () override
 
bool onMouseLeftUp () override
 
bool onMouseLeftDblClick () override
 
bool onMouseRightDown () override
 
bool onMouseRightUp () override
 
bool handleCustomActionStart (BaseGameCustomAction action) override
 
bool handleCustomActionEnd (BaseGameCustomAction action) override
 
bool displayDebugInfo () override
 
virtual bool getLayerSize (int *layerWidth, int *layerHeight, Rect32 *viewport, bool *customViewport) override
 
bool addSpeechDir (const char *dir)
 
bool removeSpeechDir (const char *dir)
 
char * findSpeechFile (char *StringID)
 
bool deleteItem (AdItem *Item)
 
bool resetContent () override
 
bool addItem (AdItem *item)
 
AdItemgetItemByName (const char *name) const
 
bool isItemTaken (char *itemName)
 
bool registerInventory (AdInventory *inv)
 
bool unregisterInventory (AdInventory *inv)
 
bool displayContent (bool update=true, bool displayAll=false) override
 
bool gameResponseUsed (int ID) const
 
bool addGameResponse (int ID)
 
bool resetResponse (int ID)
 
bool branchResponseUsed (int ID) const
 
bool addBranchResponse (int ID)
 
bool clearBranchResponses (char *name)
 
bool startDlgBranch (const char *branchName, const char *scriptName, const char *eventName)
 
bool endDlgBranch (const char *branchName, const char *scriptName, const char *eventName)
 
bool windowLoadHook (UIWindow *win, char **buf, char **params) override
 
bool windowScriptMethodHook (UIWindow *win, ScScript *script, ScStack *stack, const char *name) override
 
AdSceneStategetSceneState (const char *filename, bool saving)
 
bool getVersion (byte *verMajor, byte *verMinor, byte *extMajor, byte *extMinor) const override
 
bool scheduleChangeScene (const char *filename, bool fadeIn)
 
void setPrevSceneName (const char *name)
 
void setPrevSceneFilename (const char *name)
 
bool cleanup () override
 
void finishSentences ()
 
bool showCursor () override
 
bool displaySentences (bool frozen)
 
void addSentence (AdSentence *sentence)
 
bool changeScene (const char *filename, bool fadeIn)
 
bool removeObject (AdObject *object)
 
bool addObject (AdObject *object)
 
bool initLoop ()
 
 AdGame (const Common::String &gameId)
 
bool loadFile (const char *filename) override
 
bool loadBuffer (char *buffer, bool complete=true) override
 
bool loadItemsFile (const char *filename, bool merge=false)
 
bool loadItemsBuffer (char *buffer, bool merge=false)
 
ScValuescGetProperty (const Common::String &name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
bool validMouse ()
 
Common::String debuggerToString () const override
 
- Public Member Functions inherited from Wintermute::BaseGame
virtual bool onActivate (bool activate, bool refreshMouse)
 
virtual bool onMouseRightDblClick ()
 
virtual bool onMouseMiddleDown ()
 
virtual bool onMouseMiddleUp ()
 
virtual bool onPaint ()
 
virtual bool onWindowClose ()
 
bool isLeftDoubleClick ()
 
bool isRightDoubleClick ()
 
virtual void miniUpdate ()
 
void getMousePos (Point32 *Pos)
 
void setShowFPS (bool enabled)
 
bool getBilinearFiltering ()
 
bool getSuspendedRendering () const
 
virtual bool renderShadowGeometry ()
 
void DEBUG_DumpClassRegistry ()
 
bool setWaitCursor (const char *filename)
 
uint32 getSaveThumbWidth () const
 
uint32 getSaveThumbHeight () const
 
void getOffset (int *offsetX, int *offsetY) const
 
void setOffset (int32 offsetX, int32 offsetY)
 
int getSequence ()
 
BaseObjectgetMainObject ()
 
BaseFontgetSystemFont ()
 
BaseFontgetVideoFont ()
 
bool initInput ()
 
bool initLoop ()
 
bool initConfManSettings ()
 
bool initRenderer ()
 
bool loadGameSettingsFile ()
 
bool initialize1 ()
 
bool initialize2 ()
 
bool initialize3 ()
 
void expandStringByStringTable (char **str) const
 
void expandStringByStringTable (Common::String &str) const
 
char * getKeyFromStringTable (const char *str) const
 
void LOG (bool res, const char *fmt,...)
 
 BaseGame (const Common::String &targetName)
 
ScValuescGetProperty (const Common::String &name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
const char * getGameTargetName () const
 
void setGameTargetName (const Common::String &targetName)
 
bool getIsLoading () const
 
bool handleMouseWheel (int32 delta) override
 
bool handleKeypress (Common::Event *event, bool printable=false) override
 
virtual void handleKeyRelease (Common::Event *event)
 
bool unfreeze ()
 
bool freeze (bool includingMusic=true)
 
bool focusWindow (UIWindow *window)
 
bool loadSettings (const char *filename)
 
bool displayWindows (bool inGame=false)
 
bool loadGame (uint32 slot)
 
bool loadGame (const char *filename)
 
bool saveGame (int32 slot, const char *desc, bool quickSave=false)
 
bool showCursor () override
 
const TimergetTimer () const
 
const TimergetLiveTimer () const
 
bool validObject (BaseObject *object)
 
bool unregisterObject (BaseObject *object)
 
bool registerObject (BaseObject *object)
 
void quickMessage (const char *text)
 
void quickMessageForm (char *fmt,...)
 
bool displayQuickMsg ()
 
virtual bool displayContentSimple ()
 
void resetMousePos ()
 
void setInteractive (bool state)
 
bool getCurrentViewportOffset (int *offsetX=nullptr, int *offsetY=nullptr) const
 
bool getCurrentViewportRect (Rect32 *rect, bool *custom=nullptr) const
 
bool popViewport ()
 
bool pushViewport (BaseViewport *Viewport)
 
bool setActiveObject (BaseObject *Obj)
 
bool drawCursor (BaseSprite *Cursor)
 
bool storeSaveThumbnail ()
 
void deleteSaveThumbnail ()
 
void addMem (int32 bytes)
 
bool stopVideo ()
 
void autoSaveOnExit ()
 
PluginEventpluginEvents ()
 
- Public Member Functions inherited from Wintermute::BaseObject
virtual bool afterMove ()
 
virtual bool isReady ()
 
virtual bool getExtendedFlag (const char *flagName)
 
virtual bool resetSoundPan ()
 
virtual bool updateSounds ()
 
bool updateOneSound (BaseSound *sound)
 
virtual bool handleMouse (TMouseEvent event, TMouseButton button)
 
virtual int32 getHeight ()
 
bool setCursor (const char *filename)
 
bool setActiveCursor (const char *filename)
 
bool cleanup ()
 
const char * getCaption (int caseVal=1)
 
void setCaption (const char *caption, int caseVal=1)
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
bool listen (BaseScriptHolder *param1, uint32 param2) override
 
 BaseObject (BaseGame *inGame)
 
virtual bool update ()
 
virtual bool display ()
 
ScValuescGetProperty (const Common::String &name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
- Public Member Functions inherited from Wintermute::BaseScriptHolder
 BaseScriptHolder (BaseGame *inGame)
 
ScScriptinvokeMethodThread (const char *methodName) override
 
virtual void makeFreezable (bool freezable)
 
bool canHandleEvent (const char *eventName) const
 
bool canHandleMethod (const char *eventMethod) const override
 
bool cleanup ()
 
bool removeScript (ScScript *script)
 
bool addScript (const char *filename)
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
bool applyEvent (const char *eventName, bool unbreakable=false)
 
void setFilename (const char *filename)
 
const char * getFilename ()
 
bool parseProperty (char *buffer, bool complete=true)
 
ScValuescGetProperty (const Common::String &name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
void scDebuggerDesc (char *buf, int bufSize) override
 
virtual bool sendEvent (const char *eventName)
 
- Public Member Functions inherited from Wintermute::BaseScriptable
 BaseScriptable (BaseGame *inGame, bool noValue=false, bool persistable=true)
 
virtual void * scToMemBuffer ()
 
virtual int scToInt ()
 
virtual double scToFloat ()
 
virtual bool scToBool ()
 
virtual void scSetString (const char *val)
 
virtual void scSetInt (int val)
 
virtual void scSetFloat (double val)
 
virtual void scSetBool (bool val)
 
virtual int scCompare (BaseScriptable *val)
 
- Public Member Functions inherited from Wintermute::BaseNamedObject
 BaseNamedObject (BaseGame *inGame)
 
 BaseNamedObject (TDynamicConstructor, TDynamicConstructor)
 
const char * getName () const
 
void setName (const char *name)
 
- Public Member Functions inherited from Wintermute::BaseClass
bool setEditorProp (const Common::String &propName, const Common::String &propValue)
 
Common::String getEditorProp (const Common::String &propName, const Common::String &initVal=Common::String())
 
 BaseClass (TDynamicConstructor, TDynamicConstructor)
 
bool parseEditorProperty (char *buffer, bool complete=true)
 
 BaseClass (BaseGame *GameOwner)
 
virtual const char * getClassName ()
 
virtual bool persist (BasePersistenceManager *persistMgr)
 

Public Attributes

char * _itemsFile
 
bool _tempDisableSaveState
 
AdObject_inventoryOwner
 
BaseViewport_sceneViewport
 
int32 _texItemLifeTime
 
int32 _texWalkLifeTime
 
int32 _texStandLifeTime
 
int32 _texTalkLifeTime
 
TTalkSkipButton _talkSkipButton
 
TVideoSkipButton _videoSkipButton
 
AdItem_selectedItem
 
TGameStateEx _stateEx
 
AdScene_scene
 
BaseArray< AdObject * > _objects
 
- Public Attributes inherited from Wintermute::BaseGame
bool _autorunDisabled
 
uint32 _lastMiniUpdate
 
bool _miniUpdateEnabled
 
Rect32 _mouseLockRect
 
bool _shuttingDown
 
TTextEncoding _textEncoding
 
bool _textRTL
 
bool _editorMode
 
int32 _offsetY
 
int32 _offsetX
 
float _offsetPercentX
 
float _offsetPercentY
 
uint32 _currentTime
 
uint32 _deltaTime
 
BaseTransitionMgr_transMgr
 
BaseRenderer_renderer
 
BaseSoundMgr_soundMgr
 
ScEngine_scEngine
 
BaseScriptable_mathClass
 
BaseScriptable_directoryClass
 
BaseSurfaceStorage_surfaceStorage
 
BaseFontStorage_fontStorage
 
bool _debugDebugMode
 
int32 _sequence
 
int32 _viewportSP
 
bool _suppressScriptErrors
 
bool _mouseLeftDown
 
bool _compatKillMethodThreads
 
uint32 _surfaceGCCycleTime
 
bool _smartCache
 
bool _subtitles
 
int32 _scheduledLoadSlot
 
bool _quitting
 
bool _loadInProgress
 
UIWindow_focusedWindow
 
bool _editorForceScripts
 
bool _useD3D
 
BaseObject_activeObject
 
bool _interactive
 
TGameState _state
 
TGameState _origState
 
bool _origInteractive
 
BaseObject_capturedObject
 
Point32 _mousePos
 
bool _forceNonStreamedSounds
 
int32 _subtitlesSpeed
 
BaseSprite_lastCursor
 
SaveThumbHelper_cachedThumbnail
 
bool _touchInterface
 
bool _constrainedMemory
 
PluginEvent _pluginEvents
 
- Public Attributes inherited from Wintermute::BaseObject
Graphics::TSpriteBlendMode _blendMode
 
float _scale
 
uint32 _alphaColor
 
int32 _sFXVolume
 
bool _editorOnly
 
bool _is3D
 
BaseSprite_cursor
 
bool _sharedCursors
 
BaseSprite_activeCursor
 
bool _movable
 
bool _zoomable
 
bool _shadowable
 
int32 _posY
 
int32 _posX
 
bool _registrable
 
char * _caption [7]
 
bool _saveState
 
bool _nonIntMouseEvents
 
- Public Attributes inherited from Wintermute::BaseScriptHolder
bool _freezable
 
bool _ready
 
BaseArray< ScScript * > _scripts
 
- Public Attributes inherited from Wintermute::BaseScriptable
int32 _refCount
 
ScValue_scValue
 
ScValue_scProp
 
- Public Attributes inherited from Wintermute::BaseNamedObject
char * _name
 
- Public Attributes inherited from Wintermute::BaseClass
bool _persistable
 
BaseGame_gameRef
 

Additional Inherited Members

- Static Public Member Functions inherited from Wintermute::BaseGame
static void invalidateValues (void *value, void *data)
 
- Protected Member Functions inherited from Wintermute::BaseObject
bool setSFXTime (uint32 time)
 
bool setSFXVolume (int volume)
 
bool resumeSFX ()
 
bool pauseSFX ()
 
bool stopSFX (bool deleteSound=true)
 
bool playSFX (const char *filename, bool looping=false, bool playNow=true, const char *eventName=nullptr, uint32 loopStart=0)
 
void setSoundEvent (const char *eventName)
 
- Protected Attributes inherited from Wintermute::BaseGame
BaseFont_systemFont
 
BaseFont_videoFont
 
BaseSprite_loadingIcon
 
int32 _loadingIconX
 
int32 _loadingIconY
 
int32 _loadingIconPersistent
 
BaseFader_fader
 
int32 _freezeLevel
 
VideoPlayer_videoPlayer
 
VideoTheoraPlayer_theoraPlayer
 
bool _autoSaveOnExit
 
uint32 _autoSaveSlot
 
bool _cursorHidden
 
- Protected Attributes inherited from Wintermute::BaseObject
bool _autoSoundPanning
 
uint32 _sFXStart
 
BaseSound_sFX
 
TSFXType _sFXType
 
float _sFXParam1
 
float _sFXParam2
 
float _sFXParam3
 
float _sFXParam4
 
float _relativeRotate
 
bool _rotateValid
 
float _rotate
 
bool _rotatable
 
float _scaleX
 
float _scaleY
 
float _relativeScale
 
bool _editorSelected
 
bool _editorAlwaysRegister
 
bool _ready
 
Rect32 _rect
 
bool _rectSet
 
int32 _iD
 
char * _soundEvent
 
- Protected Attributes inherited from Wintermute::BaseClass
Common::HashMap< Common::String, Common::String_editorProps
 
Common::HashMap< Common::String, Common::String >::iterator _editorPropsIter
 

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