Added resolveActionSequence() to provide a facility for letting the

character manager know that certain action sequences for a character
descriptor will be needed in the near future.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@984 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-02-10 00:05:36 +00:00
parent 2420c9a1a6
commit 45f32c4622
@@ -1,5 +1,5 @@
//
// $Id: CharacterManager.java,v 1.13 2002/02/09 23:39:17 shaper Exp $
// $Id: CharacterManager.java,v 1.14 2002/02/10 00:05:36 shaper Exp $
package com.threerings.cast;
@@ -91,6 +91,29 @@ public class CharacterManager
}
}
/**
* Informs the character manager that the action sequence for the
* given character descriptor is likely to be needed in the near
* future and so any efforts that can be made to load it into the
* action sequence cache in advance should be undertaken.
*
* <p> This will eventually be revamped to spiffily load action
* sequences in the background.
*/
public void resolveActionSequence (CharacterDescriptor desc, String action)
{
try {
if (getActionFrames(desc, action) == null) {
Log.warning("Failed to resolve action sequence " +
"[desc=" + desc + ", action=" + action + "].");
}
} catch (NoSuchComponentException nsce) {
Log.warning("Failed to resolve action sequence " +
"[nsce=" + nsce + "].");
}
}
/**
* Returns the action sequence instance with the specified name or
* null if no such sequence exists.