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

Method getPreferredPosition

game/state/city/vehicle.cpp:3709–3716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3707}
3708
3709Vec3<int> Vehicle::getPreferredPosition(Vec3<int> position) const
3710{
3711 if (!type->isGround())
3712 {
3713 position.z = (int)altitude;
3714 }
3715 return position;
3716}
3717
3718Vec3<int> Vehicle::getPreferredPosition(int x, int y, int z) const
3719{

Callers 4

groupMoveMethod · 0.80
startMethod · 0.80
setFollowPathMethod · 0.80

Calls 1

isGroundMethod · 0.80

Tested by

no test coverage detected