]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/Caster.cpp
removed stupid file headers that eclipse put in
[l2e.git] / src / loader / Caster.cpp
index 6d6d7184e2f7d1456544abf8eabe7caafd2d5750..876e1282ff9fb5a5e3ac92b9e59127fa4d0d1dff 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * Caster.cpp
- *
- *  Created on: Sep 19, 2012
- *      Author: holy
- */
-
 #include "Caster.h"
 
 #include "TypeDescription.h"
@@ -14,6 +7,7 @@ using battle::PartyLayout;
 using common::Hero;
 using common::Item;
 using common::Spell;
+using map::Map;
 using std::string;
 
 
@@ -24,6 +18,7 @@ Caster::Caster(Interpreter &intp)
 , battleResourcesId(TypeDescription::GetTypeId("BattleResources"))
 , heroId(TypeDescription::GetTypeId("Hero"))
 , itemId(TypeDescription::GetTypeId("Item"))
+, mapId(TypeDescription::GetTypeId("Map"))
 , monsterId(TypeDescription::GetTypeId("Monster"))
 , partyLayoutId(TypeDescription::GetTypeId("PartyLayout"))
 , spellId(TypeDescription::GetTypeId("Spell")) {
@@ -43,6 +38,10 @@ Item *Caster::GetItem(const string &ident) {
        return reinterpret_cast<Item *>(intp.GetObject(itemId, ident));
 }
 
+Map *Caster::GetMap(const string &ident) {
+       return reinterpret_cast<Map *>(intp.GetObject(mapId, ident));
+}
+
 Monster *Caster::GetMonster(const string &ident) {
        return reinterpret_cast<Monster *>(intp.GetObject(monsterId, ident));
 }