aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/pegasus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus/pegasus.cpp')
-rw-r--r--engines/pegasus/pegasus.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp
index 1db0dc64b7..045c9f8147 100644
--- a/engines/pegasus/pegasus.cpp
+++ b/engines/pegasus/pegasus.cpp
@@ -46,7 +46,9 @@
#include "pegasus/items/biochips/opticalchip.h"
#include "pegasus/items/biochips/pegasuschip.h"
#include "pegasus/items/inventory/airmask.h"
+#include "pegasus/items/inventory/gascanister.h"
#include "pegasus/items/inventory/inventoryitem.h"
+#include "pegasus/items/inventory/keycard.h"
#include "pegasus/neighborhood/neighborhood.h"
namespace Pegasus {
@@ -203,9 +205,10 @@ void PegasusEngine::createItem(tItemID itemID, tNeighborhoodID neighborhoodID, t
new AirMask(itemID, neighborhoodID, roomID, direction);
break;
case kKeyCard:
+ new KeyCard(itemID, neighborhoodID, roomID, direction);
+ break;
case kGasCanister:
- // TODO: Specialized inventory item classes
- new InventoryItem(itemID, neighborhoodID, roomID, direction);
+ new GasCanister(itemID, neighborhoodID, roomID, direction);
break;
default:
// Everything else is a normal inventory item
@@ -936,4 +939,9 @@ void PegasusEngine::jumpToNewEnvironment(const tNeighborhoodID neighborhoodID, c
_shellNotification.setNotificationFlags(kNeedNewJumpFlag, kNeedNewJumpFlag);
}
+void PegasusEngine::checkFlashlight() {
+ if (_neighborhood)
+ _neighborhood->checkFlashlight();
+}
+
} // End of namespace Pegasus