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" 42 class 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 handleCustomActionStart(BaseGameCustomAction action)
override;
55 bool handleCustomActionEnd(BaseGameCustomAction action)
override;
57 bool displayDebugInfo()
override;
59 virtual bool getLayerSize(
int *layerWidth,
int *layerHeight,
Rect32 *viewport,
bool *customViewport)
override;
62 uint32 getAmbientLightColor()
override;
64 bool getFogParams(
bool *fogEnabled, uint32 *fogColor,
float *start,
float *end)
override;
66 virtual bool renderShadowGeometry()
override;
67 TShadowType getMaxShadowType(
BaseObject *
object)
override;
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);
86 bool displayContent(
bool update =
true,
bool displayAll =
false)
override;
88 bool gameResponseUsed(
int ID)
const;
89 bool addGameResponse(
int ID);
90 bool resetResponse(
int ID);
92 bool branchResponseUsed(
int ID)
const;
93 bool addBranchResponse(
int ID);
94 bool clearBranchResponses(
char *name);
95 bool startDlgBranch(
const char *branchName,
const char *scriptName,
const char *eventName);
96 bool endDlgBranch(
const char *branchName,
const char *scriptName,
const char *eventName);
97 bool windowLoadHook(
UIWindow *win,
char **buf,
char **params)
override;
100 AdSceneState *getSceneState(
const char *filename,
bool saving);
103 int32 _texItemLifeTime;
104 int32 _texWalkLifeTime;
105 int32 _texStandLifeTime;
106 int32 _texTalkLifeTime;
108 TTalkSkipButton _talkSkipButton;
109 TVideoSkipButton _videoSkipButton;
111 bool getVersion(byte *verMajor, byte *verMinor, byte *extMajor, byte *extMinor)
const override;
112 bool scheduleChangeScene(
const char *filename,
bool fadeIn);
113 void setPrevSceneName(
const char *name);
114 void setPrevSceneFilename(
const char *name);
117 bool cleanup()
override;
120 void finishSentences();
121 bool showCursor()
override;
123 TGameStateEx _stateEx;
124 bool displaySentences(
bool frozen);
126 bool changeScene(
const char *filename,
bool fadeIn);
127 bool removeObject(
AdObject *
object);
136 bool loadFile(
const char *filename)
override;
137 bool loadBuffer(
char *buffer,
bool complete =
true)
override;
139 bool loadItemsFile(
const char *filename,
bool merge =
false);
140 bool loadItemsBuffer(
char *buffer,
bool merge =
false);
144 bool scSetProperty(
const char *name,
ScValue *value)
override;
153 char *_scheduledScene;
154 bool _scheduledFadeIn;
155 char *_prevSceneName;
156 char *_prevSceneFilename;
157 char *_debugStartupScene;
160 bool _smartItemCursor;
Definition: ad_inventory.h:37
Definition: base_game.h:76
Definition: ad_sentence.h:43
Definition: script_value.h:42
Definition: ad_object.h:46
Definition: ad_scene.h:49
Definition: script_stack.h:41
Definition: ad_scene_state.h:37
Definition: coll_templ.h:63
Definition: ad_inventory_box.h:38
Definition: base_viewport.h:38
Definition: ui_window.h:39
Definition: ad_response_box.h:40
Definition: coll_templ.h:89
Definition: base_object.h:49
Definition: achievements_tables.h:27