Pass the set of all valid paths through to getFramePath so it can fall back to the default action if the specified action doesn't exist

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@523 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Charlie Groves
2008-06-04 23:42:36 +00:00
parent 6a0da5531e
commit 228762fc0d
3 changed files with 40 additions and 29 deletions
@@ -21,6 +21,8 @@
package com.threerings.cast;
import java.util.Set;
/**
* Provides a mechanism where by a character component can obtain access
* to its image frames for a particular action in an on demand manner.
@@ -36,10 +38,12 @@ public interface FrameProvider
CharacterComponent component, String action, String type);
/**
* Returns the file path of the animation frames (in the eight sprite directions) for
* the specified action of the specified component. May return null if
* the specified action does not exist for the specified component.
* Returns the file path of the animation frames (in the eight sprite directions) for the
* specified action of the specified component. May return a path to the default action or
* null if the specified action does not exist for the specified component.
*
* @param existentPaths the set of all paths for which there are valid frames.
*/
public String getFramePath (
CharacterComponent component, String action, String type);
CharacterComponent component, String action, String type, Set<String> existentPaths);
}