/* * api/Creature.cpp, part of VCMI engine * * Authors: listed in file AUTHORS in main folder * * License: GNU General Public License v2.0 or later * Full text of license available in license.txt file, in main folder * */ #include "StdInc.h" #include "Creature.h" #include "Registry.h" #include "../LuaStack.h" #include "../LuaCallWrapper.h" #include "../../../lib/HeroBonus.h" VCMI_LIB_NAMESPACE_BEGIN namespace scripting { namespace api { VCMI_REGISTER_CORE_SCRIPT_API(CreatureProxy, "Creature"); const std::vector CreatureProxy::REGISTER_CUSTOM = { {"getIconIndex", LuaMethodWrapper::invoke, false}, {"getIndex", LuaMethodWrapper::invoke, false}, {"getJsonKey", LuaMethodWrapper::invoke, false}, {"getName", LuaMethodWrapper::invoke, false}, {"accessBonuses", LuaMethodWrapper::accessBonuses), &EntityWithBonuses::accessBonuses>::invoke, false}, {"getMaxHealth", LuaMethodWrapper::invoke, false}, {"getPluralName", LuaMethodWrapper::invoke, false}, {"getSingularName", LuaMethodWrapper::invoke, false}, {"getAdvMapAmountMin", LuaMethodWrapper::invoke, false}, {"getAdvMapAmountMax", LuaMethodWrapper::invoke, false}, {"getAIValue", LuaMethodWrapper::invoke, false}, {"getFightValue", LuaMethodWrapper::invoke, false}, {"getLevel", LuaMethodWrapper::invoke, false}, {"getGrowth", LuaMethodWrapper::invoke, false}, {"getHorde", LuaMethodWrapper::invoke, false}, {"getFactionIndex", LuaMethodWrapper::invoke, false}, {"getBaseAttack", LuaMethodWrapper::invoke, false}, {"getBaseDefense", LuaMethodWrapper::invoke, false}, {"getBaseDamageMin", LuaMethodWrapper::invoke, false}, {"getBaseDamageMax", LuaMethodWrapper::invoke, false}, {"getBaseHitPoints", LuaMethodWrapper::invoke, false}, {"getBaseSpellPoints", LuaMethodWrapper::invoke, false}, {"getBaseSpeed", LuaMethodWrapper::invoke, false}, {"getBaseShots", LuaMethodWrapper::invoke, false}, {"getCost", LuaMethodWrapper::invoke, false}, {"isDoubleWide", LuaMethodWrapper::invoke, false}, }; } } VCMI_LIB_NAMESPACE_END