Added animation handler for standard characters that can be talked to

svn-id: r25888
This commit is contained in:
Paul Gilbert 2007-02-26 22:56:02 +00:00
parent 437bc950b6
commit 41574458fc
2 changed files with 10 additions and 2 deletions

View File

@ -1966,8 +1966,6 @@ HandlerMethodPtr HotspotTickHandlers::getHandler(uint16 procOffset) {
return voiceBubbleAnimHandler;
case PUZZLED_TICK_PROC_ID:
return puzzledAnimHandler;
case 0x7F3A:
return standardAnimHandler;
case 0x7207:
return roomExitAnimHandler;
case PLAYER_TICK_PROC_ID:
@ -1976,6 +1974,10 @@ HandlerMethodPtr HotspotTickHandlers::getHandler(uint16 procOffset) {
return followerAnimHandler;
case 0x7EFA:
return skorlAnimHandler;
case 0x7F37:
return standardAnimHandler2;
case 0x7F3A:
return standardAnimHandler;
case 0x7F69:
return droppingTorchAnimHandler;
case 0x7FA1:
@ -2008,6 +2010,11 @@ void HotspotTickHandlers::standardAnimHandler(Hotspot &h) {
h.executeScript();
}
void HotspotTickHandlers::standardAnimHandler2(Hotspot &h) {
h.handleTalkDialog();
standardCharacterAnimHandler(h);
}
void HotspotTickHandlers::standardCharacterAnimHandler(Hotspot &h) {
Resources &res = Resources::getReference();
ValueTableData &fields = res.fieldList();

View File

@ -58,6 +58,7 @@ private:
static void defaultHandler(Hotspot &h);
static void voiceBubbleAnimHandler(Hotspot &h);
static void standardAnimHandler(Hotspot &h);
static void standardAnimHandler2(Hotspot &h);
static void standardCharacterAnimHandler(Hotspot &h);
static void puzzledAnimHandler(Hotspot &h);
static void roomExitAnimHandler(Hotspot &h);