4 * Created on: Aug 5, 2012
8 #ifndef BATTLE_PARTYLAYOUT_H_
9 #define BATTLE_PARTYLAYOUT_H_
11 #include "../geometry/Point.h"
24 std::vector<geometry::Point<Uint8> >::size_type NumPositions() const { return positions.size(); }
26 void CalculatePositions(U width, U height, std::vector<geometry::Point<U> > &dest) const {
28 dest.reserve(positions.size());
29 for (std::vector<geometry::Point<Uint8> >::const_iterator i(positions.begin()), end(positions.end()); i != end; ++i) {
30 dest.push_back(geometry::Point<U>(
38 void AddPosition(const geometry::Point<Uint8> &p) {
39 positions.push_back(p);
43 std::vector<geometry::Point<Uint8> > positions;
49 #endif /* BATTLE_PARTYLAYOUT_H_ */