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

Method getPosition

game/state/tilemap/tileobject_doodad.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50sp<Doodad> TileObjectDoodad::getOwner() const { return doodad.lock(); }
51
52Vec3<float> TileObjectDoodad::getPosition() const
53{
54 auto d = this->doodad.lock();
55 if (!d)
56 {
57 LogError("Called with no owning doodad object");
58 return {0, 0, 0};
59 }
60 return d->getPosition();
61}
62
63float TileObjectDoodad::getZOrder() const
64{

Callers 2

addObjectToMapMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected