Link
A reference to another resource (similar to symbolic links in *nix filesystems).
Suppose we have a game with monsters, let's suppose we have Roles "/monsters/big" and "/monsters/bad". Occasionally, they growl, so we put a sound in each called "growl" (e.g. "/monsters/big/growl"). Now suppose we create a new monster "/monsters/ugly". Its appearance is different, but its growl is the same as "bad's".. Instead of creating another copy, we create a Link (/monsters/ugly/growl) which points to "/monsters/bad/growl".
We will have a Behaviour for all monsters, which can find the appropriate sound like so :
val growl = actor.role!!.find( "growl" ) as Sound
Content copied to clipboard
I often use links. YMMV.