aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-07-02 05:36:29 +0530
committerEugene Sandulenko2019-09-03 17:17:07 +0200
commit80c2d35ba6c1340bd1ceada4b400ad956564b499 (patch)
tree1d4f429f61e590895965875e4b5bbd9f50cd924e
parent44de6935533a4b0cfaa3db9a685f27a765359c0d (diff)
downloadscummvm-rg350-80c2d35ba6c1340bd1ceada4b400ad956564b499.tar.gz
scummvm-rg350-80c2d35ba6c1340bd1ceada4b400ad956564b499.tar.bz2
scummvm-rg350-80c2d35ba6c1340bd1ceada4b400ad956564b499.zip
HDB: Add envelope related functions
-rw-r--r--engines/hdb/ai-player.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/engines/hdb/ai-player.cpp b/engines/hdb/ai-player.cpp
index c55c392bee..2760af603f 100644
--- a/engines/hdb/ai-player.cpp
+++ b/engines/hdb/ai-player.cpp
@@ -1232,11 +1232,12 @@ void aiDragonUse(AIEntity *e) {
}
void aiEnvelopeGreenInit(AIEntity *e) {
- warning("STUB: AI: aiEnvelopeGreenInit required");
+ strcpy(e->printedName, "Green envelope");
+ e->aiAction = aiGetItemAction;
}
void aiEnvelopeGreenInit2(AIEntity *e) {
- warning("STUB: AI: aiEnvelopeGreenInit2 required");
+ e->draw = e->standdownGfx[0];
}
void aiGemBlueInit(AIEntity *e) {
@@ -1496,27 +1497,30 @@ void aiCellInit(AIEntity *e) {
}
void aiEnvelopeWhiteInit(AIEntity *e) {
- warning("STUB: AI: aiEnvelopeWhiteInit required");
+ strcpy(e->printedName, "White envelope");
+ e->aiAction = aiGetItemAction;
}
void aiEnvelopeWhiteInit2(AIEntity *e) {
- warning("STUB: AI: aiEnvelopeWhiteInit2 required");
+ e->draw = e->standdownGfx[0];
}
void aiEnvelopeBlueInit(AIEntity *e) {
- warning("STUB: AI: aiEnvelopeBlueInit required");
+ strcpy(e->printedName, "Blue envelope");
+ e->aiAction = aiGetItemAction;
}
void aiEnvelopeBlueInit2(AIEntity *e) {
- warning("STUB: AI: aiEnvelopeBlueInit2 required");
+ e->draw = e->standdownGfx[0];
}
void aiEnvelopeRedInit(AIEntity *e) {
- warning("STUB: AI: aiEnvelopeRedInit required");
+ strcpy(e->printedName, "Red envelope");
+ e->aiAction = aiGetItemAction;
}
void aiEnvelopeRedInit2(AIEntity *e) {
- warning("STUB: AI: aiEnvelopeRedInit2 required");
+ e->draw = e->standdownGfx[0];
}
void aiTransceiverInit(AIEntity *e) {