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

Method removeFromGameMap

source/spells/Spell.cpp:77–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void Spell::removeFromGameMap()
78{
79 fireEntityRemoveFromGameMap();
80 removeEntityFromPositionTile();
81 getGameMap()->removeSpell(this);
82 getGameMap()->removeAnimatedObject(this);
83 getGameMap()->removeClientUpkeepEntity(this);
84
85 if(!getIsOnServerMap())
86 return;
87
88 fireRemoveEntityToSeatsWithVision();
89
90 getGameMap()->removeActiveObject(this);
91}
92
93void Spell::notifySeatsWithVision(const std::vector<Seat*>& seats)
94{

Callers

nothing calls this directly

Calls 4

removeSpellMethod · 0.80
removeAnimatedObjectMethod · 0.80
removeActiveObjectMethod · 0.80

Tested by

no test coverage detected