Package com.threerings.cast

Examples of com.threerings.cast.CharacterSprite


    /**
     * Creates a new sprite.
     */
    protected CharacterSprite createSprite (CharacterDescriptor desc)
    {
        CharacterSprite s = _charmgr.getCharacter(desc);
        if (s != null) {
            // start 'em out standing
            s.setActionSequence(CharacterSprite.STANDING);
            if (_defloc != null) {
                Point defpos = getScreenCoords(_defloc.x, _defloc.y);
                s.setLocation(defpos.x, defpos.y);
            } else {
                s.setLocation(300, 300);
            }
            s.addSpriteObserver(this);
            _spritemgr.addSprite(s);
        }

        return s;
    }
View Full Code Here

TOP

Related Classes of com.threerings.cast.CharacterSprite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.