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

Method isMet

source/goals/GoalProtectCreature.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31bool GoalProtectCreature::isMet(const Seat&, const GameMap& gameMap)
32{
33 // Check to see if the creature exists on the game map.
34 const Creature *tempCreature = gameMap.getCreature(mCreatureName);
35 if (tempCreature != nullptr)
36 return (tempCreature->isAlive());
37
38 return false;
39}
40
41std::string GoalProtectCreature::getSuccessMessage(const Seat&)
42{

Callers

nothing calls this directly

Calls 2

isAliveMethod · 0.80
getCreatureMethod · 0.45

Tested by

no test coverage detected