aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/hotspots.h
diff options
context:
space:
mode:
authorFilippos Karapetis2008-04-06 12:00:37 +0000
committerFilippos Karapetis2008-04-06 12:00:37 +0000
commit6a9acd7a5e526f06e5fc0757335cd5b09ce34e3c (patch)
treeb9caf82ce1ab0101adb17858c8e27f66b1eea904 /engines/lure/hotspots.h
parentbd1224e36c86c635d0c8712f2082c9301674f51c (diff)
downloadscummvm-rg350-6a9acd7a5e526f06e5fc0757335cd5b09ce34e3c.tar.gz
scummvm-rg350-6a9acd7a5e526f06e5fc0757335cd5b09ce34e3c.tar.bz2
scummvm-rg350-6a9acd7a5e526f06e5fc0757335cd5b09ce34e3c.zip
Replaced ManagedList with Common::SharedPtr in the rest of the lure engine
svn-id: r31420
Diffstat (limited to 'engines/lure/hotspots.h')
-rw-r--r--engines/lure/hotspots.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/lure/hotspots.h b/engines/lure/hotspots.h
index fcbaae1a13..c6bc56a94d 100644
--- a/engines/lure/hotspots.h
+++ b/engines/lure/hotspots.h
@@ -112,7 +112,8 @@ class PathFinder {
private:
Hotspot *_hotspot;
bool _inUse;
- ManagedList<WalkingActionEntry *> _list;
+ typedef Common::List<Common::SharedPtr<WalkingActionEntry> > WalkingActionList;
+ WalkingActionList _list;
RoomPathsDecompressedData _layer;
int _stepCtr;
bool _inProgress;
@@ -134,10 +135,10 @@ private:
void scanLine(int numScans, int changeAmount, uint16 *&pEnd, int &v);
void add(Direction dir, int steps) {
- _list.push_front(new WalkingActionEntry(dir, steps));
+ _list.push_front(WalkingActionList::value_type(new WalkingActionEntry(dir, steps)));
}
void addBack(Direction dir, int steps) {
- _list.push_back(new WalkingActionEntry(dir, steps));
+ _list.push_back(WalkingActionList::value_type(new WalkingActionEntry(dir, steps)));
}
public:
PathFinder(Hotspot *h);
@@ -470,7 +471,7 @@ public:
void loadFromStream(Common::ReadStream *stream);
};
-class HotspotList: public ManagedList<Hotspot *> {
+class HotspotList: public Common::List<Common::SharedPtr<Hotspot> > {
public:
void saveToStream(WriteStream *stream);
void loadFromStream(ReadStream *stream);