Package com.threerings.media.util

Examples of com.threerings.media.util.PathSequence


            Point hp2 = new Point(getHandX(size, idx), _handLocation.y),
                hp1 = new Point(hp2.x, hp2.y - _selectedCardOffset);
            paths.add(new LinePath(hp1, flightDuration));
            paths.add(new LinePath(hp1, pauseDuration));
            paths.add(new LinePath(hp2, dropDuration));
            sprite.moveAndFadeIn(new PathSequence(paths), flightDuration +
                                     pauseDuration + dropDuration, fadePortion);
        }
    }
View Full Code Here


            long pathDuration;
            LinePath flight = new LinePath(dest, flightDuration);
            if (ii > 0) {
                long delayDuration = cardDelay * ii;
                LinePath delay = new LinePath(src, delayDuration);
                path = new PathSequence(delay, flight);
                pathDuration = delayDuration + flightDuration;

            } else {
                path = flight;
                pathDuration = flightDuration;
View Full Code Here

     */
    public void flyFromBoard (CardSprite[] cards, Point dest1, Point dest2, long flightDuration,
                              float fadePortion)
    {
        for (CardSprite card : cards) {
            PathSequence flight = new PathSequence(
                new LinePath(dest1, flightDuration/2),
                new LinePath(dest1, dest2, flightDuration/2));
            card.addSpriteObserver(_pathEndRemover);
            card.moveAndFadeOut(flight, flightDuration, fadePortion);
            _boardSprites.remove(card);
View Full Code Here

TOP

Related Classes of com.threerings.media.util.PathSequence

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.