float t0, float v0, float s0, int mass, float power, EngineType et) {
float t0, float v0, float s0, int mass, EngineType et, boolean outOfWater) {
    private TrainPathSegment getNewSegment(Point p1, Point p2,	    float t0, float v0, float s0, int mass, float power, EngineType	    et) {	float sMax = getSMax(s0, p1, p1);	return getNewSegment(p1, p2, t0, v0, s0, mass, power, sMax, et);    }