MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getHazard

Method getHazard

game/state/tilemap/tileobject_battlehazard.cpp:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56sp<BattleHazard> TileObjectBattleHazard::getHazard()
57{
58 auto i = hazard.lock();
59 if (!i)
60 {
61 LogError("Item disappeared");
62 return nullptr;
63 }
64 return i;
65}
66
67Vec3<float> TileObjectBattleHazard::getPosition() const
68{

Callers 5

expandMethod · 0.80
dieMethod · 0.80
placeHazardMethod · 0.80
handleMouseDownMethod · 0.80
renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected