diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-03 22:34:40 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-03 22:34:40 +0000 |
commit | 36eb5ac7f856dc83242837738eb18cfd9039352f (patch) | |
tree | 89ebfae081d2207e68dc04b52e4558b3a316834f /src/game-server/mapcomposite.hpp | |
parent | 282ca19e33b79f4468ce6402406ddb1397f2d115 (diff) | |
download | manaserv-36eb5ac7f856dc83242837738eb18cfd9039352f.tar.gz manaserv-36eb5ac7f856dc83242837738eb18cfd9039352f.tar.bz2 manaserv-36eb5ac7f856dc83242837738eb18cfd9039352f.tar.xz manaserv-36eb5ac7f856dc83242837738eb18cfd9039352f.zip |
Added a Xmas cake: the server now supports items on floor.
Diffstat (limited to 'src/game-server/mapcomposite.hpp')
-rw-r--r-- | src/game-server/mapcomposite.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game-server/mapcomposite.hpp b/src/game-server/mapcomposite.hpp index 1996950e..0eae7d91 100644 --- a/src/game-server/mapcomposite.hpp +++ b/src/game-server/mapcomposite.hpp @@ -112,6 +112,21 @@ struct MovingObjectIterator }; /** + * Iterates through the non-moving Objects of a region. + */ +struct FixedObjectIterator +{ + ZoneIterator iterator; + unsigned short pos; + Object *current; + + FixedObjectIterator(ZoneIterator const &); + void operator++(); + Object *operator*() const { return current; } + operator bool() const { return iterator; } +}; + +/** * Iterates through the Objects of a region. */ struct ObjectIterator |