]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/PartyLayout.cpp
removed stupid file headers that eclipse put in
[l2e.git] / src / battle / PartyLayout.cpp
index 27d587e7c165e68a2d4f0128ae00a8ac2aa1deec..bf8b3e8623d3d6d3987d6ba3075b264aa32d8a6d 100644 (file)
@@ -1,16 +1,11 @@
-/*
- * PartyLayout.cpp
- *
- *  Created on: Aug 5, 2012
- *      Author: holy
- */
-
 #include "PartyLayout.h"
 
+#include "../loader/Interpreter.h"
 #include "../loader/TypeDescription.h"
 
 using geometry::Vector;
 using loader::FieldDescription;
+using loader::Interpreter;
 using loader::TypeDescription;
 using std::vector;
 
@@ -39,14 +34,12 @@ void PartyLayout::CalculatePositions(int width, int height, vector<Vector<int> >
 void PartyLayout::CreateTypeDescription() {
        PartyLayout p;
 
-       int vectorId(TypeDescription::GetTypeId("Vector"));
-
-       TypeDescription &td(TypeDescription::CreateOrGet("PartyLayout"));
+       TypeDescription &td(TypeDescription::Create(TYPE_ID, "PartyLayout"));
        td.SetDescription("Positions of party members");
        td.SetConstructor(&Construct);
        td.SetSize(sizeof(PartyLayout));
 
-       td.AddField("positions", FieldDescription(((char *)&p.positions) - ((char *)&p), vectorId).SetReferenced().SetAggregate().SetDescription("the members' positions"));
+       td.AddField("positions", FieldDescription(((char *)&p.positions) - ((char *)&p), Interpreter::VECTOR_ID).SetReferenced().SetAggregate().SetDescription("the members' positions"));
 }
 
 void PartyLayout::Construct(void *data) {