HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
17.5: Major Changes In The HDK

Table of Contents

GU_Agent

GU_Agent was changed to store pointers to its current layer and collision layer, instead of strings containing their names. This provides some performance and memory usage improvements (and is more consistent with how clips are managed), but prohibits some behavior that was previously allowed - for example, it was possible to set the name of the current layer for an agent before the layer was actually added to the agent's definition.

The GU_Agent::agent() method was changed to remove the parameters for the current layer and collision layer names. Instead, use GU_Agent::setCurrentLayer() and GU_Agent::setCollisionLayer() after creating the agent definition. Likewise, usage of GU_Agent::setCurrentLayerName() should be replaced by GU_Agent::setCurrentLayer().