Examples of ScoreAnimation


Examples of com.jcloisterzone.ui.animation.ScoreAnimation

    public void scored(Feature scoreable, Player player, String points, Class<? extends Meeple> meepleType, boolean finalScoring) {
        Tile tile = scoreable.getTile();
        Position pos = tile.getPosition();
        ImmutablePoint offset = client.getResourceManager().getMeeplePlacement(tile, meepleType, scoreable.getLocation());
        animationService.registerAnimation(new ScoreAnimation(
            pos,
            points,
            offset,
            player.getColors().getMeepleColor(),
            finalScoring ? null : getScoreAnimationDuration()
View Full Code Here

Examples of com.jcloisterzone.ui.animation.ScoreAnimation

            finalScoring ? null : getScoreAnimationDuration()
        ));
    }

    public void scored(Position pos, Player player, String points, boolean finalScoring) {
        animationService.registerAnimation(new ScoreAnimation(
            pos,
            points,
            new ImmutablePoint(50, 50),
            player.getColors().getMeepleColor(),
            finalScoring ? null : getScoreAnimationDuration()
View Full Code Here

Examples of com.threerings.parlor.media.ScoreAnimation

     * Creates a score animation, allowing derived classes to use custom animations that are
     * customized following a call to {@link #createScoreAnimation(String,Color,Font,int,int)}.
     */
    protected ScoreAnimation createScoreAnimation (Label label, int x, int y)
    {
        return new ScoreAnimation(label, x, y);
    }
View Full Code Here

Examples of com.threerings.parlor.media.ScoreAnimation

     */
    public ScoreAnimation createScoreAnimation (
        String score, Color color, Font font, int x, int y, int width, int height)
    {
        // create the score animation
        ScoreAnimation anim = createScoreAnimation(score, color, font, x, y);

        // position the label within the specified rectangle
        Dimension lsize = anim.getLabel().getSize();
        Point pos = new Point();
        centerRectInBoardRect(x, y, width, height, lsize.width, lsize.height, pos);
        anim.setLocation(pos.x, pos.y);

        return anim;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.