Enable range-for on the player party

This commit is contained in:
2016-08-15 18:25:29 -04:00
parent 4d739936cb
commit d2ec3ff8c5

View File

@@ -14,6 +14,9 @@
#include <array>
#include <map>
#include <set>
#include <boost/iterator/indirect_iterator.hpp>
#include "vehicle.hpp"
#include "creatlist.hpp"
#include "item.hpp"
@@ -199,6 +202,14 @@ public:
bool sd_legit(short a, short b);
auto begin() -> boost::indirect_iterator<decltype(adven)::iterator> {
return boost::make_indirect_iterator(adven.begin());
}
auto end() -> boost::indirect_iterator<decltype(adven)::iterator> {
return boost::make_indirect_iterator(adven.end());
}
typedef std::vector<cEncNote>::iterator encIter;
typedef std::vector<cJournal>::iterator journalIter;
typedef std::vector<cConvers>::iterator talkIter;