X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FPartyLayout.h;h=ec12f4dda9764a3859efdef806bf9fdc6da96a28;hb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;hp=b2454f2cba18bcbcd8b8f9588fb8f2c931bf0de8;hpb=06cdcf42d8f86955419bcf8ca3457f1d59a14707;p=l2e.git diff --git a/src/battle/PartyLayout.h b/src/battle/PartyLayout.h index b2454f2..ec12f4d 100644 --- a/src/battle/PartyLayout.h +++ b/src/battle/PartyLayout.h @@ -1,14 +1,7 @@ -/* - * PartyLayout.h - * - * Created on: Aug 5, 2012 - * Author: holy - */ - #ifndef BATTLE_PARTYLAYOUT_H_ #define BATTLE_PARTYLAYOUT_H_ -#include "../geometry/Vector.h" +#include "../math/Vector.h" #include #include @@ -18,24 +11,28 @@ namespace battle { class PartyLayout { + public: + static const int TYPE_ID = 203; + public: PartyLayout() : positions(0), numPositions(0) { } public: - std::vector >::size_type NumPositions() const { return numPositions; } - void CalculatePositions(int width, int height, std::vector > &dest) const; - geometry::Vector CalculatePosition(int index, int width, int height) const; + std::vector >::size_type NumPositions() const { return numPositions; } + void CalculatePositions(int width, int height, std::vector > &dest) const; + math::Vector CalculatePosition(int index, int width, int height) const; public: - void SetPositions(const geometry::Vector *p, int num) { + void SetPositions(const math::Vector *p, int num) { positions = p; numPositions = num; } static void CreateTypeDescription(); + static void Construct(void *); private: - const geometry::Vector *positions; + const math::Vector *positions; int numPositions; };