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

Method addCreature

source/gamemap/GameMap.cpp:487–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487void GameMap::addCreature(Creature *cc)
488{
489 OD_LOG_INF(serverStr() + "Adding Creature " + cc->getName()
490 + ", seatId=" + (cc->getSeat() != nullptr ? Helper::toString(cc->getSeat()->getId()) : std::string("null")));
491
492 mCreatures.push_back(cc);
493}
494
495void GameMap::removeCreature(Creature *c)
496{

Callers 1

addToGameMapMethod · 0.80

Calls 3

toStringFunction · 0.50
getSeatMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected