22 #ifndef MOHAWK_CSTIME_GAME_H 23 #define MOHAWK_CSTIME_GAME_H 25 #include "mohawk/cstime.h" 26 #include "mohawk/sound.h" 54 void setupAmbientAnims(
bool onetime);
56 void stopAmbients(
bool restpos);
59 uint16 getChrBaseId();
60 uint getScriptCount();
61 void playNIS(uint16
id);
64 void startFlapping(uint16
id);
65 void interruptFlapping();
67 uint16 _unknown1, _unknown2, _unknown3;
70 uint16 _flappingState;
80 Feature *_talkFeature1, *_talkFeature2, *_talkFeature3;
82 uint16 _playingWaveId;
85 uint32 _lastTime1, _lastTime2, _lastTime3;
91 void installAmbientAnim(uint
id, uint32 flags);
92 uint16 getChrTypeScriptBase();
93 void playFlapWave(uint16
id);
94 void updateWaveStatus();
110 uint16 sceneId, hotspotId;
114 uint16 sceneId, hotspotId, stringId;
118 #define TIME_CUFFS_ID 0 120 uint16 id, stringId, hotspotId, featureId, canTake;
122 bool featureDisabled;
132 uint16 questionStringId;
133 uint16 responseStringId;
145 void finishProcessingQaR();
146 void end(
bool useLastClicked,
bool runEvents =
true);
148 void selectItemsToDisplay();
154 void incrementTalkCount() { _talkCount++; }
155 uint16 getNameId() {
return _nameId; }
156 uint16 getSourceChar() {
return _sourceChar; }
157 void setSourceChar(uint16 source) { _sourceChar = source; }
158 void setAsked(uint qar, uint entry);
159 bool getAsked(uint qar, uint entry) {
return _asked[qar][entry]; }
161 void setState(uint state) { _state = state; }
162 uint getState() {
return _state; }
171 uint16 _greeting, _greeting2;
176 uint16 _currEntry, _currHover;
177 uint16 _nextToProcess;
186 void highlightLine(uint line);
187 void unhighlightLine(uint line);
203 void setupAmbientAnims();
204 void idleAmbientAnims();
205 bool eventIsActive();
207 void setCursorForCurrentPoint();
210 uint16 getBubbleType() {
return _bubbleType; }
214 uint16 getInvObjForCurrentHotspot() {
return _hotspots[_currHotspot].invObjId; }
215 CSTimeChar *getChar(uint
id) {
return _chars[id]; }
216 uint16 getHelperId() {
return _helperId; }
217 uint getId() {
return _id; }
230 uint16 _hoverHotspot;
233 void cursorOverHotspot(uint
id);
234 void mouseDownOnHotspot(uint
id);
235 void mouseUpOnHotspot(uint
id);
236 bool hotspotContainsEvent(uint
id, uint16 eventType);
238 uint16 _unknown1, _unknown2, _helperId;
251 uint getId() {
return _id; }
252 Common::String &getRolloverText(uint
id) {
return _rolloverText[id]; }
254 void setCurrScene(uint16
id) { _currScene = id; }
255 void setConversation(uint
id) { _currConv = _conversations[id]; }
257 uint16 getNoteFeatureId(uint16
id) {
return _noteFeatureId[id]; }
260 virtual bool checkConvCondition(uint16 conditionId) = 0;
261 virtual bool checkAmbientCondition(uint16 charId, uint16 ambientId) = 0;
262 virtual bool checkObjectCondition(uint16 objectId) = 0;
263 virtual void selectHelpStrings() = 0;
264 virtual void handleConditionalEvent(
const CSTimeEvent &event) = 0;
273 uint16 _noteFeatureId[3];
279 void loadRolloverText();
Definition: cstime_game.h:190
Definition: cstime_game.h:119
Definition: cstime_game.h:128
Definition: cstime_game.h:48
Definition: cstime_game.h:139
Definition: cstime_game.h:113
Definition: cstime_game.h:42
Definition: cstime_game.h:109
Definition: cstime_game.h:246
Definition: cstime_game.h:34
Definition: cstime_game.h:100