aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/res.h
diff options
context:
space:
mode:
authorPaul Gilbert2007-10-07 11:09:20 +0000
committerPaul Gilbert2007-10-07 11:09:20 +0000
commit09d706481b411ac6298a44b0709e59ee05712650 (patch)
tree950488f44de0955b4f66f8ef6534ef392d87deef /engines/lure/res.h
parent8ff665c58f0c49fcd3b21b6858f64221095ec2df (diff)
downloadscummvm-rg350-09d706481b411ac6298a44b0709e59ee05712650.tar.gz
scummvm-rg350-09d706481b411ac6298a44b0709e59ee05712650.tar.bz2
scummvm-rg350-09d706481b411ac6298a44b0709e59ee05712650.zip
Added loading of new give talk Id list
svn-id: r29167
Diffstat (limited to 'engines/lure/res.h')
-rw-r--r--engines/lure/res.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/lure/res.h b/engines/lure/res.h
index 86d5ad5d95..3f5cf6c5c5 100644
--- a/engines/lure/res.h
+++ b/engines/lure/res.h
@@ -47,6 +47,8 @@ struct TalkDialogDetails {
bool active;
};
+#define NUM_GIVE_TALK_IDS 7
+
class Resources {
private:
Common::RandomSource _rnd;
@@ -66,6 +68,7 @@ private:
HotspotActionSet _actionsList;
TalkHeaderList _talkHeaders;
TalkDataList _talkData;
+ Common::Array<uint16> _giveTalkIds;
SequenceDelayList _delayList;
Action _currentAction;
MemoryBlock *_talkDialogData;
@@ -118,6 +121,7 @@ public:
Hotspot *getActiveHotspot(uint16 hotspotId);
HotspotOverrideData *getHotspotOverride(uint16 hotspotId);
HotspotAnimData *getAnimation(uint16 animRecordId);
+ int getAnimationIndex(HotspotAnimData *animData);
RoomExitJoinList &exitJoins() { return _exitJoins; }
RoomExitJoinData *getExitJoin(uint16 hotspotId);
uint16 getHotspotAction(uint16 actionsOffset, Action action);
@@ -154,8 +158,12 @@ public:
void setTalkStartEntry(int index) { _talkStartEntry = index; }
int getTalkStartEntry() { return _talkStartEntry; }
uint16 getTalkingCharacter() { return _talkingCharacter; }
- void setTalkingCharacter(uint16 id);
-
+ void setTalkingCharacter(uint16 index);
+ uint16 getGiveTalkId(uint16 index) {
+ if (index >= _giveTalkIds.size())
+ error("Invalid give talk id specified");
+ return _giveTalkIds[index];
+ }
void setCurrentAction(Action action) { _currentAction = action; }
Action getCurrentAction() { return _currentAction; }
const char *getCurrentActionStr() {