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

Method setPosition

game/state/city/scenery.cpp:1147–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1145UString Scenery::getSupportString() const { return format("%d", supportHardness); }
1146
1147void Scenery::setPosition(const Vec3<float> &pos)
1148{
1149 currentPosition = pos;
1150 if (!this->tileObject)
1151 {
1152 LogError("setPosition called on scenery with no tile object");
1153 return;
1154 }
1155
1156 this->tileObject->setPosition(pos);
1157}
1158
1159void Scenery::updateRelationWithAttacker(GameState &state, StateRef<Organisation> attackerOrg,
1160 bool killed)

Callers 3

dieMethod · 0.45
updateMethod · 0.45
startMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected