Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Nenya library - tools for developing networked games
 // Copyright (C) 2002-2012 Three Rings Design, Inc., All Rights Reserved
 // This library is free software; you can redistribute it and/or modify it
 // under the terms of the GNU Lesser General Public License as published
 // by the Free Software Foundation; either version 2.1 of the License, or
 // (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// Lesser General Public License for more details.
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package com.threerings.cast;
Makes available a collection of character components and associated metadata. Character components are animated sequences that can be composited together to create a complete character visualization (imagine interchanging pairs of boots, torsos, hats, etc.).
public interface ComponentRepository
Returns the CharacterComponent object for the given component identifier.
    public CharacterComponent getComponent (int componentId)
        throws NoSuchComponentException;

Returns the CharacterComponent object with the given component class and name.
    public CharacterComponent getComponent (String classNameString compName)
        throws NoSuchComponentException;

Returns the ComponentClass with the specified name or null if none exists with that name.
    public ComponentClass getComponentClass (String className);

Iterates over the ComponentClass instances representing all available character component classes.
    public Iterator<ComponentClassenumerateComponentClasses ();

Iterates over the ActionSequence instances representing every available action sequence.
    public Iterator<ActionSequenceenumerateActionSequences ();

Iterates over the component ids of all components in the specified class.
    public Iterator<IntegerenumerateComponentIds (ComponentClass compClass);
New to GrepCode? Check out our FAQ X