27#ifndef WINTERMUTE_ADGAME_H
28#define WINTERMUTE_ADGAME_H
30#include "engines/wintermute/ad/ad_types.h"
31#include "engines/wintermute/base/base_game.h"
42class AdResponseContext;
46 bool onScriptShutdown(
ScScript *script)
override;
48 bool onMouseLeftDown()
override;
49 bool onMouseLeftUp()
override;
50 bool onMouseLeftDblClick()
override;
51 bool onMouseRightDown()
override;
52 bool onMouseRightUp()
override;
54 bool displayDebugInfo()
override;
59 virtual bool getLayerSize(
int *layerWidth,
int *layerHeight,
Common::Rect32 *viewport,
bool *customViewport)
override;
61 uint32 getAmbientLightColor()
override;
62 bool getFogParams(
bool *fogEnabled, uint32 *fogColor,
float *start,
float *end)
override;
64 virtual bool renderShadowGeometry()
override;
65 TShadowType getMaxShadowType(
BaseObject *
object =
nullptr)
override;
68 bool _smartItemCursor;
71 bool addSpeechDir(
const char *dir);
72 bool removeSpeechDir(
const char *dir);
73 char *findSpeechFile(
char *StringID);
75 bool deleteItem(
AdItem *Item);
77 bool _tempDisableSaveState;
78 bool resetContent()
override;
79 bool addItem(
AdItem *item);
80 AdItem *getItemByName(
const char *name)
const;
83 bool isItemTaken(
char *itemName);
89 bool displayContent(
bool update =
true,
bool displayAll =
false)
override;
90 char *_debugStartupScene;
93 bool gameResponseUsed(
int id)
const;
94 bool addGameResponse(
int id);
95 bool resetResponse(
int id);
97 bool branchResponseUsed(
int id)
const;
98 bool addBranchResponse(
int id);
99 bool clearBranchResponses(
char *name);
100 bool startDlgBranch(
const char *branchName,
const char *scriptName,
const char *eventName);
101 bool endDlgBranch(
const char *branchName,
const char *scriptName,
const char *eventName);
102 bool windowLoadHook(
UIWindow *win,
char **buf,
char **params)
override;
105 AdSceneState *getSceneState(
const char *filename,
bool saving);
107 int32 _texItemLifeTime;
108 int32 _texWalkLifeTime;
109 int32 _texStandLifeTime;
110 int32 _texTalkLifeTime;
112 TTalkSkipButton _talkSkipButton;
113 TVideoSkipButton _videoSkipButton;
115 bool getVersion(
byte *verMajor,
byte *verMinor,
byte *extMajor,
byte *extMinor)
override;
116 bool scheduleChangeScene(
const char *filename,
bool fadeIn);
117 char *_scheduledScene;
118 bool _scheduledFadeIn;
119 void setPrevSceneName(
const char *name);
120 void setPrevSceneFilename(
const char *name);
121 char *_prevSceneName;
122 char *_prevSceneFilename;
124 bool cleanup()
override;
127 void finishSentences();
128 bool showCursor()
override;
129 TGameStateEx _stateEx;
132 bool displaySentences(
bool frozen);
134 bool changeScene(
const char *filename,
bool fadeIn);
135 bool removeObject(
AdObject *
object);
150 bool loadFile(
const char *filename)
override;
151 bool loadBuffer(
char *buffer,
bool complete =
true)
override;
153 bool loadItemsFile(
const char *filename,
bool merge =
false);
154 bool loadItemsBuffer(
char *buffer,
bool merge =
false);
159 ScValue *scGetProperty(
const char *name)
override;
160 bool scSetProperty(
const char *name,
ScValue *value)
override;
167 bool handleCustomActionStart(BaseGameCustomAction action)
override;
168 bool handleCustomActionEnd(BaseGameCustomAction action)
override;
Definition: ad_inventory_box.h:38
Definition: ad_inventory.h:37
Definition: ad_object.h:46
Definition: ad_response_box.h:40
Definition: ad_scene.h:50
Definition: ad_scene_state.h:37
Definition: ad_sentence.h:42
Definition: coll_templ.h:371
Definition: coll_templ.h:345
Definition: base_game.h:79
Definition: base_object.h:49
Definition: base_viewport.h:37
Definition: script_stack.h:41
Definition: script_value.h:42
Definition: ui_window.h:39