aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-player.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-26 10:16:42 +0530
committerEugene Sandulenko2019-09-03 17:17:29 +0200
commit5ba5a335a14ba79c9aa0671f1825dad0807fee0b (patch)
tree8eb4d281d2ed0b5c606cea2e53d7bae51effd11b /engines/hdb/ai-player.cpp
parentd3eacb7e0fefbd9cde5b17fcfc5727eaf0143ad5 (diff)
downloadscummvm-rg350-5ba5a335a14ba79c9aa0671f1825dad0807fee0b.tar.gz
scummvm-rg350-5ba5a335a14ba79c9aa0671f1825dad0807fee0b.tar.bz2
scummvm-rg350-5ba5a335a14ba79c9aa0671f1825dad0807fee0b.zip
HDB: Unstub Sound related stubs
Diffstat (limited to 'engines/hdb/ai-player.cpp')
-rw-r--r--engines/hdb/ai-player.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/engines/hdb/ai-player.cpp b/engines/hdb/ai-player.cpp
index aef00e1eb6..4e70436b23 100644
--- a/engines/hdb/ai-player.cpp
+++ b/engines/hdb/ai-player.cpp
@@ -156,7 +156,6 @@ void aiPlayerAction(AIEntity *e) {
g_hdb->_ai->stunEnemy(hit, 8);
break;
default:
- debug(9, "STUB: stunEnemy: Play sound");
break;
}
@@ -188,7 +187,6 @@ void aiPlayerAction(AIEntity *e) {
g_hdb->_ai->stunEnemy(hit, 8);
break;
default:
- debug(9, "STUB: stunEnemy: Play sound");
break;
}
}
@@ -209,7 +207,6 @@ void aiPlayerAction(AIEntity *e) {
case STATE_GRABLEFT: e->draw = e->standleftGfx[0]; e->state = STATE_STANDLEFT; break;
case STATE_GRABRIGHT: e->draw = e->standrightGfx[0]; e->state = STATE_STANDRIGHT; break;
default:
- debug(9, "STUB: stunEnemy: Play sound");
break;
}
e->animDelay = 1;
@@ -230,7 +227,6 @@ void aiPlayerAction(AIEntity *e) {
case STATE_ATK_CLUB_LEFT: cycleFrames(e, g_hdb->_ai->_clubLeftFrames); break;
case STATE_ATK_CLUB_RIGHT: cycleFrames(e, g_hdb->_ai->_clubRightFrames); break;
default:
- debug(9, "STUB: stunEnemy: Play sound");
break;
}
// Whack!
@@ -241,7 +237,6 @@ void aiPlayerAction(AIEntity *e) {
case DIR_LEFT: hit = g_hdb->_ai->playerCollision(16, 16, 32, 0); break;
case DIR_RIGHT: hit = g_hdb->_ai->playerCollision(16, 16, 0, 32); break;
default:
- warning("aiPlayerAction: DIR_NONE found");
break;
}
@@ -275,7 +270,7 @@ void aiPlayerAction(AIEntity *e) {
case AI_SHOCKBOT:
case AI_GATEPUDDLE:
g_hdb->_ai->stunEnemy(hit, 2);
- warning("STUB: Play MetalorFlesh SND");
+ g_hdb->_sound->playSound(g_hdb->_ai->metalOrFleshSND(hit));
break;
default:
break;
@@ -291,7 +286,6 @@ void aiPlayerAction(AIEntity *e) {
case STATE_ATK_CLUB_LEFT: e->draw = e->standleftGfx[0]; break;
case STATE_ATK_CLUB_RIGHT: e->draw = e->standrightGfx[0]; break;
default:
- debug(9, "STUB: stunEnemy: Play sound");
break;
}
g_hdb->_ai->setPlayerInvisible(false);
@@ -367,7 +361,6 @@ void aiPlayerAction(AIEntity *e) {
}
return;
default:
- debug(9, "STUB: stunEnemy: Play sound");
break;
}
@@ -956,7 +949,7 @@ void aiSlugAttackAction(AIEntity *e) {
result = (e->level == 1 ? (bg_flags & (kFlagSolid)) : !(fg_flags & kFlagGrating) && (bg_flags & (kFlagSolid)));
if (hit) {
g_hdb->_sound->playSound(SND_SLUG_HIT);
- warning("STUB: Play MetalOrFleshSnd");
+ g_hdb->_sound->playSound(g_hdb->_ai->metalOrFleshSND(hit));
switch (hit->type) {
case AI_MEERKAT:
if (hit->sequence > 2) { // out of the ground?