MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / getCreature

Method getCreature

source/gamemap/GameMap.cpp:1065–1073  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1063}
1064
1065Creature* GameMap::getCreature(const std::string& cName) const
1066{
1067 for (Creature* creature : mCreatures)
1068 {
1069 if (creature->getName().compare(cName) == 0)
1070 return creature;
1071 }
1072 return nullptr;
1073}
1074
1075void GameMap::doTurn(double timeSinceLastTurn)
1076{

Callers 10

castSpellMethod · 0.45
castSpellMethod · 0.45
castSpellMethod · 0.45
castSpellMethod · 0.45
castSpellMethod · 0.45
castSpellMethod · 0.45
castSpellMethod · 0.45
startNewTurnMethod · 0.45
processMessageMethod · 0.45
isMetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected