aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/items/item.h
diff options
context:
space:
mode:
authorMatthew Hoops2014-04-17 19:28:45 -0400
committerMatthew Hoops2014-04-17 19:29:06 -0400
commit444c6bd24a3b91a1b87e0a0377bd842344cadfb7 (patch)
treea42bcfe82ba8c02c10f471e85ef5473b9dc3b25b /engines/pegasus/items/item.h
parent13507d18583f646dbc19c1868b90b4b876151695 (diff)
downloadscummvm-rg350-444c6bd24a3b91a1b87e0a0377bd842344cadfb7.tar.gz
scummvm-rg350-444c6bd24a3b91a1b87e0a0377bd842344cadfb7.tar.bz2
scummvm-rg350-444c6bd24a3b91a1b87e0a0377bd842344cadfb7.zip
PEGASUS: Reset item state upon starting a new game
Diffstat (limited to 'engines/pegasus/items/item.h')
-rw-r--r--engines/pegasus/items/item.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/pegasus/items/item.h b/engines/pegasus/items/item.h
index a1451b2a58..26cccf043c 100644
--- a/engines/pegasus/items/item.h
+++ b/engines/pegasus/items/item.h
@@ -339,6 +339,9 @@ public:
void findItemExtra(const uint32 extraID, ItemExtraEntry &entry);
+ // Reset to its original state at the beginning of the game
+ void reset();
+
protected:
NeighborhoodID _itemNeighborhood;
RoomID _itemRoom;
@@ -347,6 +350,10 @@ protected:
WeightType _itemWeight;
ItemState _itemState;
+ NeighborhoodID _originalNeighborhood;
+ RoomID _originalRoom;
+ DirectionConstant _originalDirection;
+
JMPItemInfo _itemInfo;
ItemStateInfo _sharedAreaInfo;
ItemExtraInfo _itemExtras;