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

Method setPosition

game/state/tilemap/tileobject_vehicle.cpp:245–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void TileObjectVehicle::setPosition(Vec3<float> newPosition)
246{
247 auto v = this->getVehicle();
248 auto vtype = v->type;
249 auto facing = vtype->getVoxelMapFacing(v->facing);
250 auto size = vtype->size.at(facing);
251
252 setBounds({size.x, size.y, size.z});
253
254 TileObject::setPosition(newPosition);
255}
256
257void TileObjectVehicle::addToDrawnTiles(Tile *tile)
258{

Callers

nothing calls this directly

Calls 2

getVehicleMethod · 0.95
getVoxelMapFacingMethod · 0.80

Tested by

no test coverage detected