Allow score animations to be extended.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3213 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: PuzzleBoardView.java,v 1.9 2004/11/11 23:53:51 mdb Exp $
|
||||
// $Id: PuzzleBoardView.java,v 1.10 2004/11/12 01:09:48 mdb Exp $
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -263,11 +263,21 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel
|
||||
label.layout(this);
|
||||
|
||||
// create the score animation
|
||||
ScoreAnimation anim = new ScoreAnimation(label, x, y);
|
||||
ScoreAnimation anim = createScoreAnimation(label, x, y);
|
||||
anim.setRenderOrder(getScoreRenderOrder());
|
||||
return anim;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a score animation, allowing derived classes to use custom
|
||||
* animations that are customized following a call to
|
||||
* {@link #createScoreAnimation}.
|
||||
*/
|
||||
protected ScoreAnimation createScoreAnimation (Label label, int x, int y)
|
||||
{
|
||||
return new ScoreAnimation(label, x, y);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the render order to be assigned to score animations by
|
||||
* default. Derived classes may wish to override this method to
|
||||
|
||||
Reference in New Issue
Block a user