diff options
author | Paul Gilbert | 2011-08-26 19:07:43 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-08-26 19:07:43 +1000 |
commit | 734e4f628be88a37b09965dacc77e60152dca25d (patch) | |
tree | d827ed62a263771aefea1083822a73aae2abf40f /engines/tsage/saveload.h | |
parent | 4f3b85f4efc05affb7b4a7080e349360a3352048 (diff) | |
download | scummvm-rg350-734e4f628be88a37b09965dacc77e60152dca25d.tar.gz scummvm-rg350-734e4f628be88a37b09965dacc77e60152dca25d.tar.bz2 scummvm-rg350-734e4f628be88a37b09965dacc77e60152dca25d.zip |
TSAGE: Implemented lots more Blue Force functionality, and started on first in-game scene
Diffstat (limited to 'engines/tsage/saveload.h')
-rw-r--r-- | engines/tsage/saveload.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/tsage/saveload.h b/engines/tsage/saveload.h index 03beafed7c..a15637d1e5 100644 --- a/engines/tsage/saveload.h +++ b/engines/tsage/saveload.h @@ -138,6 +138,18 @@ public: } } } + + void addBefore(T existingItem, T newItem) { + SynchronizedList<T>::iterator i = this->begin(); + while ((i != this->end()) && (*i != existingItem)) ++i; + this->insert(i, newItem); + } + void addAfter(T existingItem, T newItem) { + SynchronizedList<T>::iterator i = this->begin(); + while ((i != this->end()) && (*i != existingItem)) ++i; + if (i != this->end()) ++i; + this->insert(i, newItem); + } }; /** |