VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainInterface Library API Changes

Table of Contents

This document describes the public API changes in the terrainInterface library between VR-Forces 5.2 and 5.3.

The only public header with API-affecting changes is:

Every other header in include/terrainInterface/ is unchanged at the API level. Changes that are internal to an implementation or limited to comments are not listed.

Breaking Changes

DtTerrainInterface::makePath return type changed

makePath now returns DtAStarGraph::PathList instead of DtAStarGraph::Path. This follows the rename of the A* path result classes in the features library, where DtAStarGraph::Path became DtAStarGraph::PathList. The parameter list, default arguments, and behavior of makePath are unchanged, so the update is mechanical.

// 5.2
virtual DtAStarGraph::Path makePath(
const DtPoint& localStart,
const DtPoint& localDestination,
const std::string& type,
const double& maxSearchRadius,
const double& startProximityThreshold,
boost::function<bool ()> cancelCheck,
const DtAStarGraph::DtWeightFactorsList& weightFactors
= DtAStarGraph::DtWeightFactorsList()) const;
// 5.3
virtual DtAStarGraph::PathList makePath(
const DtPoint& localStart,
const DtPoint& localDestination,
const std::string& type,
const double& maxSearchRadius,
const double& startProximityThreshold,
boost::function<bool ()> cancelCheck,
const DtAStarGraph::DtWeightFactorsList& weightFactors
= DtAStarGraph::DtWeightFactorsList()) const;

Two kinds of call site are affected. Code that stores the result in an explicitly typed variable must name the new type, and code that inspects the returned vertices must use the renamed nested types described in the features migration notes:

// 5.2
DtAStarGraph::Path path = terrain->makePath(start, dest, "MAK_ROAD", radius, threshold, cancel);
DtAStarGraph::PathVertex::List vertices = path.getSinglePath();
// 5.3
DtAStarGraph::PathList path = terrain->makePath(start, dest, "MAK_ROAD", radius, threshold, cancel);
DtAStarGraph::PathVertexData::VertexList vertices = path.getSinglePath();

Classes that derive from DtTerrainInterface and override makePath must change the return type of the override to match. Because the return type is part of the virtual function signature, an override that still declares DtAStarGraph::Path will fail to compile rather than silently hiding the base declaration.

Additions

No public headers, classes, methods, enumerators, or typedefs were added to the terrainInterface library in 5.3.

Return to VR-Forces 5.3 API Migration Guide.

[Home]


Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)