Add constructor that takes bounds. We love the bounds.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2438 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-04-20 04:52:33 +00:00
parent 0d740682db
commit 1fc693523d
@@ -1,5 +1,5 @@
//
// $Id: Sprite.java,v 1.62 2003/01/18 20:45:23 mdb Exp $
// $Id: Sprite.java,v 1.63 2003/04/20 04:52:33 mdb Exp $
package com.threerings.media.sprite;
@@ -35,6 +35,14 @@ public abstract class Sprite extends AbstractMedia
super(new Rectangle());
}
/**
* Constructs a sprite with the supplied bounds.
*/
public Sprite (Rectangle bounds)
{
super(bounds);
}
/**
* Returns the sprite's x position in screen coordinates. This is the
* x coordinate of the sprite's origin, not the upper left of its