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 bool addSpeechDir(
const char *dir);
60 bool removeSpeechDir(
const char *dir);
61 char *findSpeechFile(
char *StringID);
63 bool deleteItem(
AdItem *Item);
65 bool _tempDisableSaveState;
66 bool resetContent()
override;
67 bool addItem(
AdItem *item);
68 AdItem *getItemByName(
const char *name)
const;
71 bool isItemTaken(
char *itemName);
74 bool displayContent(
bool update =
true,
bool displayAll =
false)
override;
76 bool gameResponseUsed(
int ID)
const;
77 bool addGameResponse(
int ID);
78 bool resetResponse(
int ID);
80 bool branchResponseUsed(
int ID)
const;
81 bool addBranchResponse(
int ID);
82 bool clearBranchResponses(
char *name);
83 bool startDlgBranch(
const char *branchName,
const char *scriptName,
const char *eventName);
84 bool endDlgBranch(
const char *branchName,
const char *scriptName,
const char *eventName);
85 bool windowLoadHook(
UIWindow *win,
char **buf,
char **params)
override;
88 AdSceneState *getSceneState(
const char *filename,
bool saving);
91 int32 _texItemLifeTime;
92 int32 _texWalkLifeTime;
93 int32 _texStandLifeTime;
94 int32 _texTalkLifeTime;
96 TTalkSkipButton _talkSkipButton;
97 TVideoSkipButton _videoSkipButton;
99 virtual bool getLayerSize(
int *layerWidth,
int *layerHeight,
Rect32 *viewport,
bool *customViewport)
override;
101 uint32 getAmbientLightColor()
override;
103 TShadowType getMaxShadowType(
BaseObject *
object)
override;
105 bool getFogParams(
bool *fogEnabled, uint32 *fogColor,
float *start,
float *end)
override;
108 bool getVersion(byte *verMajor, byte *verMinor, byte *extMajor, byte *extMinor)
const override;
109 bool scheduleChangeScene(
const char *filename,
bool fadeIn);
110 void setPrevSceneName(
const char *name);
111 void setPrevSceneFilename(
const char *name);
114 bool cleanup()
override;
117 void finishSentences();
118 bool showCursor()
override;
120 TGameStateEx _stateEx;
122 bool displaySentences(
bool frozen);
124 bool changeScene(
const char *filename,
bool fadeIn);
125 bool removeObject(
AdObject *
object);
134 bool loadFile(
const char *filename)
override;
135 bool loadBuffer(
char *buffer,
bool complete =
true)
override;
137 bool loadItemsFile(
const char *filename,
bool merge =
false);
138 bool loadItemsBuffer(
char *buffer,
bool merge =
false);
142 bool scSetProperty(
const char *name,
ScValue *value)
override;
151 char *_scheduledScene;
152 bool _scheduledFadeIn;
153 char *_prevSceneName;
154 char *_prevSceneFilename;
155 char *_debugStartupScene;
158 bool _smartItemCursor;
Definition: ad_inventory.h:37
Definition: base_game.h:75
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:57
Definition: achievements_tables.h:27