Go to the documentation of this file.
67 void clear() { m_creatures.clear(); }
75 std::unordered_map<Position, CreatureTypePtr, PositionHasher> m_creatures;
110 void clear() { m_creatures.clear(); }
116 void loadNpcs(
const std::string& folder);
133 const std::vector<CreatureTypePtr>&
getCreatures() {
return m_creatures; }
139 std::vector<CreatureTypePtr> m_creatures;
140 std::unordered_map<Position, SpawnPtr, PositionHasher> m_spawns;
const CreatureTypePtr & getCreatureByLook(int look)
CreatureManager g_creatures
void setRace(CreatureRace race)
const CreatureTypePtr & getCreatureByName(std::string name)
const std::vector< CreatureTypePtr > & getCreatures()
void setDirection(Otc::Direction dir)
void addCreature(const Position &placePos, const CreatureTypePtr &cType)
void setSpawnTime(int32 spawnTime)
void setCenterPos(const Position &pos)
void deleteSpawn(const SpawnPtr &spawn)
void saveSpawns(const std::string &fileName)
void set(const Key &k, const T &value)
std::vector< SpawnPtr > getSpawns()
void loadNpcs(const std::string &folder)
void save(TiXmlElement *node)
void loadCreatureBuffer(const std::string &buffer)
void setOutfit(const Outfit &o)
CreatureType(const std::string &name)
T get(const Key &k) const
std::vector< CreatureTypePtr > getCreatures()
void loadSpawns(const std::string &fileName)
SpawnPtr getSpawnForPlacePos(const Position &pos)
void loadMonsters(const std::string &file)
void setName(const std::string &name)
Otc::Direction getDirection()
SpawnPtr getSpawn(const Position ¢erPos)
void loadSingleCreature(const std::string &file)
void internalLoadCreatureBuffer(TiXmlElement *attrib, const CreatureTypePtr &m)
LuaObject, all script-able classes have it as base.
void removeCreature(const Position &pos)
void load(TiXmlElement *node)
SpawnPtr addSpawn(const Position ¢erPos, int radius)